Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
chore(merge): integrate latest master
Maxbc0fa9f6e71b
diff --cc tests/test_remote_access_vibe_cloud.pyindex 942355fb4,6012a4a46..66b214757--- a/tests/test_remote_access_vibe_cloud.py+++ b/tests/test_remote_access_vibe_cloud.py@@@ -2440,40 -2019,151 +2443,188 @@@ def test_cloud_token_for_request_returnassert remote_access.cloud_token_for_request(config, "bogus.cookie") is None+def test_cloud_token_for_request_rejects_stale_authorization_claims(monkeypatch) -> None:+ config = _cloud_broker_config()+ monkeypatch.setattr(remote_access, "current_authorization_revision", lambda *a, **k: 1)+ cookie = _session_cookie(config)+ called = False++ def fake_json_request(*args, **kwargs):+ nonlocal called+ called = True+ return {"access_token": "x", "expires_in": 1}++ monkeypatch.setattr(remote_access, "_json_request", fake_json_request)+ monkeypatch.setattr(+ remote_access,+ "session_needs_authorization_refresh",+ lambda payload: True,+ )++ assert remote_access.cloud_token_for_request(config, cookie) is None+ assert called is False+++def test_cloud_token_for_request_requires_editor_role(monkeypatch) -> None:+ config = _cloud_broker_config()+ monkeypatch.setattr(remote_access, "current_authorization_revision", lambda *a, **k: 1)+ cookie = _session_cookie(config, role="viewer")+ called = False++ def fake_json_request(*args, **kwargs):+ nonlocal called+ called = True+ return {"access_token": "x", "expires_in": 1}++ monkeypatch.setattr(remote_access, "_json_request", fake_json_request)++ assert remote_access.cloud_token_for_request(config, cookie) is None+ assert called is False+ def test_ra_tq_029_connector_environment_applies_ip_and_interface_controls() -> None:+ config = _config()+ cloud = config.remote_access.vibe_cloud+ cloud.tunnel_token = "tunnel-token"+ cloud.edge_ip_version = "4"+ cloud.edge_bind_address = "192.0.2.10"++ environment = remote_access._connector_environment(config, "http2")++ assert environment["TUNNEL_TOKEN"] == "tunnel-token"+ assert environment["TUNNEL_TRANSPORT_PROTOCOL"] == "http2"+ assert environment["TUNNEL_EDGE_IP_VERSION"] == "4"+ assert environment["TUNNEL_EDGE_BIND_ADDRESS"] == "192.0.2.10"+++ def test_ra_tq_029_network_interfaces_exclude_unusable_addresses(monkeypatch) -> None:+ monkeypatch.setattr(+ remote_access.psutil,+ "net_if_stats",+ lambda: {+ "en0": SimpleNamespace(isup=True),+ "lo0": SimpleNamespace(isup=True),+ "down0": SimpleNamespace(isup=False),+ },+ )+ monkeypatch.setattr(+ remote_access.psutil,+ "net_if_addrs",+ lambda: {+ "en0": [+ SimpleNamespace(family=remote_access.socket.AF_INET, address="192.0.2.10"),+ SimpleNamespace(family=remote_access.socket.AF_INET6, address="2001:db8::10%en0"),+ SimpleNamespace(family=remote_access.socket.AF_INET6, address="fe80::1%en0"),+ ],+ "lo0": [SimpleNamespace(family=remote_access.socket.AF_INET, address="127.0.0.1")],+ "down0": [SimpleNamespace(family=remote_access.socket.AF_INET, address="198.51.100.2")],+ },+ )++ result = remote_access.network_interfaces()++ assert result == {+ "ok": True,+ "interfaces": [+ {"id": "en0:192.0.2.10", "name": "en0", "address": "192.0.2.10", "ip_version": "4"},+ {"id": "en0:2001:db8::10", "name": "en0", "address": "2001:db8::10", "ip_version": "6"},+ ],+ }+++ def test_ra_tq_030_connectivity_diagnostics_do_not_guess_quic_reachability(monkeypatch) -> None:+ config = _config()+ monkeypatch.setattr(+ remote_access,+ "status",+ lambda loaded=None: {+ "running": True,+ "binary_version": "2026.3.0",+ "tunnel_quality": {"protocol": "http2", "transport": {"effective": "http2"}},+ },+ )+ monkeypatch.setattr(+ remote_access,+ "_bounded_tunnel_addresses",+ lambda: [(remote_access.socket.AF_INET, "198.51.100.10")],+ )+ monkeypatch.setattr(remote_access, "_tcp_tunnel_reachable", lambda *args, **kwargs: True)++ result = remote_access.connectivity_diagnostics(config)++ assert result["dns"]["status"] == "available"+ assert result["http2"]["status"] == "available"+ assert result["quic"] == {"status": "unknown", "source": "not_observed"}+++ @pytest.mark.parametrize(+ "sample_age_before_restart",+ [remote_access.QUALITY_COMPARISON_MAX_AGE_SECONDS + 1, 1],+ )+ def test_ra_tq_030_connectivity_diagnostics_requires_fresh_active_protocol(+ monkeypatch,+ sample_age_before_restart,+ ) -> None:+ config = _config()+ now = time.time()+ monkeypatch.setattr(+ remote_access,+ "status",+ lambda loaded=None: {+ "running": True,+ "pid": 222,+ "binary_version": "2026.3.0",+ "tunnel_quality": {+ "protocol": "quic",+ "transport": {"effective": "quic"},+ "sampled_at": remote_access.tunnel_quality.utc_timestamp(+ now - sample_age_before_restart+ ),+ },+ },+ )+ monkeypatch.setattr(+ remote_access,+ "_state_connector",+ lambda name: {"pid": 222, "started_at": now} if name == "active" else None,+ )+ monkeypatch.setattr(+ remote_access,+ "_bounded_tunnel_addresses",+ lambda: [(remote_access.socket.AF_INET, "198.51.100.10")],+ )+ monkeypatch.setattr(remote_access, "_tcp_tunnel_reachable", lambda *args, **kwargs: False)++ result = remote_access.connectivity_diagnostics(config)++ assert result["effective_protocol"] == "unknown"+ assert result["quic"] == {"status": "unknown", "source": "not_observed"}+ assert result["http2"] == {"status": "unavailable", "source": "tcp_probe"}+++ def test_ra_tq_030_connectivity_diagnostics_filters_dns_by_selected_family(+ monkeypatch,+ ) -> None:+ config = _config()+ config.remote_access.vibe_cloud.edge_ip_version = "6"+ monkeypatch.setattr(+ remote_access,+ "status",+ lambda loaded=None: {+ "running": False,+ "binary_version": "2026.3.0",+ },+ )+ monkeypatch.setattr(+ remote_access,+ "_bounded_tunnel_addresses",+ lambda: [(remote_access.socket.AF_INET, "198.51.100.10")],+ )+ monkeypatch.setattr(+ remote_access,+ "_tcp_tunnel_reachable",+ lambda *args, **kwargs: pytest.fail("no selected-family address is available"),+ )++ result = remote_access.connectivity_diagnostics(config)++ assert result["dns"]["status"] == "unavailable"+ assert result["http2"]["status"] == "unknown"diff --cc tests/test_ui_remote_access_auth.pyindex a0705ead5,521fbed1a..bbcde1a49--- a/tests/test_ui_remote_access_auth.py+++ b/tests/test_ui_remote_access_auth.py@@@ -2057,63 -619,19 +2057,62 @@@ def test_remote_instance_role_route_matclient = app.test_client()client.set_cookie(remote_access.SESSION_COOKIE_NAME,- remote_access.make_session_cookie(config, "[email protected]", "user-1"),+ remote_session_cookie(config, f"{role}@example.com", f"user-{role}", role=role),domain="alex.avibe.bot",)+ headers = csrf_headers(client, "https://alex.avibe.bot")- response = client.get("/api/session", base_url="https://alex.avibe.bot")-- assert response.status_code == 200- assert response.get_json() == {- "remote": True,- "authenticated": True,- "email": "[email protected]",- "sub": "user-1",+ read_response = client.get("/api/projects", base_url="https://alex.avibe.bot")+ agents_response = client.get("/api/agents", base_url="https://alex.avibe.bot")+ skills_response = client.get("/api/skills", base_url="https://alex.avibe.bot")+ vault_response = client.get("/api/vault/secrets", base_url="https://alex.avibe.bot")+ show_pages_response = client.get("/api/show-pages", base_url="https://alex.avibe.bot")+ config_response = client.get("/api/config", base_url="https://alex.avibe.bot")+ prefs_read_response = client.get("/api/workbench/prefs", base_url="https://alex.avibe.bot")+ prefs_write_response = client.put(+ "/api/workbench/prefs",+ base_url="https://alex.avibe.bot",+ headers=headers,+ json={"background_work_banner_enabled": False},+ )+ conversation_response = client.post(+ "/api/sessions",+ base_url="https://alex.avibe.bot",+ headers=headers,+ json={},+ )+ project_response = client.post(+ "/api/projects",+ base_url="https://alex.avibe.bot",+ headers=headers,+ json={},+ )++ assert read_response.status_code == 200+ assert agents_response.status_code == agents_status+ assert skills_response.status_code == skills_status+ assert vault_response.status_code == vault_status+ assert show_pages_response.status_code == show_pages_status+ assert config_response.status_code == 200+ assert prefs_read_response.status_code == 200+ assert prefs_read_response.get_json()["background_work_banner_enabled"] is True+ assert prefs_write_response.status_code == (200 if role == "owner" else 403)- if role == "owner":- assert "runtime" in config_response.get_json()- else:- assert set(config_response.get_json()) == {- "capabilities",- "language",- "mode",- "setup_state",- "ui",- "version",- }++ # Role grants an authorized remote operation, not trusted-local visibility.++ # All remote callers receive the same explicit safe config projection.++ assert set(config_response.get_json()) == {++ "capabilities",++ "language",++ "mode",++ "setup_state",++ "ui",++ "version",+ }+ assert conversation_response.status_code == conversation_status+ assert project_response.status_code == project_status+ if role == "viewer":+ assert conversation_response.get_json()["error"] == "instance_access_forbidden"+ if role != "owner":+ assert project_response.get_json()["error"] == "instance_access_forbidden"def _forged_session_cookie(config: V2Config, exp: int, *, email: str = "[email protected]", subject: str = "user-1") -> str:diff --cc ui/src/components/workbench/ChatPage.tsxindex 1972f6b5d,7d8ffb382..754272ed9--- a/ui/src/components/workbench/ChatPage.tsx+++ b/ui/src/components/workbench/ChatPage.tsx@@@ -1920,13 -1898,12 +1919,10 @@@ export const ChatPage: React.FC = () =[api, session, t],);- // Session-level actions (pin / rename / fork / hide / archive) — the same model- // the sidebar rows and the mobile projects rows render, so the chat no longer- // sends the user back to the tree to act on the session they're reading. A- // read-only session yields no actions and an inert requestArchive: every one of- // Session-level actions share the sidebar/mobile row model. The chat header- // exposes them only on mobile and intentionally supplies no rename editor, so- // Rename is absent from this surface. A read-only session yields no actions and- // an inert requestArchive: every one of-- // them is refused server-side (409 archived / 403 reserved_session), so the-- // header withdraws the ⋯ rather than offering guaranteed failures.++ // Session-level actions share the sidebar/mobile row model. A read-only or++ // unauthorized session yields no actions and an inert requestArchive, so the++ // header withdraws the menu rather than offering guaranteed failures.+ const titleFieldRef = useRef<TitleFieldHandle | null>(null);const {actions: sessionActions,archiveDialog: sessionArchiveDialog,@@@ -2717,12 -2688,6 +2713,10 @@@ const Compose: React.FC<ComposeProps>);};- // Imperative handle on the header's click-to-edit title, so Rename can be one- // menu row instead of a duplicate dialog.+interface TitleFieldHandle {+ startEditing: () => void;+}+interface ChatHeaderBarProps {session: WorkbenchSession;agents: VibeAgentBrief[];@@@ -2745,27 -2710,25 +2739,30 @@@// cluster is withdrawn entirely (see showPageControlActions). The REASON, not a// boolean, because it also picks the badge: a runtime-owned row is not "Archived".readOnlyReason: SessionReadOnlyReason | null;+ writable?: boolean;+ canManageShowPage?: boolean;- // Shared session actions (pin / rename / fork / hide / archive), rendered behind- // the ⋯ at the far right. Empty (or absent) withdraws the trigger — which is what- // a read-only session yields, since every one of those writes is refused.+ // Shared session actions, rendered behind the mobile-only ⋯ at the far right.+ // Empty (or absent) withdraws the trigger — which is what a read-only session+ // yields, since every one of those writes is refused.sessionActions?: SessionActionDescriptor[];+ // Lets the menu's Rename row focus the title field that already lives here.+ titleFieldRef?: React.Ref<TitleFieldHandle>;}// Exported for the read-only regression test (ChatArchivedReadOnly.test.tsx),// which renders the header alone rather than mounting the whole page. Note the// live (non-readOnly) header pulls in AgentRoutePicker → useApi, so only the// read-only rendering is reachable without an ApiProvider.-export const ChatHeaderBar: React.FC<ChatHeaderBarProps> = ({ session, agents, defaultAgentName, onPatch, onBack, working, showPageMode, showPageBusy, onToggleShowPage, onPrepareShowPageLaunch, onShowPageVisibilityChange, onShareOpenChange, annotation, onAnnotateOpenChange, readOnlyReason, sessionActions }) => {+export const ChatHeaderBar: React.FC<ChatHeaderBarProps> = ({ session, agents, defaultAgentName, onPatch, onBack, working, showPageMode, showPageBusy, onToggleShowPage, onPrepareShowPageLaunch, onShowPageVisibilityChange, onShareOpenChange, annotation, onAnnotateOpenChange, readOnlyReason, writable = readOnlyReason === null, canManageShowPage = true, sessionActions, titleFieldRef }) => {const { t } = useTranslation();- const readOnly = readOnlyReason !== null;- const showPageActions = showPageControlActions(readOnly, showPageMode);+ const readOnly = !writable;+ const sessionReadOnly = readOnlyReason !== null;+ const showPageActions = showPageControlActions(sessionReadOnly, showPageMode);- const [actionsOpen, setActionsOpen] = useState(false);- const hasSessionActions = writable && (sessionActions?.length ?? 0) > 0;+ // ``!readOnly`` twice over: useSessionActions already yields an empty list for a+ // read-only session, and the withdrawal is re-stated here so this header cannot+ // grow a ⋯ full of guaranteed-409 rows if a future caller passes actions anyway.+ const mobileSessionActions = sessionActions ?? [];- const hasMobileSessionActions = !readOnly && mobileSessionActions.length > 0;++ const hasMobileSessionActions = writable && mobileSessionActions.length > 0;const defaultAgent = defaultAgentName ? agents.find((agent) => agent.name === defaultAgentName) : null;const sessionAgentLabel = sessionAgentDisplayName(session, agents);// Backend locks once a NATIVE conversation exists — a native can only be@@@ -2885,9 -2845,9 +2882,9 @@@the three can do anything but 409 or frame a dead page. There is noread-only page-serving path to offer instead; seeshowPageControlActions for the per-control reasoning. */}- {((showPageActions.visualize && (showPageMode || canManageShowPage)) || hasSessionActions) && (- {(showPageActions.visualize || hasMobileSessionActions) && (++ {((showPageActions.visualize && (showPageMode || canManageShowPage)) || hasMobileSessionActions) && (<div className="ml-auto flex items-center gap-1.5">- {showPageActions.annotate && (+ {showPageActions.annotate && writable && (<ShowPageAnnotateControlstate={annotation.state}onEnable={annotation.enable}diff --cc ui/src/components/workbench/WorkbenchSidebar.tsxindex 7dc5356cc,40c06ce70..d4fbff46e--- a/ui/src/components/workbench/WorkbenchSidebar.tsx+++ b/ui/src/components/workbench/WorkbenchSidebar.tsx@@@ -341,11 -332,20 +338,24 @@@ const SessionRow: React.FC<</span>)}</button>- {canChat && <span className="absolute inset-y-0 right-2 flex items-center">- <PopoverTrigger asChild>- <SessionActionsTrigger label={t('workbench.sessionActions')} open={menuOpen} />- </PopoverTrigger>- </span>}- {pinAction && (- <SessionPinAction- pinned={session.pinned}- pending={Boolean(pinAction.pending)}- pinLabel={t('workbench.sessionPin')}- unpinLabel={t('workbench.sessionUnpin')}- onToggle={pinAction.onSelect}- />++ {canChat && (++ <>++ {pinAction && (++ <SessionPinAction++ pinned={session.pinned}++ pending={Boolean(pinAction.pending)}++ pinLabel={t('workbench.sessionPin')}++ unpinLabel={t('workbench.sessionUnpin')}++ onToggle={pinAction.onSelect}++ />++ )}++ <span className="absolute inset-y-0 right-2 flex items-center">++ <PopoverTrigger asChild>++ <SessionActionsTrigger label={t('workbench.sessionActions')} open={menuOpen} />++ </PopoverTrigger>++ </span>++ </>+ )}- <span className="absolute inset-y-0 right-2 flex items-center">- <PopoverTrigger asChild>- <SessionActionsTrigger label={t('workbench.sessionActions')} open={menuOpen} />- </PopoverTrigger>- </span></div></PopoverAnchor><SessionActionMenuContentdiff --cc ui/src/context/ApiContext.tsxindex 953ca4e34,307e58815..d05e36d6f--- a/ui/src/context/ApiContext.tsx+++ b/ui/src/context/ApiContext.tsx@@@ -3415,7 -3236,10 +3445,10 @@@ export const ApiProvider: React.FC<{ chstartRemoteAccess: () => postJson('/api/remote-access/start', {}),stopRemoteAccess: () => postJson('/api/remote-access/stop', {}),optimizeRemoteAccessRoute: () => postJson('/api/remote-access/optimize-route', {}),+ getRemoteAccessNetworkInterfaces: () => getJson('/api/remote-access/network-interfaces'),+ saveRemoteAccessSettings: (settings) => postJson('/api/remote-access/settings', settings),+ diagnoseRemoteAccess: () => postJson('/api/remote-access/diagnostics', {}),- getAuthSession: () => getJson('/api/session'),+ getAuthSession: () => getJson('/api/session').then(normalizeSessionInfo),signOut: () => postJson('/auth/logout', {}),// eslint-disable-next-line react-hooks/exhaustive-deps}), [showToast, t]);diff --cc ui/src/i18n/en.jsonindex 6701dee2c,da015a7ab..1ebf7aa1b--- a/ui/src/i18n/en.json+++ b/ui/src/i18n/en.json@@@ -114,7 -112,7 +112,9 @@@"minutes": "m","hours": "h","days": "d"-- }++ },++ "none": "None",++ "locked": "Locked"},"nav": {"dashboard": "Dashboard",@@@ -135,7 -132,7 +134,8 @@@"more": "More","apps": "Apps","workbench": "Workbench",-- "models": "Models"++ "models": "Models",++ "organization": "Organization"},"more": {"title": "More",@@@ -1141,13 -1132,13 +1141,13 @@@"qualityUnknown": "Measuring","qualityRecovering": "Optimizing","qualityDegraded": "Degraded",- "optimizeRoute": "Optimize route",- "optimizingRoute": "Optimizing...",- "optimizeStarted": "A second Connector is evaluating a better route","protocolAutomatic": "{{protocol}} (Auto)","protocolUnknown": "Detecting",+ "connectorConnectionsHealthy": "Cloudflare connections healthy",+ "connectorConnectionsPartial": "Cloudflare connections partial ({{connections}}/4)",+ "connectorConnectionsUnavailable": "Cloudflare connections unavailable",- "connectorPath": "{{protocol}} · {{connections}}",+ "connectorPath": "Connector · {{protocol}} · {{connections}}/4 · RTT {{rtt}}",- "rttUnavailable": "Unavailable",+ "connectorPathWithLatency": "{{protocol}} · {{connections}} · Tunnel latency {{rtt}}","requestPath": "Requests · P95 {{p95}} · P99 {{p99}} · {{slow}}% > 1 s","requestPathUnavailable": "Requests unavailable · {{success}}/{{count}} succeeded","requestPathMeasuring": "Measuring requests · {{count}} samples",@@@ -1166,7 -1157,80 +1166,81 @@@"networkTechnicalDetails": "Technical details","networkEdgeNodes": "Cloudflare edge nodes","networkAnycastIps": "Cloudflare Anycast IPs",- "networkIpUnavailable": "Edge IP unavailable"+ "networkIpUnavailable": "Edge IP unavailable",+ "optimizeRoute": "Optimize route",+ "optimizingRoute": "Optimizing...",+ "optimizeStarted": "A second Connector is evaluating a better route",+ "controls": "Tunnel controls (Advanced)",+ "protocol": "Transport protocol",+ "protocolAuto": "Auto",+ "protocolAutoActive": "Auto · {{protocol}} active",+ "autoRecovery": "Automatic route optimization",+ "optimizationProfile": "Optimization policy",+ "profileStable": "Stable",+ "profileBalanced": "Balanced",+ "profileLowLatency": "Low latency",+ "ipFamily": "Edge IP family",+ "ipAuto": "Auto",+ "ipV4": "IPv4",+ "ipV6": "IPv6",+ "outboundInterface": "Outbound interface",+ "outboundSystem": "System automatic",+ "saveControls": "Apply",+ "savingControls": "Applying...",+ "controlsSaved": "Tunnel controls applied",+ "diagnostics": "Connectivity diagnostics",+ "runDiagnostics": "Run diagnostics",+ "runningDiagnostics": "Testing...",+ "diagnosticDns": "Cloudflare DNS",+ "diagnosticQuic": "QUIC path",+ "diagnosticHttp2": "HTTP/2 path",+ "diagnosticAvailable": "Available",+ "diagnosticUnavailable": "Unavailable",+ "diagnosticUnknown": "Not observed",+ "diagnosticQuicInactive": "Unverified · {{protocol}} active",+ "diagnosticQuicInactiveHelp": "Avibe confirms QUIC only after the active Connector demonstrates it. The Connector is currently using {{protocol}}.",- "diagnosticVersion": "{{version}}"++ "diagnosticVersion": "{{version}}",++ "rttUnavailable": "Unavailable"+ },+ "models": {+ "eligibility": {+ "subscription_wrong_client": "{{vendor}} subscriptions only work in {{backend}}",+ "opencode_api_key_only": "OpenCode can only be supplied by API-key sources",+ "consent_required": "Needs your consent for experimental hub supply first"+ },+ "oauth": {+ "upstream_failed": "The vendor didn't complete this sign-in, please retry",+ "engine_unavailable": "The Hub isn't responding, please retry",+ "submission_failed": "Couldn't submit what you pasted, please retry",+ "ambiguous_engine_binding": "Couldn't tell which account signed in — do one at a time, then retry",+ "binding_failed": "That account is already used by another source",+ "expired": "Authorization timed out, please reconnect"+ },+ "probe": {+ "native_cli_unavailable": "Can't use the CLI's sign-in",+ "no_candidate": {+ "waiting": "Every source is cooling down",+ "interrupted": "No source can serve this model right now"+ }+ },+ "source": {+ "cooldown": {+ "network": "Network unreachable",+ "timeout": "Repeated timeouts",+ "rate_limited": "Rate limited",+ "quota_exhausted": "Cycle quota used up",+ "server_error": "Upstream server error"+ },+ "needs_action": {+ "oauth_expired": "Needs a new sign-in",+ "balance_exhausted": "Out of balance — top it up",+ "credential_revoked": "Credential revoked — enter a new one",+ "account_banned": "Account is restricted"+ },+ "error": {+ "unclassified": "Unknown error — temporarily unavailable"+ }+ }},"accessBlocked": {"title": "Can't open the control panel here",@@@ -1212,28 -1277,13 +1287,33 @@@"remote_access_not_running": "Start Remote Access before optimizing its route.","route_optimization_unavailable": "A route optimization is already running or cooling down.","route_optimization_start_failed": "Avibe could not start route optimization. Check the remote access runtime logs.",+ "remote_access_settings_invalid": "One or more Tunnel controls are invalid.",+ "remote_access_settings_unavailable": "Wait for the current route change to finish, then apply these controls again.",+ "remote_access_settings_apply_failed": "The replacement Connector did not become ready. The previous Tunnel settings remain active.",+ "edge_bind_address_unavailable": "That outbound address is no longer assigned to this machine. Refresh the interface list and choose again.",+ "edge_bind_address_family_mismatch": "The selected outbound address does not match the chosen IP family.",+ "remote_access_diagnostics_failed": "Connectivity diagnostics could not finish.",- "bind_code_limit_reached": "Too many active bind codes. Revoke an unused code before creating another."+ "bind_code_limit_reached": "Too many active bind codes. Revoke an unused code before creating another.",++ "project_access_denied": "You don't have permission to start a session in this project.",+ "memory_disabled": "Memory is disabled, or this connection can't reach it.",+ "memory_invalid_input": "That Memory request wasn't valid.",+ "memory_input_too_large": "That input is too large for Memory.",+ "memory_queue_full": "The Memory queue is full right now.",+ "memory_low_disk_space": "There isn't enough free disk space for Memory right now.",+ "memory_store_unavailable": "The Memory store is unavailable right now.",+ "memory_runtime_missing": "The memory-runtime dependency isn't installed yet.",+ "memory_runtime_unsupported": "The memory-runtime dependency isn't supported on this platform.",+ "memory_runtime_install_failed": "The memory-runtime dependency failed to install.",+ "memory_sidecar_unavailable": "The Memory sidecar isn't reachable right now.",+ "memory_provider_timeout": "The Memory request timed out.",+ "memory_provider_response_invalid": "Memory returned an invalid response.",+ "memory_processing_failed": "Memory processing failed.",+ "memory_clear_failed": "Clearing Memory data failed.",+ "memory_runtime_unpublished": "This Avibe version hasn't published a memory runtime yet.",+ "memory_runtime_manifest_missing": "The memory runtime manifest is missing.",+ "memory_runtime_manifest_unavailable": "The memory runtime manifest couldn't be downloaded.",+ "memory_runtime_archive_unavailable": "The memory runtime download isn't available right now.",- "session_agent_unavailable": "The source session's Agent is no longer available. Choose an enabled Agent to fork this session.",- "reserved_session": "Avibe owns this session — it only receives workspace notifications.",+ "remote_execution_disabled": "Remote access is read-only for Agent, Harness, terminal, and file execution in this release. Open Avibe on the machine to run this action."},"apps": {"title": "Apps",@@@ -2668,7 -2692,7 +2722,8 @@@"systemPromptEditorHint": "Write the full system prompt with live Markdown preview.","systemLocked": "System agents cannot be deleted. You can still adjust model, effort, and system prompt.","run": "Run",-- "nameLocked": "Used as the reference id · locked after create"++ "nameLocked": "Used as the reference id · locked after create",++ "modelDefault": "Backend default"},"runDialog": {"title": "Open a chat with this agent",@@@ -2694,7 -2718,7 +2749,32 @@@"systemPromptHint": "Optional","systemPromptPlaceholder": "Optional. Prepended to every conversation that uses this agent.","submit": "Create agent"-- }++ },++ "onboarding": {++ "title": "Organization access",++ "summary": "{{total}} Agents · {{custom}} custom · {{system}} system",++ "inventory": "Agent inventory ({{count}})",++ "notOnboardedCount": "{{count}} not onboarded",++ "privateCount": "{{count}} private",++ "publishedCount": "{{count}} published",++ "conflictCount": "{{count}} unavailable",++ "onboardPrivate": "Onboard privately",++ "onboarded": "Onboarded",++ "manageAccess": "Manage access",++ "system": "system",++ "custom": "custom",++ "saved": "{{count}} Agents onboarded privately.",++ "savedPending": "Agents are private locally; publication is pending.",++ "failed": "Could not onboard Agents: {{error}}",++ "status": {++ "not_onboarded": "Not onboarded",++ "private": "Private",++ "published": "Published",++ "managed_elsewhere": "Unavailable"++ }++ },++ "renameKeptOld": "Agent renamed (old one kept due to references)",++ "deleteInUse": "Agent \"{{name}}\" is currently in use by one or more channels and cannot be deleted."},"editor": {"modeLabel": "Editor mode",@@@ -2843,7 -2865,30 +2921,32 @@@"waiting": "Waiting","running": "Running","paused": "Paused",-- "finished": "Finished"++ "finished": "Finished",++ "enabled": "Enabled only",++ "disabled": "Disabled only"+ },+ "runStatus": {+ "all": "All",+ "queued": "Queued",+ "running": "Running",+ "succeeded": "Succeeded",+ "failed": "Failed",+ "canceled": "Canceled"+ },+ "runType": {+ "agent_run": "Agent run",+ "watch": "Watch check",+ "scheduled": "Scheduled task",+ "task_run": "Task run",+ "hook_send": "Message delivery",+ "webhook": "Webhook trigger",+ "watch_runtime": "Watcher heartbeat",+ "unknown": "Run"+ },+ "runTypeFilter": {+ "label": "Run type",+ "default": "Default (no heartbeats)",+ "all": "All types"},"filtered": "{{shown}}/{{total}}","bannerToggle": {@@@ -2869,15 -2911,7 +2969,8 @@@"tabs": {"tasks": "Tasks","watches": "Watches",- "webhooks": "Webhooks",-- "runs": "Runs"++ "runs": "Runs",++ "webhooks": "Webhooks"},"detail": {"schedule": "Schedule",@@@ -2919,7 -2952,14 +3011,15 @@@"escalation": "On failure → escalation","triagePrompt": "Triage prompt","cwdFromSession": "Bound session, else runtime default or Avibe state dir",-- "cwdRuntimeDefault": "Runtime default, else Avibe state dir"++ "cwdRuntimeDefault": "Runtime default, else Avibe state dir",++ "definition": "Definition"+ },+ "taskKind": {+ "command": "Command"+ },+ "onFailure": {+ "none": "Notice only (no Agent)",+ "agent": "Escalate to an Agent"},"sessionPolicy": {"createPerRun": "New session each run",@@@ -3041,6 -3047,6 +3107,20 @@@"sat": "Sat"},"weekdaySeparator": ", "++ },++ "soon": "soon",++ "webhooksSoon": "Webhooks are coming soon",++ "webhooksSoonBody": "Inbound HTTP triggers will land in a follow-up release. Tasks and watches cover scheduled and event-driven runs today.",++ "schedule": {++ "cron": "cron · {{value}}",++ "oneShot": "one-shot · {{value}}"++ },++ "runtime": {++ "running": "Running",++ "paused": "Paused",++ "idle": "Idle",++ "enabled": "Enabled",++ "disabled": "Disabled"}},"chat": {@@@ -3521,548 -3527,5 +3601,508 @@@"title": "Recent activity","empty": "No activity yet."}+ },+ "memory": {+ "title": "Memory",+ "betaTitle": "Memory · Beta",+ "subtitle": "A personal memory distilled from your Workbench and private-IM messages — review it, search it, or clear it here.",+ "setup": {+ "runtimeRequired": "Install the Memory runtime first",+ "runtimeRequiredHint": "Install or repair Memory from Dependencies. You can still disable Memory or clear stored data below."+ },+ "tabs": {+ "status": "Status",+ "profile": "Profile",+ "search": "Search",+ "settings": "Settings"+ },+ "remoteUnavailable": {+ "title": "Available on this device only",+ "description": "Memory settings and data are visible only from a direct connection to this Avibe install — not through Avibe Cloud or another remote route."+ },+ "status": {+ "title": "Status",+ "loading": "Checking status…",+ "loadFailed": "Couldn't load Memory status.",+ "refresh": "Refresh",+ "state": {+ "disabled": "Disabled",+ "starting": "Starting",+ "ready": "Ready",+ "syncing": "Syncing",+ "degraded": "Degraded",+ "down": "Down",+ "clearing": "Clearing",+ "error": "Error"+ },+ "syncing": "Syncing",+ "succeeded": "Succeeded",+ "receiptUnknown": "Result unknown",+ "receiptUnknownHint": "Delivered, but the distillation receipt was lost.",+ "distillFailed": "Failed",+ "dead": "Dead",+ "deadHint": "Delivery was not acknowledged by the Memory engine.",+ "missed": "Missed",+ "fault": {+ "credential": "The Memory engine cannot call the configured model endpoint. Check API key balance and permissions.",+ "engine": "The Memory engine reported an internal error. Restarting it usually clears the fault."+ },+ "faultAction": {+ "credential": "Open credential settings",+ "engine": "Restart Memory engine"+ },+ "dismissFault": "Dismiss processing alert",+ "engineRestartStarted": "Memory engine restart started.",+ "engineRestartFailed": "Memory engine restart failed.",+ "providerTitle": "Memory engine (EverOS)",+ "providerSubtitle": "Latest provider observation",+ "observation": {+ "succeeded": "Succeeded",+ "rejected": "Rejected",+ "unknown": "Unknown"+ },+ "flushStatus": "Provider status",+ "flushError": "Error code",+ "flushAt": "Observed at",+ "requestId": "Request ID",+ "copyRequestId": "Copy request ID",+ "queueBytes": "Queued text",+ "storageUsed": "Local storage used",+ "lastSuccess": "Last successful distillation",+ "lastSuccessNever": "Never",+ "failureLog": {+ "title": "Failure log",+ "subtitle": "Sanitized delivery and distillation failures retained for {{days}} days.",+ "empty": "No retained failures.",+ "loadFailed": "Couldn't load the Memory failure log.",+ "errorCode": "Error code",+ "attempts": "Attempts",+ "kind": {+ "delivery_abandoned": "Delivery abandoned",+ "distillation_rejected": "Distillation rejected",+ "result_unknown": "Result unknown"+ }+ }+ },+ "profile": {+ "description": "The provider's current distilled profile of you, built from captured messages.",+ "loading": "Loading profile…",+ "empty": "No profile yet — keep chatting, then check back once messages have been processed.",+ "loadFailed": "Couldn't load your profile.",+ "warningUnavailable": "A profile isn't available from this provider yet. This is expected, not an error — try Search instead, or check back later.",+ "disabledHint": "Enable Memory to view your profile.",+ "refresh": "Refresh",+ "sourceNote": "Distilled from your conversation history."+ },+ "search": {+ "description": "Search your distilled profile, episodes, and facts.",+ "placeholder": "Search your memory…",+ "button": "Search",+ "searching": "Searching…",+ "empty": "No results.",+ "searchFailed": "Search failed.",+ "disabledHint": "Enable Memory to search.",+ "sourceNote": "Distilled from your conversation history."+ },+ "settings": {+ "loading": "Loading settings…",+ "loadFailed": "Couldn't load Memory settings.",+ "enableLabel": "Memory",+ "enableHint": "Distill eligible Workbench messages and bound, enabled private-IM messages into a per-user searchable memory.",+ "dependencyNotReady": "The memory-runtime dependency isn't ready yet. Install or repair it from Settings → Dependencies, then try enabling Memory again.",+ "goToDependencies": "Open Dependencies",+ "llmTitle": "LLM endpoint",+ "embeddingTitle": "Embedding endpoint",+ "baseUrl": "Base URL",+ "baseUrlPlaceholder": "https://api.example.com/v1",+ "model": "Model",+ "modelPlaceholder": "model name",+ "apiKey": "API key",+ "apiKeySet": "A key is set — leave blank to keep it.",+ "apiKeyNotSet": "No key set.",+ "apiKeyPlaceholder": "sk-…",+ "apiKeyClearHint": "Keys are write-only — Avibe never shows a saved key back to you.",+ "embeddingLocked": "Changing the embedding endpoint or model is disabled while memory data exists. Run Clear all first.",+ "embeddingStatusPending": "Confirming Memory state… the embedding endpoint unlocks once it's confirmed no data exists.",+ "save": "Save settings",+ "saving": "Saving…",+ "saveFailed": "Couldn't save Memory settings.",+ "saved": "Memory settings saved.",+ "disclosureTitle": "Before you enable Memory",+ "disclosure": [+ "Eligible Workbench and bound, enabled private-IM text is copied into a bounded local queue for processing.",+ "Once a message succeeds or exhausts its retries, its text is scrubbed immediately; a content-free tombstone may remain for up to 90 days, bounded to the newest 100,000 rows.",+ "The Memory LLM and embedding endpoints are separate from your agent's model subscriptions.",+ "These remote endpoints receive captured text or search queries and may retain them under their own policy.",+ "Private-IM text has already traveled over that platform before capture and remains subject to that platform's own retention and sync.",+ "The local runtime retains unflushed raw messages and extracted data in local state in addition to the visible profile.",+ "Disabling Memory freezes local data rather than deleting it — use Clear all to remove it.",+ "Clear all removes this install's local Memory data but cannot retract copies already sent to a remote endpoint or your original chat history.",+ "Delivery to the Memory endpoints is at-least-once — a rare duplicate derived memory is possible after a timeout or crash.",+ "Each platform user has a separate memory scope; identities are not linked across platforms."+ ],+ "clearKeyLabel": "Clear the saved key"+ },+ "clear": {+ "button": "Clear all",+ "confirmTitle": "Clear all local Memory data?",+ "confirmDescription": "This removes your distilled profile, episodes, facts, and any pending queued text on this install.",+ "removesTitle": "This removes:",+ "removes": [+ "Your visible distilled profile",+ "Hidden local buffers and indexes used to build it",+ "Pending and finished items in the local processing queue"+ ],+ "keepsTitle": "This does not remove:",+ "keeps": [+ "Your original Avibe chat history",+ "Copies already sent to a remote Memory endpoint",+ "Copies or snapshots you created yourself",+ "Any data stored outside the dedicated Memory folder",+ "Existing logs, crash reports, or backups",+ "Physical traces on the storage device — this is not a secure wipe"+ ],+ "confirmLabel": "Clear all",+ "clearing": "Clearing…",+ "cleared": "Memory data cleared.",+ "failed": "Clear failed."+ },+ "kind": {+ "profile": "Profile",+ "episode": "Episode",+ "fact": "Fact"+ }+ },+ "organization": {+ "nav": {+ "overview": "Overview",+ "instances": "Avibes",+ "members": "Members",+ "groups": "Groups",+ "resources": "Resources"+ },+ "actions": {+ "backToControlPanel": "Control Panel",+ "openRemoteAccess": "Open Remote Access",+ "signIn": "Sign in with Avibe Cloud",+ "signInAgain": "Sign in with the same account",+ "signOut": "Sign out of Organization management",+ "reload": "Review latest",+ "saving": "Saving...",+ "saveChanges": "Save changes",+ "sendInvite": "Send invite",+ "inviteMember": "Invite member",+ "editMember": "Edit member",+ "removeMember": "Remove member",+ "resendInvite": "Resend invite",+ "exportCsv": "Export CSV",+ "newGroup": "New group",+ "editGroup": "Edit group",+ "archiveGroup": "Archive group",+ "restoreGroup": "Restore group",+ "manageMembers": "Manage members",+ "saveMembers": "Save members",+ "addAccess": "Add access",+ "editAccess": "Edit access",+ "removeAccess": "Remove access",+ "addBinding": "Add binding",+ "removeBinding": "Remove binding",+ "manage": "Manage"+ },+ "roles": {+ "owner": "Owner",+ "admin": "Admin",+ "member": "Member"+ },+ "status": {+ "active": "Active",+ "invited": "Invited",+ "removed": "Removed"+ },+ "sync": {+ "none": "No managed policies",+ "in_sync": "In sync",+ "applying": "Applying",+ "offline": "Offline",+ "error": "Error",+ "deleted": "Deleted"+ },+ "sidebar": {+ "section": "Organization",+ "organizationCount": "{{count}} organizations",+ "switchOrganization": "Switch Organization",+ "cloudConnected": "Cloud connected",+ "sessionRemaining": "management session · {{minutes}}m",+ "openMenu": "Open Organization menu"+ },+ "states": {+ "loadingTitle": "Loading Organization",+ "loadingBody": "Fetching the latest Organization data from Avibe Cloud.",+ "notConnectedTitle": "Avibe Cloud is not connected",+ "notConnectedBody": "Connect this Avibe to Avibe Cloud before opening Organization management.",+ "signInTitle": "Sign in required",+ "signInBody": "Sign in to Avibe Cloud to establish a short-lived Organization management session.",+ "reauthorizingTitle": "Reauthorizing",+ "reauthorizingBody": "Restoring your Organization management session with the same Cloud account.",+ "mismatchTitle": "Cloud account does not match",+ "mismatchBody": "The Avibe session and Cloud account belong to different users. Sign in again with the same account used for this Avibe session.",+ "unreachableTitle": "Avibe Cloud is unreachable",+ "unreachableBody": "Organization data could not be reached. Your local Avibe remains available.",+ "revokedTitle": "Organization access was revoked",+ "revokedBody": "This management session is no longer valid. Sign in again to confirm your current access.",+ "emptyTitle": "No Organizations available",+ "emptyBody": "The signed-in Cloud account is not an active member of an Organization.",+ "unavailableTitle": "This Organization page is unavailable",+ "unavailableBody": "Your current Organization or Avibe access does not allow this page.",+ "errorTitle": "Unable to complete the request",+ "conflictTitle": "This policy changed elsewhere",+ "conflictBody": "Your draft was not saved. Review it, then reload the latest version before making changes again."+ },+ "errors": {+ "generic": "Avibe could not complete this Organization request.",+ "forbidden": "Your current Organization role does not allow this action.",+ "organization_not_found": "This Organization is unavailable.",+ "organization_member_not_found": "This member is no longer available.",+ "organization_group_not_found": "This group is no longer available.",+ "organization_group_archived": "Archived groups cannot be added to a new policy.",+ "instance_not_found": "This Avibe is unavailable.",+ "project_not_found": "This Project is unavailable.",+ "resource_not_found": "This resource is unavailable.",+ "member_email_taken": "That email already belongs to this Organization.",+ "group_name_taken": "A group with that name already exists.",+ "too_many_entries": "This policy has too many entries.",+ "invalid_project_access_intent": "Choose a valid Project access rule.",+ "invalid_project_access_principal": "One Project access principal is invalid.",+ "invalid_project_access_role": "One Project access role is invalid.",+ "invalid_resource_acl_intent": "Choose a valid Resource audience.",+ "invalid_email": "Enter a valid email address.",+ "invalid_domain": "Enter a valid email domain.",+ "duplicate_instance_access_principal": "Each Avibe access principal can appear only once.",+ "duplicate_project_access_principal": "Each Project principal can appear only once.",+ "owner_entry_locked": "The Avibe owner's implicit access cannot be changed.",+ "resource_sync_conflict": "This policy changed elsewhere. Review the latest version before saving.",+ "organization_member_conflict": "This member changed elsewhere. Review the latest version before trying again.",+ "organization_group_conflict": "This group changed elsewhere. Review the latest version before trying again."+ },+ "fields": {+ "name": "Name",+ "description": "Description",+ "color": "Color",+ "email": "Email",+ "role": "Role",+ "groups": "Groups",+ "member": "Member",+ "status": "Status",+ "principalType": "Principal type",+ "principal": "Principal"+ },+ "colors": {+ "mint": "Mint",+ "cyan": "Cyan",+ "blue": "Blue",+ "violet": "Violet",+ "rose": "Rose",+ "gold": "Gold"+ },+ "principals": {+ "organization_group": "Group",+ "email": "Email",+ "email_domain": "Email domain"+ },+ "breadcrumb": {+ "overview": "Organization / Overview",+ "members": "Organization / Members",+ "groups": "Organization / Groups",+ "groupDetail": "Organization / Groups / {{name}}",+ "instances": "Organization / Avibes",+ "resources": "Organization / Resources"+ },+ "overview": {+ "description": "Manage membership, access, and policy health for this Organization.",+ "memberDescription": "Your Organization membership and the Avibes available to you.",+ "memberBreakdown": "{{invited}} invited · {{removed}} removed",+ "groupBreakdown": "{{archived}} archived",+ "projects": "Projects",+ "projectCountUnavailable": "Count unavailable",+ "policySync": "Policy sync",+ "needsAttention": "Needs attention",+ "instanceNeedsAttention": "{{name}} has policy changes that need attention.",+ "projectSyncNeedsAttention": "{{name}} has Project policies that need attention.",+ "resourceSyncNeedsAttention": "{{name}} has Resource policies that need attention.",+ "noAttention": "All visible managed policies are healthy.",+ "pendingInvites": "Pending invites",+ "pendingInvitesBody": "{{count}} invitation(s) are waiting to be accepted.",+ "viewAllInstances": "View all Avibes",+ "memberSafeTitle": "Member view",+ "memberSafeBody": "You can see your own membership and the Avibes available to you. Member directories and Resource policy composition are visible only to Organization managers."+ },+ "members": {+ "description": "Invite members, assign Organization roles, and manage group membership.",+ "memberDescription": "View your Organization role and group membership.",+ "filterLabel": "Filter members",+ "filterAll": "All",+ "active": "Active",+ "invited": "Invited",+ "removed": "Removed",+ "admins": "Admins",+ "searchPlaceholder": "Search members...",+ "emptyTitle": "No members found",+ "emptyBody": "No members match the current view.",+ "inviteTitle": "Invite a member",+ "inviteBody": "Send an Organization invitation and optionally assign initial groups.",+ "editTitle": "Edit member",+ "editBody": "Changes to role and complete group membership share one revision.",+ "emailPlaceholder": "[email protected]",+ "downgradeTitle": "Downgrade this admin?",+ "downgradeBody": "{{email}} will lose Organization management access. Their membership and group assignments will remain unchanged.",+ "downgradeConfirm": "Downgrade to member",+ "removeTitle": "Remove this member?",+ "removeBody": "{{email}} will lose Organization membership and any access derived from it."+ },+ "groups": {+ "description": "Build reusable Organization audiences and inspect every policy that references them.",+ "memberDescription": "View Organization groups and your own group membership.",+ "active": "Active",+ "archived": "Archived",+ "filterLabel": "Filter groups",+ "searchPlaceholder": "Search groups...",+ "emptyTitle": "No groups found",+ "emptyBody": "No groups match the current view.",+ "noDescription": "No description",+ "yourGroup": "Your group",+ "createTitle": "Create group",+ "createBody": "Create an Organization group and optionally add initial members.",+ "editTitle": "Edit group",+ "editBody": "Update the group's display details.",+ "initialMembers": "Initial members",+ "manageMembersTitle": "Manage group members",+ "manageMembersBody": "Replace the complete member list for {{name}}.",+ "referencedBy": "Referenced by",+ "moreReferences": "+{{count}} more",+ "archiveTitle": "Archive this group?",+ "archiveBody": "{{name}} is referenced by {{count}} active policy item(s).",+ "archiveImpactTitle": "Archive impact",+ "archiveImpactBody": "Existing references remain visible but stop granting access. The archived group cannot be selected for new policies."+ },+ "instances": {+ "description": "Organization-bound Avibes you can see. Manage access and Project policy without changing pairing or hostnames.",+ "searchPlaceholder": "Search Avibes...",+ "emptyTitle": "No Avibes found",+ "emptyBody": "No Organization-bound Avibes are available in this view.",+ "you": "You",+ "organizationOwner": "Avibe owner",+ "ownerProtected": "Owner identity protected",+ "youAreOwner": "you are the Avibe owner",+ "paired": "Paired",+ "notPaired": "Not paired",+ "accessCount": "{{count}} access entries",+ "accessTab": "Access",+ "projectsTab": "Projects",+ "tabsLabel": "Avibe management views",+ "columns": {+ "instance": "Avibe",+ "owner": "Owner",+ "address": "Public address",+ "status": "Status",+ "access": "Access",+ "sync": "Sync"+ },+ "status": {+ "pending": "Pending",+ "active": "Online",+ "disabled": "Disabled",+ "deleted": "Deleted"+ }+ },+ "access": {+ "viewer": "Viewer",+ "editor": "Editor",+ "ownerTitle": "{{owner}} · Avibe owner",+ "ownerBody": "Implicit owner-equivalent access. It cannot be edited or removed as an entry.",+ "emptyTitle": "No explicit access entries",+ "emptyBody": "Only the implicit Avibe owner currently has access.",+ "addTitle": "Add Avibe access",+ "editTitle": "Edit Avibe access",+ "dialogBody": "Grant a group, individual email, or email domain Viewer or Editor access.",+ "emailPlaceholder": "[email protected]",+ "domainPlaceholder": "example.com",+ "narrowTitle": "Narrow this access entry?",+ "narrowBody": "The previous principal or Editor capability will stop applying after this change.",+ "removeTitle": "Remove this access entry?",+ "removeBody": "{{principal}} will lose access granted by this entry.",+ "columns": {+ "principal": "Principal",+ "type": "Type",+ "role": "Role"+ }+ },+ "projects": {+ "searchPlaceholder": "Search Projects...",+ "safeDescriptorNotice": "Safe descriptors only. Local Project paths are never displayed or sent. Project access can only narrow the Avibe role.",+ "emptyTitle": "No Projects found",+ "emptyBody": "This Avibe has not published any active managed Project descriptors.",+ "accessRule": "Access rule",+ "bindings": "Restricted bindings",+ "bindingRequired": "Restricted access requires at least one binding.",+ "usesAvibeRole": "Uses Avibe role",+ "ownerOnlyAudience": "Avibe owner only",+ "bindingCount": "{{count}} binding(s)",+ "dialogTitle": "Manage {{name}} access",+ "dialogBody": "Organization management authority lets you change this policy; it does not grant you permission to use the Project.",+ "narrowTitle": "Narrow this Project's access?",+ "narrowBody": "This change removes an existing audience, downgrades Editor access, or switches to a more restrictive rule.",+ "modes": {+ "inherit": "Inherit",+ "restricted": "Restricted",+ "owner_only": "Owner-only"+ },+ "modeHelp": {+ "inherit": "Use each principal's effective Avibe role.",+ "restricted": "Allow one or more explicit groups, emails, or domains. This rule can only narrow the Avibe role.",+ "owner_only": "Only the canonical owner of this Avibe can use this Project. Organization managers can manage the policy but do not gain use access."+ },+ "columns": {+ "project": "Project",+ "rule": "Access rule",+ "bindings": "Bindings",+ "sync": "Sync"+ }+ },+ "resources": {+ "description": "Manage which Organization audience may use each resource. Resource use never grants permission to edit, delete, or re-share it.",+ "tabsLabel": "Resource kinds",+ "accessLevel": "Audience",+ "selectGroups": "Selected groups",+ "groupRequired": "Select at least one group.",+ "dialogTitle": "Manage {{name}} audience",+ "dialogBody": "Choose Private, the whole Organization, or selected Organization groups.",+ "narrowTitle": "Narrow this resource audience?",+ "narrowBody": "Some people who can use this resource now will lose access after this change.",+ "emptyTitle": "No resources found",+ "emptyBody": "No active {{kind}} descriptors are available.",+ "everyActiveMember": "Every active member",+ "ownerOnly": "Resource owner only",+ "kinds": {+ "agent": "Agents",+ "vault_secret": "Vault secrets",+ "skill": "Skills",+ "show_page": "Show Pages"+ },+ "levels": {+ "private": "Private",+ "public": "Organization",+ "scope": "Selected groups"+ },+ "levelHelp": {+ "private": "Only the resource owner can use it through this Organization ACL.",+ "public": "Every active member of this Organization may use it, subject to all other access layers.",+ "scope": "Only active members of the selected groups may use it, subject to all other access layers."+ },+ "columns": {+ "access": "Access",+ "audience": "Audience",+ "sync": "Sync"+ }+ }- },- "models": {- "eligibility": {- "subscription_wrong_client": "{{vendor}} subscriptions only work in {{backend}}",- "opencode_api_key_only": "OpenCode can only be supplied by API-key sources",- "consent_required": "Needs your consent for experimental hub supply first"- },- "oauth": {- "upstream_failed": "The vendor didn't complete this sign-in, please retry",- "engine_unavailable": "The Hub isn't responding, please retry",- "submission_failed": "Couldn't submit what you pasted, please retry",- "ambiguous_engine_binding": "Couldn't tell which account signed in — do one at a time, then retry",- "binding_failed": "That account is already used by another source",- "expired": "Authorization timed out, please reconnect"- },- "probe": {- "native_cli_unavailable": "Can't use the CLI's sign-in",- "no_candidate": {- "waiting": "Every source is cooling down",- "interrupted": "No source can serve this model right now"- }- },- "source": {- "cooldown": {- "network": "Network unreachable",- "timeout": "Repeated timeouts",- "rate_limited": "Rate limited",- "quota_exhausted": "Cycle quota used up",- "server_error": "Upstream server error"- },- "needs_action": {- "oauth_expired": "Needs a new sign-in",- "balance_exhausted": "Out of balance — top it up",- "credential_revoked": "Credential revoked — enter a new one",- "account_banned": "Account is restricted"- },- "error": {- "unclassified": "Unknown error — temporarily unavailable"- }- }}}diff --cc ui/src/i18n/zh.jsonindex c1a502281,b668798d6..712c77cdc--- a/ui/src/i18n/zh.json+++ b/ui/src/i18n/zh.json@@@ -114,7 -112,7 +112,9 @@@"minutes": "分","hours": "小时","days": "天"-- }++ },++ "none": "无",++ "locked": "已锁定"},"nav": {"dashboard": "控制台",@@@ -135,7 -132,7 +134,8 @@@"more": "更多","apps": "Apps","workbench": "工作台",-- "models": "模型"++ "models": "模型",++ "organization": "组织"},"more": {"title": "更多",@@@ -1141,13 -1132,13 +1141,13 @@@"qualityUnknown": "测量中","qualityRecovering": "正在优化","qualityDegraded": "异常",- "optimizeRoute": "优化线路",- "optimizingRoute": "优化中...",- "optimizeStarted": "第二条 Connector 正在评估更优线路","protocolAutomatic": "{{protocol}}(自动)","protocolUnknown": "检测中",+ "connectorConnectionsHealthy": "Cloudflare 连接正常",+ "connectorConnectionsPartial": "Cloudflare 连接不完整({{connections}}/4)",+ "connectorConnectionsUnavailable": "Cloudflare 连接未建立",- "connectorPath": "{{protocol}} · {{connections}}",+ "connectorPath": "连接器 · {{protocol}} · {{connections}}/4 · 往返 {{rtt}}",- "rttUnavailable": "不可用",+ "connectorPathWithLatency": "{{protocol}} · {{connections}} · Tunnel 延迟 {{rtt}}","requestPath": "远程请求 · P95 {{p95}} · P99 {{p99}} · {{slow}}% 超过 1 秒","requestPathUnavailable": "远程请求不可用 · {{success}}/{{count}} 成功","requestPathMeasuring": "正在测量远程请求 · {{count}} 个样本",@@@ -1166,7 -1157,80 +1166,81 @@@"networkTechnicalDetails": "技术详情","networkEdgeNodes": "Cloudflare 边缘节点","networkAnycastIps": "Cloudflare Anycast IP",- "networkIpUnavailable": "暂未获取边缘 IP"+ "networkIpUnavailable": "暂未获取边缘 IP",+ "optimizeRoute": "优化线路",+ "optimizingRoute": "优化中...",+ "optimizeStarted": "第二条 Connector 正在评估更优线路",+ "controls": "Tunnel 控制(高级)",+ "protocol": "传输协议",+ "protocolAuto": "自动",+ "protocolAutoActive": "自动 · 当前 {{protocol}}",+ "autoRecovery": "自动优化线路",+ "optimizationProfile": "优化策略",+ "profileStable": "稳定优先",+ "profileBalanced": "均衡",+ "profileLowLatency": "低延迟",+ "ipFamily": "边缘网络 IP",+ "ipAuto": "自动",+ "ipV4": "IPv4",+ "ipV6": "IPv6",+ "outboundInterface": "出口网卡",+ "outboundSystem": "跟随系统",+ "saveControls": "应用",+ "savingControls": "应用中...",+ "controlsSaved": "Tunnel 设置已应用",+ "diagnostics": "连接诊断",+ "runDiagnostics": "运行诊断",+ "runningDiagnostics": "检测中...",+ "diagnosticDns": "Cloudflare DNS",+ "diagnosticQuic": "QUIC 路径",+ "diagnosticHttp2": "HTTP/2 路径",+ "diagnosticAvailable": "可用",+ "diagnosticUnavailable": "不可用",+ "diagnosticUnknown": "尚未观测",+ "diagnosticQuicInactive": "未验证 · 当前 {{protocol}}",+ "diagnosticQuicInactiveHelp": "Avibe 只会在当前 Connector 实际使用 QUIC 后确认该路径;当前 Connector 正在使用 {{protocol}}。",- "diagnosticVersion": "{{version}}"++ "diagnosticVersion": "{{version}}",++ "rttUnavailable": "不可用"+ },+ "models": {+ "eligibility": {+ "subscription_wrong_client": "{{vendor}} 订阅仅可供 {{backend}} 使用",+ "opencode_api_key_only": "OpenCode 只能由 API Key 来源供给",+ "consent_required": "需要先同意实验性中枢供给"+ },+ "oauth": {+ "upstream_failed": "厂商没有完成这次登录,请重试",+ "engine_unavailable": "中枢没有响应,请重试",+ "submission_failed": "粘贴的内容没能提交,请重试",+ "ambiguous_engine_binding": "分不清登录的是哪个账号,请一次只登一个再重试",+ "binding_failed": "该账号已被另一来源使用",+ "expired": "授权超时,请重新连接"+ },+ "probe": {+ "native_cli_unavailable": "用不上 CLI 的登录",+ "no_candidate": {+ "waiting": "所有来源都在冷却",+ "interrupted": "现在没有来源能提供这个模型"+ }+ },+ "source": {+ "cooldown": {+ "network": "网络不通",+ "timeout": "连续超时",+ "rate_limited": "触发限流",+ "quota_exhausted": "本周期额度用完",+ "server_error": "上游服务异常"+ },+ "needs_action": {+ "oauth_expired": "需要重新登录",+ "balance_exhausted": "余额不足,需要充值",+ "credential_revoked": "凭据已失效,需要重新填写",+ "account_banned": "账号被限制使用"+ },+ "error": {+ "unclassified": "未知错误,暂时不可用"+ }+ }},"accessBlocked": {"title": "无法在此地址打开控制台",@@@ -1212,28 -1277,13 +1287,33 @@@"remote_access_not_running": "请先启动远程访问,再优化线路。","route_optimization_unavailable": "线路优化正在进行中,或当前仍处于冷却期。","route_optimization_start_failed": "Avibe 无法启动线路优化,请查看远程访问运行日志。",+ "remote_access_settings_invalid": "一个或多个 Tunnel 设置无效。",+ "remote_access_settings_unavailable": "请等待当前线路切换完成,再应用这些设置。",+ "remote_access_settings_apply_failed": "替换 Connector 未能就绪,原 Tunnel 设置仍然有效。",+ "edge_bind_address_unavailable": "该出口地址已不在本机网卡上。请刷新网卡列表后重新选择。",+ "edge_bind_address_family_mismatch": "所选出口地址与 IP 类型不匹配。",+ "remote_access_diagnostics_failed": "连接诊断未能完成。",- "bind_code_limit_reached": "可用绑定码过多,请先撤销一个未使用的绑定码,再创建新的绑定码。"+ "bind_code_limit_reached": "可用绑定码过多,请先撤销一个未使用的绑定码,再创建新的绑定码。",++ "project_access_denied": "你没有权限在这个项目中创建会话。",+ "memory_disabled": "记忆功能已禁用,或当前连接无法访问它。",+ "memory_invalid_input": "该记忆请求无效。",+ "memory_input_too_large": "输入内容对记忆功能来说太大了。",+ "memory_queue_full": "记忆队列目前已满。",+ "memory_low_disk_space": "当前磁盘空间不足,无法用于记忆功能。",+ "memory_store_unavailable": "记忆存储当前不可用。",+ "memory_runtime_missing": "memory-runtime 依赖尚未安装。",+ "memory_runtime_unsupported": "memory-runtime 依赖在此平台上不受支持。",+ "memory_runtime_install_failed": "memory-runtime 依赖安装失败。",+ "memory_sidecar_unavailable": "记忆 sidecar 当前不可访问。",+ "memory_provider_timeout": "记忆请求超时。",+ "memory_provider_response_invalid": "记忆返回了无效的响应。",+ "memory_processing_failed": "记忆处理失败。",+ "memory_clear_failed": "清除记忆数据失败。",+ "memory_runtime_unpublished": "当前 Avibe 版本尚未发布记忆运行时。",+ "memory_runtime_manifest_missing": "记忆运行时的清单缺失。",+ "memory_runtime_manifest_unavailable": "无法下载记忆运行时的清单。",+ "memory_runtime_archive_unavailable": "记忆运行时的下载包当前不可用。",- "session_agent_unavailable": "源会话的 Agent 已不可用。请选择一个已启用的 Agent 来复刻此会话。",- "reserved_session": "该会话由 Avibe 管理,只接收工作区通知。",+ "remote_execution_disabled": "当前版本的远程访问仅支持查看,不能执行 Agent、Harness、终端或文件操作。请在运行 Avibe 的机器上执行此操作。"},"apps": {"title": "应用",@@@ -2668,7 -2692,7 +2722,8 @@@"systemPromptEditorHint": "在更大的编辑器里编写系统提示词,并实时预览 Markdown。","systemLocked": "系统 Agent 不可删除,仍可调整模型、Effort 与系统提示词。","run": "运行",-- "nameLocked": "用作引用 ID,创建后不可改"++ "nameLocked": "用作引用 ID,创建后不可改",++ "modelDefault": "使用后端默认"},"runDialog": {"title": "用此 Agent 开一个会话",@@@ -2694,7 -2718,7 +2749,32 @@@"systemPromptHint": "可选","systemPromptPlaceholder": "可选。会拼接到使用本 Agent 的每一段对话前。","submit": "创建 Agent"-- }++ },++ "onboarding": {++ "title": "组织访问",++ "summary": "{{total}} 个 Agent · {{custom}} 个自定义 · {{system}} 个系统",++ "inventory": "Agent 清单({{count}})",++ "notOnboardedCount": "{{count}} 个未纳管",++ "privateCount": "{{count}} 个私有",++ "publishedCount": "{{count}} 个已发布",++ "conflictCount": "{{count}} 个不可用",++ "onboardPrivate": "按私有方式纳管",++ "onboarded": "已纳管",++ "manageAccess": "管理访问",++ "system": "系统",++ "custom": "自定义",++ "saved": "已按私有方式纳管 {{count}} 个 Agent。",++ "savedPending": "Agent 已在本地设为私有,等待发布。",++ "failed": "无法纳管 Agent:{{error}}",++ "status": {++ "not_onboarded": "未纳管",++ "private": "私有",++ "published": "已发布",++ "managed_elsewhere": "不可用"++ }++ },++ "renameKeptOld": "Agent 已重命名(旧名因被引用而保留)",++ "deleteInUse": "Agent \"{{name}}\" 正被一个或多个频道使用,无法删除。"},"editor": {"modeLabel": "编辑器模式",@@@ -2843,7 -2865,30 +2921,32 @@@"waiting": "在等","running": "在跑","paused": "已暂停",-- "finished": "已结束"++ "finished": "已结束",++ "enabled": "仅启用",++ "disabled": "仅禁用"+ },+ "runStatus": {+ "all": "全部",+ "queued": "排队中",+ "running": "运行中",+ "succeeded": "已成功",+ "failed": "已失败",+ "canceled": "已取消"+ },+ "runType": {+ "agent_run": "Agent 运行",+ "watch": "监听检查",+ "scheduled": "定时任务",+ "task_run": "任务运行",+ "hook_send": "消息投递",+ "webhook": "Webhook 触发",+ "watch_runtime": "监听心跳",+ "unknown": "运行"+ },+ "runTypeFilter": {+ "label": "运行类型",+ "default": "默认(隐藏心跳)",+ "all": "全部类型"},"filtered": "{{shown}}/{{total}}","bannerToggle": {@@@ -2869,15 -2911,7 +2969,8 @@@"tabs": {"tasks": "Tasks","watches": "Watches",- "webhooks": "Webhooks",-- "runs": "Runs"++ "runs": "Runs",++ "webhooks": "Webhooks"},"detail": {"schedule": "计划",@@@ -2919,7 -2952,14 +3011,15 @@@"escalation": "失败后 → 交给 Agent","triagePrompt": "排查提示词","cwdFromSession": "跟随绑定会话,否则运行时默认目录或 Avibe 状态目录",-- "cwdRuntimeDefault": "运行时默认目录,否则 Avibe 状态目录"++ "cwdRuntimeDefault": "运行时默认目录,否则 Avibe 状态目录",++ "definition": "定义"+ },+ "taskKind": {+ "command": "命令"+ },+ "onFailure": {+ "none": "仅通知(无 Agent)",+ "agent": "升级给 Agent 处理"},"sessionPolicy": {"createPerRun": "每次运行新建会话",@@@ -3041,6 -3047,6 +3107,20 @@@"sat": "六"},"weekdaySeparator": "、"++ },++ "soon": "敬请期待",++ "webhooksSoon": "Webhook 即将上线",++ "webhooksSoonBody": "入站 HTTP 触发将在后续版本中落地。Tasks 和 Watches 已覆盖定时与事件驱动的运行。",++ "schedule": {++ "cron": "周期 · {{value}}",++ "oneShot": "一次性 · {{value}}"++ },++ "runtime": {++ "running": "运行中",++ "paused": "已暂停",++ "idle": "空闲",++ "enabled": "已启用",++ "disabled": "已禁用"}},"chat": {@@@ -3521,548 -3527,5 +3601,508 @@@"title": "最近活动","empty": "暂无活动。"}+ },+ "memory": {+ "title": "记忆",+ "betaTitle": "记忆 · Beta",+ "subtitle": "从你的 Workbench 和私聊消息中提炼出的个人记忆——在这里查看、搜索或清除。",+ "setup": {+ "runtimeRequired": "请先安装记忆运行时",+ "runtimeRequiredHint": "请前往依赖页面安装或修复记忆运行时。你仍可在下方停用记忆或清除已存储的数据。"+ },+ "tabs": {+ "status": "状态",+ "profile": "画像",+ "search": "搜索",+ "settings": "设置"+ },+ "remoteUnavailable": {+ "title": "仅限本机访问",+ "description": "记忆的设置和数据仅在直接连接到本机 Avibe 时可见——通过 Avibe Cloud 或其他远程方式无法访问。"+ },+ "status": {+ "title": "状态",+ "loading": "正在检查状态…",+ "loadFailed": "无法加载记忆状态。",+ "refresh": "刷新",+ "state": {+ "disabled": "已禁用",+ "starting": "启动中",+ "ready": "就绪",+ "syncing": "同步中",+ "degraded": "降级",+ "down": "不可用",+ "clearing": "清除中",+ "error": "错误"+ },+ "syncing": "处理中",+ "succeeded": "成功",+ "receiptUnknown": "结果未知",+ "receiptUnknownHint": "已投递,但无法确认是否已提炼(回执丢失)。",+ "distillFailed": "失败",+ "dead": "已放弃",+ "deadHint": "投递未获记忆引擎确认。",+ "missed": "已跳过",+ "fault": {+ "credential": "记忆引擎无法调用已配置的模型接口,请检查 API Key 余额/权限。",+ "engine": "记忆引擎内部错误,重启引擎通常可以恢复。"+ },+ "faultAction": {+ "credential": "打开凭据设置",+ "engine": "重启记忆引擎"+ },+ "dismissFault": "关闭处理告警",+ "engineRestartStarted": "已开始重启记忆引擎。",+ "engineRestartFailed": "记忆引擎重启失败。",+ "providerTitle": "记忆引擎 (EverOS)",+ "providerSubtitle": "最近一次提供方回执",+ "observation": {+ "succeeded": "成功",+ "rejected": "拒绝",+ "unknown": "未知"+ },+ "flushStatus": "提供方状态",+ "flushError": "错误代码",+ "flushAt": "观察时间",+ "requestId": "请求 ID",+ "copyRequestId": "复制请求 ID",+ "queueBytes": "排队文本",+ "storageUsed": "本地已用存储",+ "lastSuccess": "最近提炼成功时间",+ "lastSuccessNever": "从未",+ "failureLog": {+ "title": "失败日志",+ "subtitle": "保留最近 {{days}} 天的脱敏投递与提炼失败记录。",+ "empty": "暂无失败记录。",+ "loadFailed": "无法加载记忆失败日志。",+ "errorCode": "错误代码",+ "attempts": "尝试次数",+ "kind": {+ "delivery_abandoned": "投递已放弃",+ "distillation_rejected": "提炼被拒绝",+ "result_unknown": "处理结果未知"+ }+ }+ },+ "profile": {+ "description": "由已捕获的消息提炼出的、你当前的画像。",+ "loading": "正在加载画像…",+ "empty": "还没有画像——继续聊天,消息处理后再来看看。",+ "loadFailed": "无法加载你的画像。",+ "warningUnavailable": "该提供方暂不支持画像。这是预期行为,不是错误——可以试试搜索,或稍后再来看看。",+ "disabledHint": "启用记忆后即可查看画像。",+ "refresh": "刷新",+ "sourceNote": "由你的对话历史提炼而来。"+ },+ "search": {+ "description": "搜索你的画像、事件和事实。",+ "placeholder": "搜索你的记忆…",+ "button": "搜索",+ "searching": "搜索中…",+ "empty": "没有结果。",+ "searchFailed": "搜索失败。",+ "disabledHint": "启用记忆后即可搜索。",+ "sourceNote": "由你的对话历史提炼而来。"+ },+ "settings": {+ "loading": "正在加载设置…",+ "loadFailed": "无法加载记忆设置。",+ "enableLabel": "记忆",+ "enableHint": "将符合条件的 Workbench 消息和已绑定、已启用用户的私聊消息提炼为按用户隔离的可搜索记忆。",+ "dependencyNotReady": "memory-runtime 依赖尚未就绪。请先在「设置 → 依赖」中安装或修复,然后重新尝试启用记忆。",+ "goToDependencies": "前往依赖页面",+ "llmTitle": "LLM 端点",+ "embeddingTitle": "Embedding 端点",+ "baseUrl": "Base URL",+ "baseUrlPlaceholder": "https://api.example.com/v1",+ "model": "模型",+ "modelPlaceholder": "模型名称",+ "apiKey": "API Key",+ "apiKeySet": "已设置密钥——留空可保留原值。",+ "apiKeyNotSet": "尚未设置密钥。",+ "apiKeyPlaceholder": "sk-…",+ "apiKeyClearHint": "密钥仅可写入——Avibe 不会把已保存的密钥回显给你。",+ "embeddingLocked": "已有记忆数据时无法更改 Embedding 端点或模型,请先执行「清除全部」。",+ "embeddingStatusPending": "正在确认记忆状态……确认没有数据后,Embedding 端点将解锁。",+ "save": "保存设置",+ "saving": "保存中…",+ "saveFailed": "无法保存记忆设置。",+ "saved": "记忆设置已保存。",+ "disclosureTitle": "启用记忆前请了解",+ "disclosure": [+ "符合条件的 Workbench 文本和已绑定、已启用用户的私聊文本会被复制到有界本地队列中等待处理。",+ "一条消息处理成功或重试耗尽后,其文本会立即被清除;一个不含内容的去重标记最多保留 90 天,且以最新的 100,000 条为上限。",+ "记忆使用的 LLM 与 Embedding 端点与你的 Agent 模型订阅是分开的。",+ "这些远程端点会接收到被捕获的文本或搜索查询,并可能按其自身策略保留。",+ "私聊文本在被捕获前已经过该平台传输,并继续受该平台自身的留存与同步策略约束。",+ "本地运行时除了可见的画像外,还会在本地状态中保留尚未处理的原始消息和提取数据。",+ "禁用记忆只会冻结本地数据,不会删除——如需删除请使用「清除全部」。",+ "「清除全部」只会移除本机上的本地记忆数据,无法追回已发送到远程端点的副本,也不会影响原始聊天记录。",+ "发往记忆端点的投递是至少一次——超时或崩溃后偶尔可能出现重复的派生记忆。",+ "每个平台用户拥有独立的记忆范围;不同平台之间不会自动关联身份。"+ ],+ "clearKeyLabel": "清除已保存的密钥"+ },+ "clear": {+ "button": "清除全部",+ "confirmTitle": "清除全部本地记忆数据?",+ "confirmDescription": "这会移除你的画像、事件、事实,以及本机上任何尚未处理的排队文本。",+ "removesTitle": "将会移除:",+ "removes": [+ "你可见的画像",+ "用于构建画像的隐藏本地缓冲区和索引",+ "本地处理队列中待处理和已完成的条目"+ ],+ "keepsTitle": "不会移除:",+ "keeps": [+ "你原始的 Avibe 聊天记录",+ "已发送到远程记忆端点的副本",+ "你自己创建的副本或快照",+ "存储在专用记忆目录之外的任何数据",+ "现有的日志、崩溃报告或备份",+ "存储设备上的物理残留——这不是安全擦除"+ ],+ "confirmLabel": "清除全部",+ "clearing": "清除中…",+ "cleared": "记忆数据已清除。",+ "failed": "清除失败。"+ },+ "kind": {+ "profile": "画像",+ "episode": "事件",+ "fact": "事实"+ }+ },+ "organization": {+ "nav": {+ "overview": "概览",+ "instances": "Avibe",+ "members": "成员",+ "groups": "群组",+ "resources": "资源"+ },+ "actions": {+ "backToControlPanel": "控制面板",+ "openRemoteAccess": "打开远程访问",+ "signIn": "登录 Avibe Cloud",+ "signInAgain": "使用同一账号重新登录",+ "signOut": "退出组织管理",+ "reload": "查看最新版本",+ "saving": "保存中...",+ "saveChanges": "保存更改",+ "sendInvite": "发送邀请",+ "inviteMember": "邀请成员",+ "editMember": "编辑成员",+ "removeMember": "移除成员",+ "resendInvite": "重新发送邀请",+ "exportCsv": "导出 CSV",+ "newGroup": "新建群组",+ "editGroup": "编辑群组",+ "archiveGroup": "归档群组",+ "restoreGroup": "恢复群组",+ "manageMembers": "管理成员",+ "saveMembers": "保存成员",+ "addAccess": "添加访问权限",+ "editAccess": "编辑访问权限",+ "removeAccess": "移除访问权限",+ "addBinding": "添加绑定",+ "removeBinding": "移除绑定",+ "manage": "管理"+ },+ "roles": {+ "owner": "所有者",+ "admin": "管理员",+ "member": "成员"+ },+ "status": {+ "active": "活跃",+ "invited": "已邀请",+ "removed": "已移除"+ },+ "sync": {+ "none": "没有受管策略",+ "in_sync": "已同步",+ "applying": "应用中",+ "offline": "离线",+ "error": "错误",+ "deleted": "已删除"+ },+ "sidebar": {+ "section": "组织",+ "organizationCount": "{{count}} 个组织",+ "switchOrganization": "切换组织",+ "cloudConnected": "Cloud 已连接",+ "sessionRemaining": "管理会话 · {{minutes}} 分钟",+ "openMenu": "打开组织菜单"+ },+ "states": {+ "loadingTitle": "正在加载组织",+ "loadingBody": "正在从 Avibe Cloud 获取最新组织数据。",+ "notConnectedTitle": "尚未连接 Avibe Cloud",+ "notConnectedBody": "请先将此 Avibe 连接到 Avibe Cloud,再打开组织管理。",+ "signInTitle": "需要登录",+ "signInBody": "登录 Avibe Cloud,以建立短期有效的组织管理会话。",+ "reauthorizingTitle": "正在重新授权",+ "reauthorizingBody": "正在使用同一 Cloud 账号恢复组织管理会话。",+ "mismatchTitle": "Cloud 账号不匹配",+ "mismatchBody": "当前 Avibe 会话与 Cloud 账号属于不同用户。请使用建立此 Avibe 会话的同一账号重新登录。",+ "unreachableTitle": "无法连接 Avibe Cloud",+ "unreachableBody": "暂时无法获取组织数据,本地 Avibe 仍可正常使用。",+ "revokedTitle": "组织访问权限已撤销",+ "revokedBody": "此管理会话已失效。请重新登录以确认当前权限。",+ "emptyTitle": "没有可用组织",+ "emptyBody": "当前 Cloud 账号不是任何组织的活跃成员。",+ "unavailableTitle": "无法访问此组织页面",+ "unavailableBody": "当前组织权限或 Avibe 权限不允许访问此页面。",+ "errorTitle": "无法完成请求",+ "conflictTitle": "策略已在其他位置更改",+ "conflictBody": "你的草稿尚未保存。请先检查草稿,再重新加载最新版本后继续修改。"+ },+ "errors": {+ "generic": "Avibe 无法完成此组织请求。",+ "forbidden": "当前组织角色不允许执行此操作。",+ "organization_not_found": "无法访问此组织。",+ "organization_member_not_found": "此成员已不可用。",+ "organization_group_not_found": "此群组已不可用。",+ "organization_group_archived": "不能把已归档群组添加到新策略。",+ "instance_not_found": "无法访问此 Avibe。",+ "project_not_found": "无法访问此 Project。",+ "resource_not_found": "无法访问此资源。",+ "member_email_taken": "该邮箱已属于此组织。",+ "group_name_taken": "已存在同名群组。",+ "too_many_entries": "此策略包含过多条目。",+ "invalid_project_access_intent": "请选择有效的 Project 访问规则。",+ "invalid_project_access_principal": "某个 Project 访问主体无效。",+ "invalid_project_access_role": "某个 Project 访问角色无效。",+ "invalid_resource_acl_intent": "请选择有效的资源受众。",+ "invalid_email": "请输入有效的邮箱地址。",+ "invalid_domain": "请输入有效的邮箱域名。",+ "duplicate_instance_access_principal": "同一个 Avibe 访问主体只能出现一次。",+ "duplicate_project_access_principal": "同一个 Project 主体只能出现一次。",+ "owner_entry_locked": "不能修改 Avibe 所有者的隐式访问权限。",+ "resource_sync_conflict": "策略已在其他位置更改,请检查最新版本后再保存。",+ "organization_member_conflict": "成员已在其他位置更改,请检查最新版本后重试。",+ "organization_group_conflict": "群组已在其他位置更改,请检查最新版本后重试。"+ },+ "fields": {+ "name": "名称",+ "description": "描述",+ "color": "颜色",+ "email": "邮箱",+ "role": "角色",+ "groups": "群组",+ "member": "成员",+ "status": "状态",+ "principalType": "主体类型",+ "principal": "访问主体"+ },+ "colors": {+ "mint": "薄荷绿",+ "cyan": "青色",+ "blue": "蓝色",+ "violet": "紫罗兰",+ "rose": "玫红",+ "gold": "金色"+ },+ "principals": {+ "organization_group": "群组",+ "email": "邮箱",+ "email_domain": "邮箱域名"+ },+ "breadcrumb": {+ "overview": "组织 / 概览",+ "members": "组织 / 成员",+ "groups": "组织 / 群组",+ "groupDetail": "组织 / 群组 / {{name}}",+ "instances": "组织 / Avibe",+ "resources": "组织 / 资源"+ },+ "overview": {+ "description": "管理此组织的成员、访问权限和策略同步状态。",+ "memberDescription": "查看你的组织成员身份和可访问的 Avibe。",+ "memberBreakdown": "{{invited}} 个已邀请 · {{removed}} 个已移除",+ "groupBreakdown": "{{archived}} 个已归档",+ "projects": "Project",+ "projectCountUnavailable": "计数暂不可用",+ "policySync": "策略同步",+ "needsAttention": "需要处理",+ "instanceNeedsAttention": "{{name}} 的策略变更需要处理。",+ "projectSyncNeedsAttention": "{{name}} 的 Project 策略需要处理。",+ "resourceSyncNeedsAttention": "{{name}} 的资源策略需要处理。",+ "noAttention": "所有可见的受管策略状态正常。",+ "pendingInvites": "待接受邀请",+ "pendingInvitesBody": "有 {{count}} 个邀请等待接受。",+ "viewAllInstances": "查看全部 Avibe",+ "memberSafeTitle": "成员视图",+ "memberSafeBody": "你可以查看自己的成员身份和可访问的 Avibe。成员目录和资源策略构成仅对组织管理者可见。"+ },+ "members": {+ "description": "邀请成员、分配组织角色并管理群组成员关系。",+ "memberDescription": "查看你的组织角色和群组成员关系。",+ "filterLabel": "筛选成员",+ "filterAll": "全部",+ "active": "活跃",+ "invited": "已邀请",+ "removed": "已移除",+ "admins": "管理员",+ "searchPlaceholder": "搜索成员...",+ "emptyTitle": "没有找到成员",+ "emptyBody": "当前视图中没有匹配的成员。",+ "inviteTitle": "邀请成员",+ "inviteBody": "发送组织邀请,并可选择初始群组。",+ "editTitle": "编辑成员",+ "editBody": "角色和完整群组成员关系共用同一 revision。",+ "emailPlaceholder": "[email protected]",+ "downgradeTitle": "将此管理员降级?",+ "downgradeBody": "{{email}} 将失去组织管理权限,其成员身份和群组分配保持不变。",+ "downgradeConfirm": "降级为成员",+ "removeTitle": "移除此成员?",+ "removeBody": "{{email}} 将失去组织成员身份以及由此获得的全部权限。"+ },+ "groups": {+ "description": "创建可复用的组织受众,并检查引用这些群组的全部策略。",+ "memberDescription": "查看组织群组和你自己的群组成员关系。",+ "active": "活跃",+ "archived": "已归档",+ "filterLabel": "筛选群组",+ "searchPlaceholder": "搜索群组...",+ "emptyTitle": "没有找到群组",+ "emptyBody": "当前视图中没有匹配的群组。",+ "noDescription": "没有描述",+ "yourGroup": "我的群组",+ "createTitle": "创建群组",+ "createBody": "创建组织群组,并可选择初始成员。",+ "editTitle": "编辑群组",+ "editBody": "更新群组的展示信息。",+ "initialMembers": "初始成员",+ "manageMembersTitle": "管理群组成员",+ "manageMembersBody": "替换 {{name}} 的完整成员列表。",+ "referencedBy": "引用位置",+ "moreReferences": "另有 {{count}} 项",+ "archiveTitle": "归档此群组?",+ "archiveBody": "{{name}} 被 {{count}} 个活跃策略项引用。",+ "archiveImpactTitle": "归档影响",+ "archiveImpactBody": "现有引用仍会显示,但不再授予访问权限;已归档群组不能加入新策略。"+ },+ "instances": {+ "description": "你可以看到的组织 Avibe。可管理访问权限和 Project 策略,但不会改变配对或域名。",+ "searchPlaceholder": "搜索 Avibe...",+ "emptyTitle": "没有找到 Avibe",+ "emptyBody": "当前视图中没有可用的组织 Avibe。",+ "you": "你",+ "organizationOwner": "Avibe 所有者",+ "ownerProtected": "所有者身份受保护",+ "youAreOwner": "你是此 Avibe 的所有者",+ "paired": "已配对",+ "notPaired": "未配对",+ "accessCount": "{{count}} 条访问规则",+ "accessTab": "访问权限",+ "projectsTab": "Project",+ "tabsLabel": "Avibe 管理视图",+ "columns": {+ "instance": "Avibe",+ "owner": "所有者",+ "address": "公开地址",+ "status": "状态",+ "access": "访问规则",+ "sync": "同步"+ },+ "status": {+ "pending": "等待中",+ "active": "在线",+ "disabled": "已停用",+ "deleted": "已删除"+ }+ },+ "access": {+ "viewer": "查看者",+ "editor": "编辑者",+ "ownerTitle": "{{owner}} · Avibe 所有者",+ "ownerBody": "这是隐式的所有者同等权限,不能作为普通条目编辑或移除。",+ "emptyTitle": "没有显式访问条目",+ "emptyBody": "当前只有隐式的 Avibe 所有者可以访问。",+ "addTitle": "添加 Avibe 访问权限",+ "editTitle": "编辑 Avibe 访问权限",+ "dialogBody": "为群组、单个邮箱或邮箱域名授予查看者或编辑者权限。",+ "emailPlaceholder": "[email protected]",+ "domainPlaceholder": "example.com",+ "narrowTitle": "收窄此访问权限?",+ "narrowBody": "保存后,原访问主体或编辑能力将不再生效。",+ "removeTitle": "移除此访问条目?",+ "removeBody": "{{principal}} 将失去此条目授予的访问权限。",+ "columns": {+ "principal": "访问主体",+ "type": "类型",+ "role": "角色"+ }+ },+ "projects": {+ "searchPlaceholder": "搜索 Project...",+ "safeDescriptorNotice": "这里只显示安全描述信息,不会显示或发送本地 Project 路径。Project 权限只能收窄 Avibe 角色。",+ "emptyTitle": "没有找到 Project",+ "emptyBody": "此 Avibe 尚未发布活跃的受管 Project 描述信息。",+ "accessRule": "访问规则",+ "bindings": "受限绑定",+ "bindingRequired": "受限访问至少需要一个绑定。",+ "usesAvibeRole": "使用 Avibe 角色",+ "ownerOnlyAudience": "仅 Avibe 所有者",+ "bindingCount": "{{count}} 个绑定",+ "dialogTitle": "管理 {{name}} 的访问权限",+ "dialogBody": "组织管理权限只允许你修改此策略,不会因此获得 Project 使用权限。",+ "narrowTitle": "收窄此 Project 的访问权限?",+ "narrowBody": "此更改会移除现有受众、将编辑者降为查看者,或切换到更严格的规则。",+ "modes": {+ "inherit": "继承",+ "restricted": "受限",+ "owner_only": "仅所有者"+ },+ "modeHelp": {+ "inherit": "使用各访问主体在此 Avibe 上的有效角色。",+ "restricted": "允许一个或多个明确的群组、邮箱或域名;此规则只能收窄 Avibe 角色。",+ "owner_only": "只有此 Avibe 的所有者可以使用此 Project。组织管理者可以管理策略,但不会因此获得使用权限。"+ },+ "columns": {+ "project": "Project",+ "rule": "访问规则",+ "bindings": "绑定",+ "sync": "同步"+ }+ },+ "resources": {+ "description": "管理每项资源可由哪些组织受众使用。可以使用资源不代表可以编辑、删除或再次分享资源。",+ "tabsLabel": "资源类型",+ "accessLevel": "受众",+ "selectGroups": "选择群组",+ "groupRequired": "请至少选择一个群组。",+ "dialogTitle": "管理 {{name}} 的受众",+ "dialogBody": "选择私有、整个组织或指定组织群组。",+ "narrowTitle": "收窄此资源的受众?",+ "narrowBody": "部分当前可以使用此资源的成员将在更改后失去访问权限。",+ "emptyTitle": "没有找到资源",+ "emptyBody": "没有可用的活跃{{kind}}描述信息。",+ "everyActiveMember": "每个活跃成员",+ "ownerOnly": "仅资源所有者",+ "kinds": {+ "agent": "Agent",+ "vault_secret": "Vault 密钥",+ "skill": "Skill",+ "show_page": "Show Page"+ },+ "levels": {+ "private": "私有",+ "public": "组织",+ "scope": "指定群组"+ },+ "levelHelp": {+ "private": "通过此组织 ACL,仅资源所有者可以使用。",+ "public": "此组织的每个活跃成员都可以使用,但仍需满足其他全部权限层。",+ "scope": "只有指定群组的活跃成员可以使用,并且仍需满足其他全部权限层。"+ },+ "columns": {+ "access": "访问级别",+ "audience": "受众",+ "sync": "同步"+ }+ }- },- "models": {- "eligibility": {- "subscription_wrong_client": "{{vendor}} 订阅仅可供 {{backend}} 使用",- "opencode_api_key_only": "OpenCode 只能由 API Key 来源供给",- "consent_required": "需要先同意实验性中枢供给"- },- "oauth": {- "upstream_failed": "厂商没有完成这次登录,请重试",- "engine_unavailable": "中枢没有响应,请重试",- "submission_failed": "粘贴的内容没能提交,请重试",- "ambiguous_engine_binding": "分不清登录的是哪个账号,请一次只登一个再重试",- "binding_failed": "该账号已被另一来源使用",- "expired": "授权超时,请重新连接"- },- "probe": {- "native_cli_unavailable": "用不上 CLI 的登录",- "no_candidate": {- "waiting": "所有来源都在冷却",- "interrupted": "现在没有来源能提供这个模型"- }- },- "source": {- "cooldown": {- "network": "网络不通",- "timeout": "连续超时",- "rate_limited": "触发限流",- "quota_exhausted": "本周期额度用完",- "server_error": "上游服务异常"- },- "needs_action": {- "oauth_expired": "需要重新登录",- "balance_exhausted": "余额不足,需要充值",- "credential_revoked": "凭据已失效,需要重新填写",- "account_banned": "账号被限制使用"- },- "error": {- "unclassified": "未知错误,暂时不可用"- }- }}}diff --cc vibe/api.pyindex ea05ec424,86435a83c..b86478d6c--- a/vibe/api.py+++ b/vibe/api.py@@@ -834,9 -832,86 +834,88 @@@ def _validate_enabled_platform_runtime_raise ValueError(f"Config '{fields_text}' must be provided when {platform} is enabled")- def save_config(payload: dict, *, allow_memory: bool = False) -> V2Config:- """Save general settings while preserving Memory's dedicated settings block."""+ def _remote_access_network_signature(config: V2Config | None) -> tuple[str, str]:+ if config is None:+ return ("4", "")+ cloud = config.remote_access.vibe_cloud+ return (+ str(cloud.edge_ip_version or "4").strip().lower(),+ str(cloud.edge_bind_address or "").strip(),+ )+++ _REMOTE_ACCESS_CONNECTOR_CONTROL_FIELDS = (+ "transport_protocol",+ "edge_ip_version",+ "edge_bind_address",+ )+++ def _remote_access_connector_control_signature(config: V2Config | None) -> tuple[str, str, str]:+ if config is None:+ return ("auto", "4", "")+ cloud = config.remote_access.vibe_cloud+ return (+ str(cloud.transport_protocol or "auto").strip().lower(),+ str(cloud.edge_ip_version or "4").strip().lower(),+ str(cloud.edge_bind_address or "").strip(),+ )+++ def remote_access_runtime_changed(previous: V2Config | None, current: V2Config) -> bool:+ """Return whether a generic config save must reconcile the Connector runtime."""++ if previous is None:+ return bool(current.remote_access.vibe_cloud.enabled)++ def signature(config: V2Config) -> tuple[object, ...]:+ cloud = config.remote_access.vibe_cloud+ return (+ config.remote_access.provider,+ bool(cloud.enabled),+ str(cloud.public_url or ""),+ str(cloud.tunnel_token or ""),+ str(cloud.cloudflared_path or ""),+ *_remote_access_connector_control_signature(config),+ )+ return signature(previous) != signature(current)+++ def _validate_remote_access_network_change(+ config: V2Config,+ base_config: V2Config | None,+ *,+ require_current_binding: bool = False,+ ) -> None:+ if (+ not require_current_binding+ and _remote_access_network_signature(config) == _remote_access_network_signature(base_config)+ ):+ return+ from vibe import remote_access++ error = remote_access.edge_binding_error(config)+ if error == "edge_bind_address_unavailable":+ raise ValueError(+ "Config 'remote_access.vibe_cloud.edge_bind_address' must be assigned "+ "to an active network interface"+ )+ if error == "edge_bind_address_family_mismatch":+ raise ValueError(+ "Config 'remote_access.vibe_cloud.edge_bind_address' must match "+ "'remote_access.vibe_cloud.edge_ip_version'"+ )+++ def save_config(+ payload: dict,+ *,++ allow_memory: bool = False,+ validate_remote_access_network: bool = True,+ generic_remote_access: bool = False,+ ) -> V2Config:++ """Save general settings while preserving Memory's dedicated settings block."""if not isinstance(payload, dict):raise ValueError("Config payload must be an object")diff --cc vibe/remote_access.pyindex 7331e68d3,0ec71d5ba..8afc84373--- a/vibe/remote_access.py+++ b/vibe/remote_access.py@@@ -29,9 -29,10 +29,10 @@@ import threadinimport timeimport urllib.parsefrom pathlib import Path-from typing import Any+from typing import Any, Mapping, Sequenceimport jwt+ import psutilimport requestsfrom jwt import PyJWKClientdiff --cc vibe/ui_server.pyindex 3ac65efd5,f5e6e2fac..697c8ea2b--- a/vibe/ui_server.py+++ b/vibe/ui_server.py@@@ -5474,467 -4769,40 +5467,501 @@@ def remote_access_optimize_route()return jsonify(result), 202 if result.get("ok") else 409+def _cloud_management_subject(config: V2Config | None) -> str | None:+ payload = getattr(g, "remote_session_payload", None)+ if payload is None and config is not None and _is_remote_access_request(config):+ from vibe import remote_access++ payload = remote_access.parse_session_cookie(+ config,+ request.cookies.get(remote_access.SESSION_COOKIE_NAME),+ )+ subject = payload.get("sub") if isinstance(payload, Mapping) else None+ return subject if isinstance(subject, str) and subject else None+++def _cloud_management_callback_origin(config: V2Config) -> str | None:+ if _is_remote_access_request(config):+ origin = _remote_access_request_origin(config)+ else:+ origin = _remote_access_public_origin(config)+ return origin if origin and urlsplit(origin).scheme == "https" else None+++def _cloud_management_json(payload: dict[str, Any], status: int = 200) -> Response:+ response = jsonify(payload)+ response.status_code = status+ response.headers["Cache-Control"] = "no-store, private"+ return response+++def _cloud_management_cookie_secure() -> bool:+ return urlsplit(_current_origin()).scheme.lower() == "https"+++def _set_cloud_management_cookie(+ response: Response,+ name: str,+ value: str,+ *,+ max_age: int,+) -> None:+ response.set_cookie(+ name,+ value,+ max_age=max_age,+ httponly=True,+ secure=_cloud_management_cookie_secure(),+ samesite="Lax",+ path="/",+ )+++def _delete_cloud_management_cookie(response: Response, name: str) -> None:+ response.delete_cookie(+ name,+ path="/",+ secure=_cloud_management_cookie_secure(),+ samesite="Lax",+ )+++def _mark_cloud_management_manual(response: Response) -> None:+ from vibe import cloud_management++ _set_cloud_management_cookie(+ response,+ cloud_management.MANUAL_COOKIE_NAME,+ secrets.token_urlsafe(16),+ max_age=180 * 24 * 60 * 60,+ )+++def _cloud_management_error_response(error: Exception) -> Response:+ from vibe import cloud_management++ if isinstance(error, cloud_management.CloudManagementError):+ return _cloud_management_json(+ {"error": error.code, "retryable": error.retryable},+ error.status,+ )+ logger.warning("Cloud management request failed: %s", error.__class__.__name__)+ return _cloud_management_json(+ {"error": "cloud_management_unavailable", "retryable": True},+ 503,+ )+++def _cloud_management_redirect(next_path: str, error: str | None = None) -> Response:+ target = urlsplit(next_path)+ params = list(parse_qsl(target.query, keep_blank_values=True))+ if error:+ params.append(("cloud_management_error", error))+ location = urlunsplit(("", "", target.path, urlencode(params), ""))+ response = redirect(location)+ response.headers["Cache-Control"] = "no-store, private"+ return response++[email protected]("/api/cloud-management/session", methods=["GET"])+def cloud_management_session_get():+ from vibe import cloud_management++ config = _load_remote_access_config()+ if not cloud_management.cloud_is_configured(config):+ return _cloud_management_json(+ {"connected": False, "state": "cloud_not_connected"}+ )+ handle = request.cookies.get(cloud_management.HANDLE_COOKIE_NAME)+ browser_id = request.cookies.get(cloud_management.BROWSER_COOKIE_NAME)+ remote_subject = _cloud_management_subject(config)+ grant, error = cloud_management.resolve_grant(+ handle,+ browser_id,+ remote_subject,+ )+ if error:+ response = _cloud_management_json(+ {"connected": False, "state": "subject_mismatch", "error": error},+ 409,+ )+ _delete_cloud_management_cookie(response, cloud_management.HANDLE_COOKIE_NAME)+ _mark_cloud_management_manual(response)+ return response+ if grant is None:+ manual = bool(request.cookies.get(cloud_management.MANUAL_COOKIE_NAME))+ return _cloud_management_json(+ {+ "connected": False,+ "state": "authorization_required",+ "can_silent_reauthorize": (+ not manual+ and cloud_management.can_silent_reauthorize(+ browser_id,+ remote_subject,+ )+ ),+ }+ )+ return _cloud_management_json(+ {+ "connected": True,+ "state": "connected",+ "user": {"subject": grant.subject, "email": grant.email},+ "expires_in": max(0, int(grant.expires_at - time.time())),+ }+ )++[email protected]("/api/cloud-management/session/start", methods=["POST"])+def cloud_management_session_start():+ from vibe import cloud_management++ config = _load_remote_access_config()+ if config is None:+ return _cloud_management_json(+ {"error": "cloud_management_not_connected", "retryable": False},+ 409,+ )+ payload = request.json if isinstance(request.json, dict) else {}+ silent = payload.get("mode") == "silent"+ if silent and request.cookies.get(cloud_management.MANUAL_COOKIE_NAME):+ return _cloud_management_json(+ {"error": "cloud_management_authorization_required", "retryable": False},+ 401,+ )+ browser_id = request.cookies.get(cloud_management.BROWSER_COOKIE_NAME)+ remote_subject = _cloud_management_subject(config)+ if silent and not cloud_management.can_silent_reauthorize(+ browser_id,+ remote_subject,+ ):+ return _cloud_management_json(+ {"error": "cloud_management_authorization_required", "retryable": False},+ 401,+ )+ if not browser_id:+ browser_id = cloud_management.new_browser_id()+ callback_origin = _cloud_management_callback_origin(config)+ if callback_origin is None:+ return _cloud_management_json(+ {"error": "cloud_management_not_connected", "retryable": False},+ 409,+ )+ try:+ authorize_url, state = cloud_management.begin_authorization(+ config,+ browser_id=browser_id,+ remote_subject=remote_subject,+ callback_origin=callback_origin,+ next_path=cloud_management.validate_next_path(payload.get("next")),+ silent=silent,+ )+ except Exception as exc:+ return _cloud_management_error_response(exc)+ current_origin = _current_origin()+ if not _same_origin(callback_origin, current_origin):+ authorize_url = (+ f"{callback_origin}/auth/organization/start?"+ f"{urlencode({'state': state})}"+ )+ response = _cloud_management_json(+ {"ok": True, "authorize_url": authorize_url, "mode": "silent" if silent else "interactive"},+ 202,+ )+ _set_cloud_management_cookie(+ response,+ cloud_management.BROWSER_COOKIE_NAME,+ browser_id,+ max_age=180 * 24 * 60 * 60,+ )+ if not silent:+ _delete_cloud_management_cookie(response, cloud_management.MANUAL_COOKIE_NAME)+ return response++[email protected]("/auth/organization/start", methods=["GET"])+def cloud_management_authorization_handoff():+ from vibe import cloud_management++ config = _load_remote_access_config()+ if config is None or not _is_remote_access_request(config):+ return _cloud_management_json({"error": "cloud_management_invalid_callback"}, 400)+ if _auth_rate_limited():+ return _auth_rate_limit_response()+ state = str(request.args.get("state") or "")+ try:+ result = cloud_management.authorization_url_for_handoff(config, state, None)+ except Exception as exc:+ return _cloud_management_error_response(exc)+ if result is None:+ response = _cloud_management_redirect(+ "/admin/organization/overview",+ "invalid_cloud_management_state",+ )+ _mark_cloud_management_manual(response)+ return response+ authorize_url, browser_id = result+ response = redirect(authorize_url)+ response.headers["Cache-Control"] = "no-store, private"+ _set_cloud_management_cookie(+ response,+ cloud_management.BROWSER_COOKIE_NAME,+ browser_id,+ max_age=180 * 24 * 60 * 60,+ )+ return response++[email protected]("/auth/organization/callback", methods=["GET"])+def cloud_management_auth_callback():+ from vibe import cloud_management++ config = _load_remote_access_config()+ if config is None or not _is_remote_access_request(config):+ return _cloud_management_json({"error": "cloud_management_invalid_callback"}, 400)+ if _auth_rate_limited():+ return _auth_rate_limit_response()+ state = str(request.args.get("state") or "")+ upstream_error = str(request.args.get("error") or "")+ if upstream_error:+ next_path = cloud_management.fail_handshake(state)+ response = _cloud_management_redirect(next_path, upstream_error)+ _delete_cloud_management_cookie(response, cloud_management.HANDLE_COOKIE_NAME)+ _mark_cloud_management_manual(response)+ return response+ browser_id = request.cookies.get(cloud_management.BROWSER_COOKIE_NAME) or ""+ try:+ grant, next_path = cloud_management.complete_authorization(+ config,+ state=state,+ code=str(request.args.get("code") or ""),+ browser_id=browser_id,+ remote_subject=_cloud_management_subject(config),+ )+ except Exception as exc:+ code = (+ exc.code+ if isinstance(exc, cloud_management.CloudManagementError)+ else "cloud_management_unavailable"+ )+ response = _cloud_management_redirect(+ "/admin/organization/overview",+ code,+ )+ cloud_management.invalidate_grant(+ request.cookies.get(cloud_management.HANDLE_COOKIE_NAME)+ )+ _delete_cloud_management_cookie(response, cloud_management.HANDLE_COOKIE_NAME)+ _mark_cloud_management_manual(response)+ return response+ response = _cloud_management_redirect(next_path)+ _set_cloud_management_cookie(+ response,+ cloud_management.HANDLE_COOKIE_NAME,+ grant.handle,+ max_age=cloud_management.MANAGEMENT_TOKEN_MAX_TTL_SECONDS,+ )+ _set_cloud_management_cookie(+ response,+ cloud_management.BROWSER_COOKIE_NAME,+ grant.browser_id,+ max_age=180 * 24 * 60 * 60,+ )+ _delete_cloud_management_cookie(response, cloud_management.MANUAL_COOKIE_NAME)+ return response++[email protected]("/api/cloud-management/session", methods=["DELETE"])+def cloud_management_session_delete():+ from vibe import cloud_management++ cloud_management.invalidate_grant(+ request.cookies.get(cloud_management.HANDLE_COOKIE_NAME),+ browser_id=request.cookies.get(cloud_management.BROWSER_COOKIE_NAME),+ clear_subject=True,+ )+ response = _cloud_management_json({"ok": True, "connected": False})+ _delete_cloud_management_cookie(response, cloud_management.HANDLE_COOKIE_NAME)+ _mark_cloud_management_manual(response)+ return response+++async def _read_cloud_management_json_body(starlette_request: FastAPIRequest) -> Any:+ from vibe import cloud_management++ body = bytearray()+ async for chunk in starlette_request.stream():+ if len(body) + len(chunk) > cloud_management.MAX_REQUEST_BYTES:+ raise cloud_management.CloudManagementError(+ "cloud_management_request_too_large",+ status=413,+ retryable=False,+ )+ body.extend(chunk)+ if not body:+ return {}+ try:+ payload = json.loads(body)+ except json.JSONDecodeError as exc:+ raise StarletteHTTPException(status_code=400, detail="Malformed JSON") from exc+ return {} if payload is None else payload+++async def _cloud_management_proxy(+ starlette_request: FastAPIRequest,+ upstream_path: str,+) -> Response:+ from vibe import cloud_management++ config = _load_remote_access_config()+ if not cloud_management.cloud_is_configured(config):+ return _cloud_management_json(+ {"error": "cloud_management_not_connected", "retryable": False},+ 409,+ )+ handle = request.cookies.get(cloud_management.HANDLE_COOKIE_NAME)+ browser_id = request.cookies.get(cloud_management.BROWSER_COOKIE_NAME)+ remote_subject = _cloud_management_subject(config)+ grant, error = cloud_management.resolve_grant(+ handle,+ browser_id,+ remote_subject,+ )+ if error:+ response = _cloud_management_json({"error": error, "retryable": False}, 409)+ _delete_cloud_management_cookie(response, cloud_management.HANDLE_COOKIE_NAME)+ _mark_cloud_management_manual(response)+ return response+ if grant is None:+ return _cloud_management_json(+ {+ "error": "cloud_management_authorization_required",+ "retryable": False,+ "can_silent_reauthorize": (+ not bool(request.cookies.get(cloud_management.MANUAL_COOKIE_NAME))+ and cloud_management.can_silent_reauthorize(+ browser_id,+ remote_subject,+ )+ ),+ },+ 401,+ )+ try:+ content_length = int(request.headers.get("Content-Length") or "0")+ except ValueError:+ content_length = cloud_management.MAX_REQUEST_BYTES + 1+ if content_length > cloud_management.MAX_REQUEST_BYTES:+ return _cloud_management_json(+ {"error": "cloud_management_request_too_large", "retryable": False},+ 413,+ )+ try:+ body = (+ await _read_cloud_management_json_body(starlette_request)+ if request.method in MUTATING_METHODS+ else None+ )+ except cloud_management.CloudManagementError as exc:+ return _cloud_management_error_response(exc)+ try:+ status, payload = await asyncio.to_thread(+ cloud_management.proxy_request,+ config,+ grant=grant,+ method=request.method,+ upstream_path=upstream_path,+ query=list(request.args.multi_items()),+ json_body=body,+ )+ except Exception as exc:+ return _cloud_management_error_response(exc)+ response = _cloud_management_json(payload, status)+ if status == 401:+ cloud_management.invalidate_grant(handle)+ _delete_cloud_management_cookie(response, cloud_management.HANDLE_COOKIE_NAME)+ _mark_cloud_management_manual(response)+ return response+++async def _dispatch_cloud_management_proxy(+ starlette_request: FastAPIRequest,+ upstream_path: str,+) -> Response:+ async def handler() -> Response:+ return await _cloud_management_proxy(starlette_request, upstream_path)++ return await app.dispatch_native_request(starlette_request, handler, parse_json=False)++[email protected]("/api/cloud-management/organizations", include_in_schema=False)+async def cloud_management_organizations_root_proxy(starlette_request: FastAPIRequest):+ return await _dispatch_cloud_management_proxy(starlette_request, "/api/organizations")++[email protected]_route(+ "/api/cloud-management/organizations/{management_path:path}",+ methods=["GET", "POST", "PUT", "PATCH", "DELETE"],+ include_in_schema=False,+)+async def cloud_management_organizations_proxy(+ starlette_request: FastAPIRequest,+ management_path: str,+):+ return await _dispatch_cloud_management_proxy(+ starlette_request,+ f"/api/organizations/{management_path}",+ )++[email protected]_route(+ "/api/cloud-management/instances/{management_path:path}",+ methods=["GET", "POST", "PUT", "PATCH", "DELETE"],+ include_in_schema=False,+)+async def cloud_management_instances_proxy(+ starlette_request: FastAPIRequest,+ management_path: str,+):+ return await _dispatch_cloud_management_proxy(+ starlette_request,+ f"/api/instances/{management_path}",+ )+ @app.route("/api/remote-access/network-interfaces", methods=["GET"])+ def remote_access_network_interfaces():+ from vibe import remote_access++ return jsonify(remote_access.network_interfaces())+++ @app.route("/api/remote-access/settings", methods=["POST"])+ async def remote_access_settings():+ from vibe import remote_access++ payload = request.json or {}+ result = await asyncio.to_thread(remote_access.apply_settings, payload)+ if result.get("ok"):+ await asyncio.to_thread(_ensure_remote_access_monitoring)+ return jsonify(result)+ status_code = 400 if result.get("error") == "remote_access_settings_invalid" else 409+ return jsonify(result), status_code+++ @app.route("/api/remote-access/diagnostics", methods=["POST"])+ async def remote_access_diagnostics():+ from vibe import remote_access++ try:+ result = await asyncio.to_thread(remote_access.connectivity_diagnostics)+ except Exception as exc:+ logger.warning("Tunnel connectivity diagnostics failed", exc_info=True)+ result = {+ "ok": False,+ "error": "remote_access_diagnostics_failed",+ "detail": str(exc),+ }+ return jsonify(result), 200 if result.get("ok") else 409@app.route("/auth/callback", methods=["GET"])