Files
GenericAgent/frontends/desktop/src-tauri/capabilities/default.json
T
yiqi-017andClaude Opus 4.8 2d1eb6dab0 feat(desktop): connect to a separate GA source (thin-shell / design A)
Adds a "GA source directory" setting so the packaged desktop app can run
against a standalone GenericAgent checkout instead of its own bundled
runtime/app — memory, sessions, model_responses and the agent code all
come from that 本体, live-shared with other frontends.

- lib.rs: ga_source_override settings key honored in get_or_discover_config
  BEFORE the bundle default; validated (agentmain.py + desktop_bridge.py),
  invalid/missing override falls back to the bundle (本体-moved safety net)
- set_ga_source / clear_ga_source / get_ga_source commands: write setting,
  stop current bridge, respawn from resolved config, reload webview
- startup uses the override-aware config for takeover + spawn
- ACL grants for the three new commands
- Settings > Features UI: pick source dir, show current, clear; zh/en i18n

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-06 02:20:48 +08:00

29 lines
755 B
JSON

{
"identifier": "default",
"description": "Default capabilities for all windows",
"windows": ["main", "setup"],
"remote": {
"urls": ["http://127.0.0.1:14168", "http://localhost:14168"]
},
"permissions": [
"core:default",
"core:window:default",
"core:window:allow-show",
"core:window:allow-hide",
"core:window:allow-set-focus",
"core:window:allow-close",
"core:window:allow-get-all-windows",
"core:webview:default",
"allow-start-bridge",
"allow-start-bridge-with-config",
"allow-get-config",
"allow-export-mykey",
"allow-pick-directory",
"allow-get-ga-source",
"allow-set-ga-source",
"allow-clear-ga-source",
"allow-shortcut-should-ask",
"allow-shortcut-decide"
]
}