agent: Antigravity's desktop app is a row, wired through its gateway setting (ryougi_hachi on X)
Antigravity (Google's desktop app, 2.15 and later; not Antigravity IDE)
takes a gateway from ~/.antigravity/settings.json: Google's Antigravity
Enterprise Gateway, documented at
docs.cloud.google.com/gemini/enterprise/docs/ai-developer-tools/connect-enterprise-gateway.
magpie writes gateway {enabled, url: magpie's, apiKey: magpie-antigravity,
wireProtocol: openai} and models.defaultModelId, and takes out models.list
(it would narrow the picker). The user's gateway, default model and list
are stashed and put back on disconnect or when a model of their own is
picked; caCertPath and the rest of the file are untouched. Sync keeps what
the user added to magpie's block, and so does a set again (a moved port,
Reconnect). Check speaks when admin_settings.json or AGY_LLM_GATEWAY_URL
wins over the file, and when the block's url or key is no longer magpie's
(wiringOff), so drift and a port move see it. AGY_LLM_GATEWAY_URL joins
agentenv.Vars, cleared in every sandbox. Found by its bundle
(com.google.antigravity, 2.15+) or the file its backend writes
(~/.gemini/antigravity/agyhub_summaries_proto.pb); ~/.antigravity alone is
the IDE's and agy's too. The notices are translated (zh, zh-TW, ja, de).
`magpie antigravity` now names the app; agy stays `magpie agy` /
`antigravity-cli`.
Run (worktree base 647323409, on mote):
- Real app backend in a sandbox HOME: Antigravity.app 2.28.2's
language_server (hub), wired by this branch's magpie built from the
worktree (`magpie antigravity magpie/rec/pro`, MAGPIE_ADDR on a port of
its own, a recording upstream as a custom provider).
GetCascadeModelConfigData listed rec/pro from magpie's /v1/models; a
cascade ("Say hi") went app -> magpie -> upstream as
/v1/chat/completions (stream, 12 tools) and its answer came back into
the trajectory. `magpie usage` counted both calls to Antigravity.
`magpie antigravity default` gave back the user's genai gateway, model
and list byte for byte (JSON-equal).
- Before that the same file was checked with the real agy CLI 1.4.12.
- go vet (darwin, GOOS=linux, GOOS=windows) for internal/agent; gofmt.
- go test -tags nogui -count=1 ./internal/agent ./internal/agentenv
./internal/gui ./internal/usage ./internal/cli: all ok at this tree.
The first run was red in four guard tests (TestFolderVarsAreListed,
TestDriftUnwiredEveryAgent/antigravity, TestReverseProxyIsStillMagpie,
TestPortMovesEveryAgent): Check had no wiringOff and the variable
wasn't listed. Both fixed here.
- GUI (node --test, Chromium + WebKit): i18n-keys, agent-notice-lang,
about-notices, 46 of 46 ok.
Broken by hand: renamed the gateway's stash key and dropped the
models.list deletion: TestAntigravityGateway, TestAntigravityGatewayFromNothing
and TestAntigravityOwnModelBack each went red; the desktopApps entry
missing made TestAntigravityDetected red; writing magpie's block whole on a set
again made TestAntigravitySync red (the user's customHeaders lost). The new tests are red on the
old code (no such agent).
Not tried: the Electron window itself (the backend was driven over its
RPCs, headless); the app on Windows or Linux (its install paths there
aren't known; the backend's file finds it); whether Google sign-in comes
back on its own after disconnect; the full ./... suite, because another
session's full suite was running on mote.
This commit is contained in:
@@ -85,6 +85,7 @@ something else shows up as drift.
|
||||
- Raycast AI reads Custom Providers from `~/.config/raycast/ai/providers.yaml` in the user's folder, on Mac and Windows alike (`raycast` in [`raycast.go`](../../internal/agent/raycast.go); manual.raycast.com/ai/custom-providers). magpie adds one entry to its `providers` list, `id: magpie`, at the gateway's `/v1` with an `api_keys` alias holding a key that names Raycast (its User-Agent isn't known), and one model per catalog model with `context` and all five `abilities` said, since Raycast assumes tools and vision off when one isn't. The list is edited as a node (`EditYAMLNode`), so the user's other entries, the `tools` block (anchors too) and comments stay. A key the user adds to magpie's entry or to one of its models (`include_user_email`, a `description`) is kept on a sync (`mergeYAMLKept`), and a sync with nothing to change doesn't write. Disconnect takes the entry out, the list when it was the only one, and a file left with nothing in it. Raycast watches the file, so there is no restart notice. The model is picked in Raycast, so the field is whether magpie is in its picker (`ListsModels`). Detected by `Raycast.app` on a Mac or the `~/.config/raycast` folder.
|
||||
- Kiro Crew (AWS's persistent agent: KiroCrew.app, the `kirocrew` CLI, its Gateway on :5476) has no model setting of its own: it runs every session on a harness over ACP, chosen by `agent.acp_backend` in `$KIROCREW_HOME/config.json` (default `~/.kiro/crew`; `""` is kiro-cli), and dispatched members by `agent.member_acp_backend` (`kirocrew` in [`kirocrew.go`](../../internal/agent/kirocrew.go); github.com/kirodotdev/KiroCrew v0.9.0, `src/kiro_crew/` `config/paths.py`, `config/loader.py`, `config/sections.py`, `agent_sdk/backends.py`). Connecting it sets both to an agent already connected to magpie (Codex, Claude Code, OpenCode, Pi or Goose; Pi can't take dispatch, so only the first key for it), preferring the one whose ACP adapter is installed (codex-acp, claude-agent-acp, pi-acp; looked for, never installed, and named in the notice when missing). When `agent.acp_backend` already names one of those five and that agent is installed but not connected, connecting Kiro Crew connects that agent too, in the same action, and runs Crew on it (wuping9525 on Windows: Crew on Claude Code, Claude Code not connected); the stash's `kirocrew.joined` records it, and Kiro Crew's Disconnect disconnects it again, unless the user disconnected it themselves since (`kiroCrewUserLeft` in `Agent.Disconnect`), and a disconnect the user had made before stays theirs. Otherwise, with none connected it refuses and says which to connect. On Windows the app is found by `~\.kirocrew-app\.venv\Scripts\kirocrew.exe` and an adapter also by npm's `.cmd`/`.exe` shim names. `config.local.json` is merged over `config.json` and wins, so a harness set there is the user's: magpie neither writes nor reads past it, and the row says so. The previous values are stashed and put back on Disconnect, only while each key still holds what magpie wrote; a file magpie made is removed when it is left empty. The row reads as connected only while the harness it names is still wired to magpie. Open sessions keep their harness; new ones take it.
|
||||
- OpenPencil (ZSeven-W/openpencil, the `openpencil-desktop` app) keeps the builtin agents its chat runs on in `settings.json` in Rust's `dirs::config_dir()` joined with `openpencil`: `~/Library/Application Support/openpencil` on a Mac, `$XDG_CONFIG_HOME` or `~/.config` on Linux, `%APPDATA%` on Windows (`openPencil` in [`openpencil.go`](../../internal/agent/openpencil.go); its `settings_io.rs` and `settings_payload.rs`). magpie adds one entry to `builtin_agents`, `id: magpie`, `kind: openai-compat` at the gateway's `/v1` with a key naming OpenPencil (its User-Agent isn't known), `preset: custom`, the picked models as OpenPencil writes a list: the first as `model`, `models` only for two or more, at most 64 (v0.8.4 reads `model` alone). The user's other entries and settings stay, and so do the `display_name` and `enabled` they give magpie's entry; a sync with nothing to change doesn't write. OpenPencil needs `"version": 1` (a file without it is set aside as corrupt and saving stops), so magpie writes it in a file it makes and leaves a file with any other version, or none, alone. Disconnect takes the entry out, and the file when only the version and an empty list are left. OpenPencil reads the file once at start and writes it back whole when it quits, so a change is refused while `openpencil-desktop` runs (Windows can't be asked, so the notice says to quit it first). The model is picked in OpenPencil's chat, so the field is whether magpie is in its picker (`ListsModels`). Detected by its settings folder, `~/.openpencil` (its CLI's), `OpenPencil.app` (`com.zseven-w.openpencil`), or `%ProgramFiles%\OpenPencil`. open-pencil/open-pencil, the other app of the name, keeps its providers in its webview's localStorage, so it is not a row: it reaches magpie through Pi or an ACP agent magpie wires.
|
||||
- Antigravity, Google's desktop app (not Antigravity IDE, `com.google.antigravity-ide`), takes a gateway from `~/.antigravity/settings.json` from 2.15 on: Google's Antigravity Enterprise Gateway (docs.cloud.google.com/gemini/enterprise/docs/ai-developer-tools/connect-enterprise-gateway; `antigravity` in [`antigravity.go`](../../internal/agent/antigravity.go), ryougi_hachi on X). magpie writes `gateway` as `{enabled: true, url: <gateway>, apiKey: <key naming Antigravity>, wireProtocol: openai}` and the model it starts on as `models.defaultModelId`, and takes out `models.list`, which would narrow the picker to the user's own. On the openai protocol the app's backend (2.28.2) asks `<url>/v1/models` for its picker, labelled by id (`NoNames`, `ListsModels`), and streams `<url>/v1/chat/completions` with the key as a bearer token and a User-Agent of `antigravity/hub/<version>`. The user's gateway, default model and list are stashed and put back on disconnect, or when a model of their own is picked; `caCertPath` and the rest of the file are never touched, and a `Sync` keeps what the user added to magpie's block (`customHeaders`). On a gateway the app uses no Google sign-in. An organisation's `admin_settings.json` and the `AGY_LLM_GATEWAY_*` variables win over the file, so `Check` says when either sets a gateway. agy reads the same file below its own settings: an agy connected on its own row keeps its route, one that isn't follows the app's gateway, as the notice says. `~/.antigravity` is Antigravity IDE's and agy's too, so the app is found by its bundle at 2.15 or later (`desktopApps`) or `~/.gemini/antigravity/agyhub_summaries_proto.pb`, which only its backend writes. The app reads the file at start, so the notice asks for a restart. The Antigravity accounts magpie signs in (provider `antigravity`) are a separate thing: those send magpie's requests to Google.
|
||||
- NewMax (newmax.cc, an Electron app on the Claude Agent SDK) keeps its settings as JSON in the row `app` of the `settings` table of `newmax.db`, a SQLite database in WAL mode in `$NEWMAX_USER_DATA_DIR`, else `~/.newmax` on every system (`newMax` in [`newmax.go`](../../internal/agent/newmax.go); its main bundle's `configureAppDataPaths`, `loadPersistedAppSettings` and the renderer's `mergeProviders`, v1.1.22). magpie adds one entry to `providers` in the shape NewMax's own import writes, `id: magpie-gateway` (its own preset is `magpie`, its import's ids hold `%3A`), `apiFormat: anthropic` at the gateway's root (NewMax appends `/v1/messages`) with `ANTHROPIC_AUTH_TOKEN` and a key naming NewMax, at most 20 models (`MAX_MODELS`) as `models` and `enabledModels` with their context windows, and its id at the end of `providerOrder`. The row is edited in place in one immediate transaction, so every other byte stays; the user's `name` and `enabled` for magpie's entry and the fields NewMax adds to it stay through a sync, and a sync with nothing to change doesn't write. A row that isn't a JSON object, or whose `providers` or `providerOrder` isn't a list, is left alone. With no row (NewMax at its defaults), magpie writes one with its entry alone, as NewMax lays its defaults and presets under the row; with no database yet, it asks to open NewMax once. Disconnect takes the entry and the id out, sets a pick of it back to `default`, and takes the row out when only what magpie made is left. NewMax holds its settings in memory and writes the whole row back whenever one changes, so a change is refused while `NewMax` (`newmax` on Linux) runs (Windows can't be asked, so the notice says to quit it first). The model is picked in NewMax's model picker, so the field is whether magpie is in it (`ListsModels`). Detected by its data folder or `NewMax.app` (`cc.newmax.desktop`).
|
||||
- DevEco Code (Huawei's OpenCode fork, #1885) is wired as OpenCode is (`deveco` in [`agents.go`](../../internal/agent/agents.go)): magpie's provider goes into the first of `deveco.jsonc`, `deveco.json` and `config.json` in `~/.config/deveco` (the one DevEco merges last, so the one that wins), or in `$DEVECO_CONFIG_DIR` when that is absolute, read after them. 0.2.3 sends `deveco/0.2.3 ai-sdk/…` to a provider of its config, but much of the OpenCode code it keeps still sends OpenCode's own User-Agent (`opencode/<version>`), so its provider's key is `magpie-deveco` (`openCodeKeyAt`), not the plain `magpie` OpenCode and MiMo Code send, and Check asks for that key. Its npm package has no Linux binary, so no install command is offered there (`cliSpec.only`).
|
||||
- Grok Build keeps magpie's models as one `[model."magpie/<provider>/<model>"]` table each in `config.toml` under `$GROK_HOME`, else `~/.grok` (`grok` in [`grok.go`](../../internal/agent/grok.go)), each on the gateway's `/v1` with magpie's key. Grok Build takes `api_backend` per model table, `"chat_completions"` (its default), `"responses"` or `"messages"` (Anthropic Messages), and sends each to `base_url` joined with `/chat/completions`, `/responses` or `/messages` (the "Supported API Backends" page bundled in its binary; grok 1.0.67). magpie writes each model's native API (`grokBackend`, from `catalog.Model.APIs` as Pi, droid and dsh pick theirs; uk.jent on Discord), so the gateway relays the request as it is: Responses for a model served best there, Messages for a Claude on an Anthropic endpoint, Chat for the rest, a group whose members differ, or one not known. Each table's `context_window` "drives auto-compact timing" (Grok Build's config reference), so it is where Long conversations has Codex compact (`grokWindow`, codexcat's rule): a threshold set on the model or its provider, else `settings.Working` of the model's window, the whole window under Full window; Long conversations is in Grok Build's sheet on the Agents page (`AGENT_PREFS`). A `context_window` the user set in one of magpie's tables by hand stays through a sync and a new pick (uk.jent on Discord: dozens of 1M models set to 300K one by one): what magpie last gave each model is stashed (`grok:<path>:windows`), and a value other than it is the user's (`grokOwnWindow`). With no record yet (a config an older magpie wrote, which gave every model its whole window), a value other than the model's whole window and other than magpie's now is taken for the user's. Disconnect drops the record with the tables. `TestGrokKeepsAWindowSetByHand`, `TestGrokKeepsAWindowSetBeforeTheRecord`, `TestGrokWindowFollowsLongConversations`.
|
||||
@@ -185,6 +186,7 @@ go test -tags nogui ./internal/agent -run '^TestOpenClaw'
|
||||
go test -tags nogui ./internal/agent -run '^TestRaycast'
|
||||
go test -tags nogui ./internal/agent -run '^TestKiroCrew'
|
||||
go test -tags nogui ./internal/agent -run '^TestOpenPencil'
|
||||
go test -tags nogui ./internal/agent -run '^TestAntigravity'
|
||||
go test -tags nogui ./internal/agent -run '^TestNewMax'
|
||||
go test -tags nogui ./internal/agent -run '^TestGrokApp'
|
||||
go test -tags nogui ./internal/agent -run 'ClaudeScience'
|
||||
|
||||
@@ -220,6 +220,7 @@ func onMachine(home, cfg string) []*Agent {
|
||||
codex(home),
|
||||
gemini(home),
|
||||
agy(home),
|
||||
antigravity(home),
|
||||
opencode(home, cfg),
|
||||
openChamber(home, cfg),
|
||||
mimocode(home, cfg),
|
||||
|
||||
@@ -0,0 +1,211 @@
|
||||
package agent
|
||||
|
||||
// Antigravity, Google's desktop app (2.15 and later), sends its requests to
|
||||
// a gateway of the user's instead of Google when ~/.antigravity/settings.json
|
||||
// turns one on: Google's Antigravity Enterprise Gateway, documented at
|
||||
// docs.cloud.google.com/gemini/enterprise/docs/ai-developer-tools/connect-enterprise-gateway
|
||||
// (ryougi_hachi on X):
|
||||
//
|
||||
// {"gateway":{"enabled":true,"url":…,"apiKey":…,"wireProtocol":"openai"},
|
||||
// "models":{"defaultModelId":…,"list":[{"modelId":…}]}}
|
||||
//
|
||||
// On the openai wire protocol the app asks <url>/v1/models for its model
|
||||
// picker (models.list, when there is one, narrows it) and sends a chat to
|
||||
// <url>/v1/chat/completions, streamed, with apiKey as a bearer token and a
|
||||
// User-Agent of antigravity/hub/<version> (auth_method=gateway). magpie's
|
||||
// gateway answers both, so what magpie writes is that block at its own
|
||||
// address, with a key that names the app, and the model the app starts on.
|
||||
// The user's own gateway, default model and model list are stashed and put
|
||||
// back when magpie steps out. On a gateway the app asks for no Google
|
||||
// sign-in and uses none: Google's docs say the two can't be used at once.
|
||||
//
|
||||
// The same file is read by agy (Antigravity's CLI) too, below its own
|
||||
// ~/.gemini/antigravity-cli/settings.json: an agy connected on its own row
|
||||
// (modelProvider gemini) keeps that route, one that isn't follows the app's
|
||||
// gateway. admin_settings.json, which an organisation installs, and the
|
||||
// AGY_LLM_GATEWAY_* variables win over this file, field by field.
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strings"
|
||||
|
||||
"github.com/yetone/magpie/internal/edit"
|
||||
"github.com/yetone/magpie/internal/gateway"
|
||||
"github.com/yetone/magpie/internal/proc"
|
||||
)
|
||||
|
||||
const (
|
||||
antigravityModel = "models.defaultModelId"
|
||||
antigravityList = "models.list"
|
||||
)
|
||||
|
||||
// antigravityAdmin is where an organisation's admin_settings.json is kept
|
||||
// on this system (Google's docs), whose gateway outranks the user's; under
|
||||
// a test's home in a test binary (proc.SystemDirs).
|
||||
func antigravityAdmin() string {
|
||||
p := "/etc/antigravity/admin_settings.json"
|
||||
switch runtime.GOOS {
|
||||
case "darwin":
|
||||
p = "/Library/Application Support/Antigravity/admin_settings.json"
|
||||
case "windows":
|
||||
d := os.Getenv("ProgramData")
|
||||
if d == "" {
|
||||
return ""
|
||||
}
|
||||
p = filepath.Join(d, "Antigravity", "admin_settings.json")
|
||||
}
|
||||
return proc.SystemDirs(p)[0]
|
||||
}
|
||||
|
||||
// antigravityAdminPath is antigravityAdmin, swapped by a test.
|
||||
var antigravityAdminPath = antigravityAdmin
|
||||
|
||||
func antigravity(home string) *Agent {
|
||||
dir := filepath.Join(home, ".antigravity")
|
||||
path := filepath.Join(dir, "settings.json")
|
||||
model := jsonGet(path, antigravityModel)
|
||||
stashGateway, stashModel, stashList := "antigravity:"+path+":gateway", "antigravity:"+path+":defaultModelId", "antigravity:"+path+":list"
|
||||
// wired: the file's gateway is on and carries a key magpie gave it
|
||||
wired := func() bool {
|
||||
on, _ := edit.GetJSON(path, "gateway.enabled")
|
||||
key, _ := edit.GetJSON(path, "gateway.apiKey")
|
||||
return on == "true" && gatewayKey(key)
|
||||
}
|
||||
gatewayBlock := func() map[string]any {
|
||||
return map[string]any{"enabled": true, "url": gateway.URL(), "apiKey": agentKey("antigravity"), "wireProtocol": "openai"}
|
||||
}
|
||||
// putRaw writes back what was stashed as it was, or takes key out
|
||||
putRaw := func(key, raw string) error {
|
||||
if raw == "" {
|
||||
return edit.DelJSON(path, key)
|
||||
}
|
||||
return edit.SetJSON(path, edit.KV{Path: key, Value: json.RawMessage(raw)})
|
||||
}
|
||||
return &Agent{
|
||||
ID: "antigravity", Name: "Antigravity", Icon: "antigravity-color", Aliases: []string{"antigravity-app", "agy-app"},
|
||||
Spelled: prefixed,
|
||||
// ~/.antigravity is also where Antigravity IDE (a VS Code fork) and
|
||||
// agy keep theirs, so it says nothing of the app: the app is its
|
||||
// bundle (2.15 or later, the first to take a gateway) or the file
|
||||
// only its own backend writes
|
||||
Dir: dir, Path: path, dirShared: true,
|
||||
sign: func() bool {
|
||||
if v := (&Agent{ID: "antigravity"}).AppVersion(); v != "" && !Newer("2.15.0", v) {
|
||||
return true
|
||||
}
|
||||
return isFile(filepath.Join(home, ".gemini", "antigravity", "agyhub_summaries_proto.pb"))
|
||||
},
|
||||
// its picker lists the gateway's /v1/models as asked with its key,
|
||||
// by id
|
||||
ListsModels: true, NoNames: true,
|
||||
Notice: func() string {
|
||||
if wired() {
|
||||
return noticeAntigravity.String()
|
||||
}
|
||||
return ""
|
||||
},
|
||||
Sync: func() error {
|
||||
if !wired() {
|
||||
return nil
|
||||
}
|
||||
return syncJSON(path, "gateway", theirsKept(path, "gateway", func() any { return gatewayBlock() }))
|
||||
},
|
||||
Check: func() string {
|
||||
if !wired() {
|
||||
return ""
|
||||
}
|
||||
if p := antigravityAdminPath(); p != "" {
|
||||
if u, ok := edit.GetJSON(p, "gateway.url"); ok && u != "" {
|
||||
return noticeAntigravityAdmin.say("path", p)
|
||||
}
|
||||
}
|
||||
if u := os.Getenv("AGY_LLM_GATEWAY_URL"); u != "" && u != gateway.URL() {
|
||||
return noticeAntigravityEnv.say("url", u)
|
||||
}
|
||||
return wiringOff("Antigravity", path, func(k string) (string, bool) { return edit.GetJSON(path, "gateway."+k) },
|
||||
"url", gateway.URL(), "apiKey", agentKey("antigravity"))
|
||||
},
|
||||
Fields: []Field{{
|
||||
Key: "model", Label: "model",
|
||||
Get: func() string {
|
||||
if v := model(); wired() && v != "" {
|
||||
return magpieID + "/" + v
|
||||
}
|
||||
return model()
|
||||
},
|
||||
Set: func(v string) error {
|
||||
on := wired()
|
||||
if ref, ok := strings.CutPrefix(v, magpieID+"/"); ok && isMagpie(ref) {
|
||||
if !on {
|
||||
g, _ := edit.GetJSONRaw(path, "gateway")
|
||||
m, _ := edit.GetJSONRaw(path, antigravityModel)
|
||||
l, _ := edit.GetJSONRaw(path, antigravityList)
|
||||
stash(map[string]string{stashGateway: g, stashModel: m, stashList: l})
|
||||
}
|
||||
// a list of the user's would hide magpie's models from
|
||||
// the picker; it is stashed with their gateway
|
||||
if err := edit.DelJSON(path, antigravityList); err != nil {
|
||||
return err
|
||||
}
|
||||
// set again on magpie, what the user added to its block stays
|
||||
block := any(gatewayBlock())
|
||||
if on {
|
||||
block = theirsKept(path, "gateway", func() any { return gatewayBlock() })()
|
||||
}
|
||||
return edit.SetJSON(path, edit.KV{Path: "gateway", Value: block}, edit.KV{Path: antigravityModel, Value: ref})
|
||||
}
|
||||
if on {
|
||||
// back to what the user had
|
||||
if err := putRaw("gateway", unstash(stashGateway)); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := putRaw(antigravityList, unstash(stashList)); err != nil {
|
||||
return err
|
||||
}
|
||||
if v == "" {
|
||||
if err := putRaw(antigravityModel, unstash(stashModel)); err != nil {
|
||||
return err
|
||||
}
|
||||
return antigravityTidy(path)
|
||||
}
|
||||
forget(stashModel)
|
||||
}
|
||||
if v == "" {
|
||||
if err := edit.DelJSON(path, antigravityModel); err != nil {
|
||||
return err
|
||||
}
|
||||
} else if err := edit.SetJSON(path, edit.KV{Path: antigravityModel, Value: v}); err != nil {
|
||||
return err
|
||||
}
|
||||
return antigravityTidy(path)
|
||||
},
|
||||
Options: func(cur map[string]string) []Option {
|
||||
// the user's own model is Google's, on their sign-in, or their
|
||||
// own gateway's
|
||||
var own []Option
|
||||
if c := cur["model"]; c != "" && !prefixed(c) {
|
||||
own = []Option{{Value: c, Icon: modelIcon("", c), Direct: "Google"}}
|
||||
}
|
||||
return withVia(group("Antigravity", own), "antigravity", magpieID+"/")
|
||||
},
|
||||
}},
|
||||
}
|
||||
}
|
||||
|
||||
// antigravityTidy takes out a models object magpie left empty.
|
||||
func antigravityTidy(path string) error {
|
||||
if v, ok := edit.GetJSON(path, "models"); ok && strings.TrimSpace(v) == "{}" {
|
||||
return edit.DelJSON(path, "models")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// what antigravity says after a change (notice.go)
|
||||
var (
|
||||
noticeAntigravity = newNotice("Antigravity reads its gateway at start-up — restart Antigravity to use magpie's models. On magpie it doesn't use your Google sign-in; turning it off here gives that back. An agy not connected on its own row follows it too.")
|
||||
noticeAntigravityAdmin = newNotice("Antigravity's {path} sets a gateway of its own, which wins over ~/.antigravity/settings.json, so it doesn't reach magpie")
|
||||
noticeAntigravityEnv = newNotice("AGY_LLM_GATEWAY_URL is set to {url}, which wins over ~/.antigravity/settings.json, so Antigravity started with it doesn't reach magpie")
|
||||
)
|
||||
@@ -0,0 +1,280 @@
|
||||
package agent
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"slices"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/yetone/magpie/internal/gateway"
|
||||
"github.com/yetone/magpie/internal/provider"
|
||||
)
|
||||
|
||||
// antigravityUser is ~/.antigravity/settings.json with a gateway of the
|
||||
// user's own (Google's example, on genai), a default model, a model list
|
||||
// and a key magpie never writes.
|
||||
const antigravityUser = `{
|
||||
"gateway": {
|
||||
"enabled": true,
|
||||
"url": "https://gateway.cymbal.com",
|
||||
"apiKey": "GATEWAY_API_KEY",
|
||||
"wireProtocol": "genai",
|
||||
"customHeaders": {"X-Cost-Center": "Platform-Engineering"}
|
||||
},
|
||||
"caCertPath": "/etc/ssl/certs/cymbal-root-ca.pem",
|
||||
"models": {
|
||||
"defaultModelId": "gemini-3.8-flash",
|
||||
"list": [{"modelId": "gemini-3.8-flash"}]
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
func antigravityHome(t *testing.T) string {
|
||||
t.Helper()
|
||||
home := syncHome(t)
|
||||
t.Setenv("AGY_LLM_GATEWAY_URL", "")
|
||||
if err := provider.Save(provider.Provider{ID: "anth", Name: "Anth", Key: "k", Anthropic: "http://127.0.0.1:1", Models: []string{"claude-sonnet-5"}}); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
return home
|
||||
}
|
||||
|
||||
func antigravityFile(t *testing.T, path string) map[string]json.RawMessage {
|
||||
t.Helper()
|
||||
var m map[string]json.RawMessage
|
||||
if err := json.Unmarshal([]byte(readFile(path)), &m); err != nil {
|
||||
t.Fatalf("%v\n%s", err, readFile(path))
|
||||
}
|
||||
return m
|
||||
}
|
||||
|
||||
// Antigravity's app takes a gateway from ~/.antigravity/settings.json
|
||||
// (Google's Antigravity Enterprise Gateway, ryougi_hachi on X): magpie
|
||||
// writes its own, on the openai wire protocol with a key naming the app,
|
||||
// and the model it starts on; the user's own gateway, default model and
|
||||
// model list come back when it is turned off, and what else the file holds
|
||||
// is never touched.
|
||||
func TestAntigravityGateway(t *testing.T) {
|
||||
home := antigravityHome(t)
|
||||
path := filepath.Join(home, ".antigravity", "settings.json")
|
||||
if !slices.ContainsFunc(All(), func(x *Agent) bool { return x.ID == "antigravity" && x.Name == "Antigravity" }) {
|
||||
t.Fatal("Antigravity is not among the agents")
|
||||
}
|
||||
os.MkdirAll(filepath.Dir(path), 0o755)
|
||||
os.WriteFile(path, []byte(antigravityUser), 0o600)
|
||||
a := antigravity(home)
|
||||
f := a.Field("model")
|
||||
if f == nil {
|
||||
t.Fatal("no model field")
|
||||
}
|
||||
if got := f.Get(); got != "gemini-3.8-flash" {
|
||||
t.Fatalf("get: %q", got)
|
||||
}
|
||||
if a.Notice() != "" {
|
||||
t.Errorf("a notice while on the user's own gateway: %q", a.Notice())
|
||||
}
|
||||
|
||||
if err := f.Set("magpie/anth/claude-sonnet-5"); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if got := f.Get(); got != "magpie/anth/claude-sonnet-5" {
|
||||
t.Fatalf("get after set: %q", got)
|
||||
}
|
||||
file := antigravityFile(t, path)
|
||||
var gw map[string]any
|
||||
json.Unmarshal(file["gateway"], &gw)
|
||||
want := map[string]any{"enabled": true, "url": gateway.URL(), "apiKey": agentKey("antigravity"), "wireProtocol": "openai"}
|
||||
if !sameJSON(string(file["gateway"]), want) {
|
||||
t.Errorf("gateway: %s, want %v", file["gateway"], want)
|
||||
}
|
||||
if !strings.HasSuffix(gw["apiKey"].(string), "-antigravity") {
|
||||
t.Errorf("the key doesn't name the app: %v", gw["apiKey"])
|
||||
}
|
||||
if !sameJSON(string(file["models"]), map[string]any{"defaultModelId": "anth/claude-sonnet-5"}) {
|
||||
t.Errorf("models: %s (the user's list would narrow the picker)", file["models"])
|
||||
}
|
||||
if string(file["caCertPath"]) != `"/etc/ssl/certs/cymbal-root-ca.pem"` {
|
||||
t.Errorf("caCertPath: %s", file["caCertPath"])
|
||||
}
|
||||
if a.Notice() == "" {
|
||||
t.Error("no notice to restart the app")
|
||||
}
|
||||
opts := f.Options(map[string]string{"model": f.Get()})
|
||||
if !slices.ContainsFunc(opts, func(o Option) bool { return o.Value == "magpie/anth/claude-sonnet-5" }) {
|
||||
t.Errorf("magpie's model not offered: %v", opts)
|
||||
}
|
||||
|
||||
// another magpie model, then off: the user's as they were
|
||||
if err := f.Set("magpie/anth/claude-sonnet-5"); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := f.Set(""); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if !sameJSON(readFile(path), json.RawMessage(antigravityUser)) {
|
||||
t.Errorf("not the user's file again:\n%s", readFile(path))
|
||||
}
|
||||
if got := f.Get(); got != "gemini-3.8-flash" {
|
||||
t.Errorf("get after off: %q", got)
|
||||
}
|
||||
if a.Notice() != "" {
|
||||
t.Errorf("a notice after off: %q", a.Notice())
|
||||
}
|
||||
}
|
||||
|
||||
// With no file of the user's, turning magpie on and off leaves nothing of
|
||||
// it: no gateway, no models.
|
||||
func TestAntigravityGatewayFromNothing(t *testing.T) {
|
||||
home := antigravityHome(t)
|
||||
path := filepath.Join(home, ".antigravity", "settings.json")
|
||||
f := antigravity(home).Field("model")
|
||||
if f.Get() != "" {
|
||||
t.Fatalf("get: %q", f.Get())
|
||||
}
|
||||
if err := f.Set("magpie/anth/claude-sonnet-5"); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if got := f.Get(); got != "magpie/anth/claude-sonnet-5" {
|
||||
t.Fatalf("get: %q", got)
|
||||
}
|
||||
if err := f.Set(""); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if !sameJSON(readFile(path), map[string]any{}) {
|
||||
t.Errorf("left behind:\n%s", readFile(path))
|
||||
}
|
||||
}
|
||||
|
||||
// Picking a model of the user's own while on magpie gives their gateway
|
||||
// back and sets that model.
|
||||
func TestAntigravityOwnModelBack(t *testing.T) {
|
||||
home := antigravityHome(t)
|
||||
path := filepath.Join(home, ".antigravity", "settings.json")
|
||||
os.MkdirAll(filepath.Dir(path), 0o755)
|
||||
os.WriteFile(path, []byte(antigravityUser), 0o600)
|
||||
f := antigravity(home).Field("model")
|
||||
if err := f.Set("magpie/anth/claude-sonnet-5"); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := f.Set("gemini-3.1-pro-preview"); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
file := antigravityFile(t, path)
|
||||
var user map[string]json.RawMessage
|
||||
json.Unmarshal([]byte(antigravityUser), &user)
|
||||
if !sameJSON(string(file["gateway"]), user["gateway"]) {
|
||||
t.Errorf("gateway: %s", file["gateway"])
|
||||
}
|
||||
if got := f.Get(); got != "gemini-3.1-pro-preview" {
|
||||
t.Errorf("get: %q", got)
|
||||
}
|
||||
if _, ok := stashShared()["antigravity:"+path+":defaultModelId"]; ok {
|
||||
t.Error("the stashed model was kept after another was picked")
|
||||
}
|
||||
}
|
||||
|
||||
// A sync brings the gateway's address and key up to date and keeps what
|
||||
// the user added to the block; a gateway that isn't magpie's is left alone.
|
||||
func TestAntigravitySync(t *testing.T) {
|
||||
home := antigravityHome(t)
|
||||
path := filepath.Join(home, ".antigravity", "settings.json")
|
||||
a := antigravity(home)
|
||||
os.MkdirAll(filepath.Dir(path), 0o755)
|
||||
os.WriteFile(path, []byte(antigravityUser), 0o600)
|
||||
if err := a.Sync(); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if !sameJSON(readFile(path), json.RawMessage(antigravityUser)) {
|
||||
t.Fatalf("the user's gateway synced:\n%s", readFile(path))
|
||||
}
|
||||
if err := a.Field("model").Set("magpie/anth/claude-sonnet-5"); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
b := strings.Replace(readFile(path), gateway.URL(), "http://127.0.0.1:1", 1)
|
||||
b = strings.Replace(b, `"wireProtocol"`, `"customHeaders": {"X-Mine": "1"}, "wireProtocol"`, 1)
|
||||
os.WriteFile(path, []byte(b), 0o600)
|
||||
if err := a.Sync(); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
file := antigravityFile(t, path)
|
||||
var gw map[string]any
|
||||
json.Unmarshal(file["gateway"], &gw)
|
||||
if gw["url"] != gateway.URL() {
|
||||
t.Errorf("url: %v", gw["url"])
|
||||
}
|
||||
if h, _ := gw["customHeaders"].(map[string]any); h["X-Mine"] != "1" {
|
||||
t.Errorf("the user's headers lost: %s", file["gateway"])
|
||||
}
|
||||
// set again (a moved port, Reconnect): the headers stay too
|
||||
if err := a.Field("model").Set("magpie/anth/claude-sonnet-5"); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
file = antigravityFile(t, path)
|
||||
gw = nil
|
||||
json.Unmarshal(file["gateway"], &gw)
|
||||
if h, _ := gw["customHeaders"].(map[string]any); h["X-Mine"] != "1" {
|
||||
t.Errorf("the user's headers lost on a set again: %s", file["gateway"])
|
||||
}
|
||||
}
|
||||
|
||||
// An organisation's admin_settings.json, or AGY_LLM_GATEWAY_URL, wins over
|
||||
// the user's file, so the row says it doesn't reach magpie.
|
||||
func TestAntigravityAdminWins(t *testing.T) {
|
||||
home := antigravityHome(t)
|
||||
a := antigravity(home)
|
||||
if err := a.Field("model").Set("magpie/anth/claude-sonnet-5"); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if c := a.Check(); c != "" {
|
||||
t.Fatalf("check: %q", c)
|
||||
}
|
||||
admin := filepath.Join(t.TempDir(), "admin_settings.json")
|
||||
was := antigravityAdminPath
|
||||
antigravityAdminPath = func() string { return admin }
|
||||
t.Cleanup(func() { antigravityAdminPath = was })
|
||||
os.WriteFile(admin, []byte(`{"gateway":{"url":"https://gateway.cymbal.com"}}`), 0o644)
|
||||
if c := a.Check(); !strings.Contains(c, "admin_settings.json") {
|
||||
t.Errorf("check with an admin gateway: %q", c)
|
||||
}
|
||||
os.Remove(admin)
|
||||
t.Setenv("AGY_LLM_GATEWAY_URL", "https://gateway.cymbal.com")
|
||||
if c := a.Check(); !strings.Contains(c, "AGY_LLM_GATEWAY_URL") {
|
||||
t.Errorf("check with the variable: %q", c)
|
||||
}
|
||||
}
|
||||
|
||||
// ~/.antigravity is Antigravity IDE's and agy's too, so it isn't the app:
|
||||
// the app's bundle, 2.15 or later, or the file its own backend writes is.
|
||||
func TestAntigravityDetected(t *testing.T) {
|
||||
home := antigravityHome(t)
|
||||
a := antigravity(home)
|
||||
os.MkdirAll(filepath.Join(home, ".antigravity", "extensions"), 0o755)
|
||||
if a.Detected() {
|
||||
t.Fatal("Antigravity IDE's folder taken for the app")
|
||||
}
|
||||
if runtime.GOOS == "darwin" {
|
||||
plist := func(v string) {
|
||||
c := filepath.Join(home, "Applications", "Antigravity.app", "Contents")
|
||||
os.MkdirAll(c, 0o755)
|
||||
os.WriteFile(filepath.Join(c, "Info.plist"), []byte(`<plist><dict><key>CFBundleIdentifier</key><string>com.google.antigravity</string><key>CFBundleShortVersionString</key><string>`+v+`</string></dict></plist>`), 0o644)
|
||||
}
|
||||
plist("1.11.3")
|
||||
if a.Detected() {
|
||||
t.Fatal("an app before 2.15, which takes no gateway, taken for it")
|
||||
}
|
||||
plist("2.28.2")
|
||||
if !a.Detected() {
|
||||
t.Fatal("Antigravity 2.28.2 not found")
|
||||
}
|
||||
os.RemoveAll(filepath.Join(home, "Applications"))
|
||||
}
|
||||
hub := filepath.Join(home, ".gemini", "antigravity")
|
||||
os.MkdirAll(hub, 0o755)
|
||||
os.WriteFile(filepath.Join(hub, "agyhub_summaries_proto.pb"), nil, 0o644)
|
||||
if !a.Detected() {
|
||||
t.Fatal("not found by its backend's file")
|
||||
}
|
||||
}
|
||||
@@ -84,6 +84,10 @@ var desktopApps = map[string]desktopApp{
|
||||
// CLI's ~/.codebuddy/models.json for models of one's own (codebuddy.go)
|
||||
// and needs no CLI. Its Windows install folder isn't known here, so on
|
||||
// Windows only the rule that a desktop app's folder is never gone holds.
|
||||
// Antigravity's app (antigravity.go), not Antigravity IDE
|
||||
// (com.google.antigravity-ide). Its Windows and Linux installs aren't
|
||||
// known here: there the file its backend writes finds it.
|
||||
"antigravity": {id: "com.google.antigravity", names: []string{"Antigravity.app"}},
|
||||
"codebuddy": {id: "com.tencent.codebuddy", names: []string{"CodeBuddy.app"},
|
||||
more: []desktopApp{{id: "com.tencent.codebuddycn", names: []string{"CodeBuddy CN.app"}}}},
|
||||
}
|
||||
|
||||
@@ -38,6 +38,8 @@ var Vars = []string{
|
||||
"CODEX_SQLITE_HOME",
|
||||
// Gemini CLI's session/config home
|
||||
"GEMINI_CLI_HOME",
|
||||
// Antigravity's gateway, which wins over its settings.json
|
||||
"AGY_LLM_GATEWAY_URL",
|
||||
// Cline: its folder, its data, its sessions and its MCP settings file
|
||||
"CLINE_DIR", "CLINE_DATA_DIR", "CLINE_SESSION_DATA_DIR", "CLINE_MCP_SETTINGS_PATH",
|
||||
// Pi and its forks (OmO, Senpi), whose profile and config are apart
|
||||
|
||||
@@ -4155,6 +4155,9 @@ const I18N = {
|
||||
"OpenPencil reads its settings when it starts and writes them all back when it quits — quit OpenPencil before changing this, then open it and pick a magpie model in its chat's model picker.": "OpenPencil 启动时读取设置、退出时把设置全部写回 —— 请先退出 OpenPencil 再更改这里,然后打开它,在聊天的模型选择器中选一个 magpie 的模型。",
|
||||
"NewMax keeps its settings in memory while it runs and writes them all back when one changes — quit NewMax before changing this, then open it and pick a magpie model in its model picker.": "NewMax 运行时把设置放在内存里,任一设置变化时会全部写回 —— 请先退出 NewMax 再更改这里,然后打开它,在模型选择器中选一个 magpie 的模型。",
|
||||
"Pencil reads its custom models at start-up — restart Pencil to see magpie's models in its model picker.": "Pencil 启动时读取自定义模型,需重启 Pencil 才能在它的模型选择器中看到 magpie 的模型。",
|
||||
"Antigravity reads its gateway at start-up — restart Antigravity to use magpie's models. On magpie it doesn't use your Google sign-in; turning it off here gives that back. An agy not connected on its own row follows it too.": "Antigravity 启动时读取网关,需重启 Antigravity 才能使用 magpie 的模型。接入 magpie 时它不使用你的 Google 登录,在这里关闭即可恢复。未在自己那一行接入的 agy 也会跟着它走。",
|
||||
"Antigravity's {path} sets a gateway of its own, which wins over ~/.antigravity/settings.json, so it doesn't reach magpie": "Antigravity 的 {path} 设置了自己的网关,它优先于 ~/.antigravity/settings.json,所以不会连到 magpie",
|
||||
"AGY_LLM_GATEWAY_URL is set to {url}, which wins over ~/.antigravity/settings.json, so Antigravity started with it doesn't reach magpie": "AGY_LLM_GATEWAY_URL 被设为 {url},它优先于 ~/.antigravity/settings.json,所以这样启动的 Antigravity 不会连到 magpie",
|
||||
"Qwen Code reads a session's model at start-up — start a new session, or /model anew, to use this.": "Qwen Code 在会话启动时读取模型,需开启新会话或重新执行 /model 才会生效。",
|
||||
"Reasonix Studio 2.x and the native 1.39.x/2.x CLI read global settings at startup. Start a new process to load changes. Project/session models can override Executor and Plan.": "Reasonix Studio 2.x 和原生 1.39.x/2.x CLI 在启动时读取全局设置,需启动新进程才会加载改动。项目或会话的模型可以覆盖 Executor 和 Plan。",
|
||||
"Snow CLI reads its profile at start-up — restart open snow sessions to use this.": "Snow CLI 启动时读取配置档,需重启已打开的 snow 会话才会生效。",
|
||||
@@ -8493,6 +8496,9 @@ const I18N = {
|
||||
"OpenPencil reads its settings when it starts and writes them all back when it quits — quit OpenPencil before changing this, then open it and pick a magpie model in its chat's model picker.": "OpenPencil 啟動時讀取設定、結束時把設定全部寫回 —— 請先結束 OpenPencil 再變更這裡,然後開啟它,在聊天的模型選擇器中選一個 magpie 的模型。",
|
||||
"NewMax keeps its settings in memory while it runs and writes them all back when one changes — quit NewMax before changing this, then open it and pick a magpie model in its model picker.": "NewMax 執行時把設定放在記憶體中,任一設定變更時會全部寫回 —— 請先結束 NewMax 再變更這裡,然後開啟它,在模型選擇器中選一個 magpie 的模型。",
|
||||
"Pencil reads its custom models at start-up — restart Pencil to see magpie's models in its model picker.": "Pencil 啟動時讀取自訂模型,需重啟 Pencil 才能在它的模型選擇器中看到 magpie 的模型。",
|
||||
"Antigravity reads its gateway at start-up — restart Antigravity to use magpie's models. On magpie it doesn't use your Google sign-in; turning it off here gives that back. An agy not connected on its own row follows it too.": "Antigravity 啟動時讀取閘道,需重啟 Antigravity 才能使用 magpie 的模型。接入 magpie 時它不使用你的 Google 登入,在這裡關閉即可恢復。未在自己那一列接入的 agy 也會跟著它走。",
|
||||
"Antigravity's {path} sets a gateway of its own, which wins over ~/.antigravity/settings.json, so it doesn't reach magpie": "Antigravity 的 {path} 設定了自己的閘道,它優先於 ~/.antigravity/settings.json,所以不會連到 magpie",
|
||||
"AGY_LLM_GATEWAY_URL is set to {url}, which wins over ~/.antigravity/settings.json, so Antigravity started with it doesn't reach magpie": "AGY_LLM_GATEWAY_URL 被設為 {url},它優先於 ~/.antigravity/settings.json,所以這樣啟動的 Antigravity 不會連到 magpie",
|
||||
"Qwen Code reads a session's model at start-up — start a new session, or /model anew, to use this.": "Qwen Code 在會話啟動時讀取模型,需開啟新會話或重新執行 /model 才會生效。",
|
||||
"Reasonix Studio 2.x and the native 1.39.x/2.x CLI read global settings at startup. Start a new process to load changes. Project/session models can override Executor and Plan.": "Reasonix Studio 2.x 和原生 1.39.x/2.x CLI 在啟動時讀取全域設定,需啟動新行程才會載入改動。專案或會話的模型可以覆蓋 Executor 和 Plan。",
|
||||
"Snow CLI reads its profile at start-up — restart open snow sessions to use this.": "Snow CLI 啟動時讀取設定檔,需重啟已打開的 snow 會話才會生效。",
|
||||
@@ -12833,6 +12839,9 @@ const I18N = {
|
||||
"OpenPencil reads its settings when it starts and writes them all back when it quits — quit OpenPencil before changing this, then open it and pick a magpie model in its chat's model picker.": "OpenPencil は起動時に設定を読み込み、終了時に設定をすべて書き戻します。ここを変更する前に OpenPencil を終了し、その後開いてチャットのモデル選択で magpie のモデルを選んでください。",
|
||||
"NewMax keeps its settings in memory while it runs and writes them all back when one changes — quit NewMax before changing this, then open it and pick a magpie model in its model picker.": "NewMax は実行中に設定をメモリに保持し、設定が変わるたびにすべて書き戻します。ここを変更する前に NewMax を終了し、その後開いてモデル選択で magpie のモデルを選んでください。",
|
||||
"Pencil reads its custom models at start-up — restart Pencil to see magpie's models in its model picker.": "Pencil は起動時にカスタムモデルを読み込みます。モデル選択に magpie のモデルを表示するには Pencil を再起動してください。",
|
||||
"Antigravity reads its gateway at start-up — restart Antigravity to use magpie's models. On magpie it doesn't use your Google sign-in; turning it off here gives that back. An agy not connected on its own row follows it too.": "Antigravity は起動時にゲートウェイを読み込みます。magpie のモデルを使うには Antigravity を再起動してください。magpie 経由では Google のサインインは使われず、ここでオフにすると元に戻ります。自分の行で接続していない agy もこれに従います。",
|
||||
"Antigravity's {path} sets a gateway of its own, which wins over ~/.antigravity/settings.json, so it doesn't reach magpie": "Antigravity の {path} が独自のゲートウェイを設定しており、~/.antigravity/settings.json より優先されるため、magpie に届きません",
|
||||
"AGY_LLM_GATEWAY_URL is set to {url}, which wins over ~/.antigravity/settings.json, so Antigravity started with it doesn't reach magpie": "AGY_LLM_GATEWAY_URL が {url} に設定されており、~/.antigravity/settings.json より優先されるため、これで起動した Antigravity は magpie に届きません",
|
||||
"Qwen Code reads a session's model at start-up — start a new session, or /model anew, to use this.": "Qwen Code はセッション開始時にモデルを読み込みます。反映するには新しいセッションを始めるか、もう一度 /model を実行してください。",
|
||||
"Reasonix Studio 2.x and the native 1.39.x/2.x CLI read global settings at startup. Start a new process to load changes. Project/session models can override Executor and Plan.": "Reasonix Studio 2.x とネイティブの 1.39.x/2.x CLI は起動時にグローバル設定を読み込みます。変更を読み込むには新しいプロセスを起動してください。プロジェクトやセッションのモデルが Executor と Plan を上書きすることがあります。",
|
||||
"Snow CLI reads its profile at start-up — restart open snow sessions to use this.": "Snow CLI は起動時にプロファイルを読み込みます。反映するには開いている snow セッションを再起動してください。",
|
||||
@@ -17173,6 +17182,9 @@ const I18N = {
|
||||
"OpenPencil reads its settings when it starts and writes them all back when it quits — quit OpenPencil before changing this, then open it and pick a magpie model in its chat's model picker.": "OpenPencil liest seine Einstellungen beim Start und schreibt sie beim Beenden alle zurück – OpenPencil vor dieser Änderung beenden, dann öffnen und in der Modellauswahl seines Chats ein magpie-Modell wählen.",
|
||||
"NewMax keeps its settings in memory while it runs and writes them all back when one changes — quit NewMax before changing this, then open it and pick a magpie model in its model picker.": "NewMax hält seine Einstellungen während der Ausführung im Speicher und schreibt sie bei jeder Änderung alle zurück – NewMax vor dieser Änderung beenden, dann öffnen und in seiner Modellauswahl ein magpie-Modell wählen.",
|
||||
"Pencil reads its custom models at start-up — restart Pencil to see magpie's models in its model picker.": "Pencil liest seine eigenen Modelle beim Start – Pencil neu starten, um magpies Modelle in seiner Modellauswahl zu sehen.",
|
||||
"Antigravity reads its gateway at start-up — restart Antigravity to use magpie's models. On magpie it doesn't use your Google sign-in; turning it off here gives that back. An agy not connected on its own row follows it too.": "Antigravity liest sein Gateway beim Start – Antigravity neu starten, um magpies Modelle zu nutzen. Über magpie nutzt es deine Google-Anmeldung nicht; hier ausschalten gibt sie zurück. Ein agy, das nicht in seiner eigenen Zeile verbunden ist, folgt ihm auch.",
|
||||
"Antigravity's {path} sets a gateway of its own, which wins over ~/.antigravity/settings.json, so it doesn't reach magpie": "Antigravitys {path} setzt ein eigenes Gateway, das Vorrang vor ~/.antigravity/settings.json hat, daher erreicht es magpie nicht",
|
||||
"AGY_LLM_GATEWAY_URL is set to {url}, which wins over ~/.antigravity/settings.json, so Antigravity started with it doesn't reach magpie": "AGY_LLM_GATEWAY_URL ist auf {url} gesetzt, das Vorrang vor ~/.antigravity/settings.json hat, daher erreicht ein damit gestartetes Antigravity magpie nicht",
|
||||
"Qwen Code reads a session's model at start-up — start a new session, or /model anew, to use this.": "Qwen Code liest das Modell einer Sitzung beim Start – eine neue Sitzung beginnen oder /model erneut ausführen, damit es gilt.",
|
||||
"Reasonix Studio 2.x and the native 1.39.x/2.x CLI read global settings at startup. Start a new process to load changes. Project/session models can override Executor and Plan.": "Reasonix Studio 2.x und die native 1.39.x/2.x-CLI lesen globale Einstellungen beim Start. Einen neuen Prozess starten, um Änderungen zu laden. Projekt- oder Sitzungsmodelle können Executor und Plan überschreiben.",
|
||||
"Snow CLI reads its profile at start-up — restart open snow sessions to use this.": "Snow CLI liest sein Profil beim Start – offene snow-Sitzungen neu starten, damit es gilt.",
|
||||
@@ -17429,6 +17441,9 @@ const NOTICES = [
|
||||
"OpenPencil reads its settings when it starts and writes them all back when it quits — quit OpenPencil before changing this, then open it and pick a magpie model in its chat's model picker.",
|
||||
"NewMax keeps its settings in memory while it runs and writes them all back when one changes — quit NewMax before changing this, then open it and pick a magpie model in its model picker.",
|
||||
"Pencil reads its custom models at start-up — restart Pencil to see magpie's models in its model picker.",
|
||||
"Antigravity reads its gateway at start-up — restart Antigravity to use magpie's models. On magpie it doesn't use your Google sign-in; turning it off here gives that back. An agy not connected on its own row follows it too.",
|
||||
"Antigravity's {path} sets a gateway of its own, which wins over ~/.antigravity/settings.json, so it doesn't reach magpie",
|
||||
"AGY_LLM_GATEWAY_URL is set to {url}, which wins over ~/.antigravity/settings.json, so Antigravity started with it doesn't reach magpie",
|
||||
"Qwen Code reads a session's model at start-up — start a new session, or /model anew, to use this.",
|
||||
"Reasonix Studio 2.x and the native 1.39.x/2.x CLI read global settings at startup. Start a new process to load changes. Project/session models can override Executor and Plan.",
|
||||
"Restart Zed if it still asks for an API key: magpie has configured its gateway credential in the system credential store.",
|
||||
|
||||
Reference in New Issue
Block a user