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
Refine show page cloud guidance
cyh954707c92c8a
diff --git a/core/audio_asr.py b/core/audio_asr.pyindex 0d913d3c2..5d67432ad 100644--- a/core/audio_asr.py+++ b/core/audio_asr.py@@ -158,7 +158,7 @@ class AudioAsrService:return []runtime = self._runtime_config()if not runtime:- logger.info("Skipping audio ASR: Vibe Cloud pairing credentials are unavailable")+ logger.info("Skipping audio ASR: Avibe Cloud pairing credentials are unavailable")return []eligible = self.eligible_attachments(attachments)if not eligible:diff --git a/core/handlers/session_handler.py b/core/handlers/session_handler.pyindex cf7625ad3..0fcb3c466 100644--- a/core/handlers/session_handler.py+++ b/core/handlers/session_handler.py@@ -16,6 +16,8 @@ from modules.claude_sdk_compat import (PermissionResultAllow,)from modules.agents.native_sessions.base import build_resume_preview+from core.show_pages import avibe_cloud_url_available+from core.system_prompt_injection import build_system_prompt_injectionfrom .base import BaseHandler@@ -678,11 +680,10 @@ class SessionHandler(BaseHandler):session_anchor=session_anchor,)- from core.system_prompt_injection import build_system_prompt_injection-system_prompt_injection = build_system_prompt_injection(include_quick_replies=quick_replies_on and platform != "wechat",include_show_pages=getattr(self.config, "show_pages_prompt", True),+ avibe_cloud_connected=avibe_cloud_url_available(self.config),context=context,fallback_platform=platform,)diff --git a/core/show_pages.py b/core/show_pages.pyindex e6b4ba35d..e2dd4501b 100644--- a/core/show_pages.py+++ b/core/show_pages.py@@ -22,6 +22,11 @@ VISIBILITY_OFFLINE = "offline"VISIBILITIES = {VISIBILITY_PRIVATE, VISIBILITY_PUBLIC, VISIBILITY_OFFLINE}SHARE_ID_BYTES = 8_SESSION_ID_PATTERN = re.compile(r"^[A-Za-z0-9][A-Za-z0-9_.:-]{0,127}$")+AVIBE_CLOUD_CONNECT_GUIDANCE = (+ "⚠️ Avibe Cloud is not connected, so this page cannot be accessed from the public internet "+ "through your domain. To fully use Show Pages, register an avibe.bot account, claim your dedicated "+ "domain and pairing key, then run `vibe remote pair`."+)class ShowPageError(ValueError):@@ -82,10 +87,21 @@ def _base_public_url(config: V2Config | None = None) -> str | None:cfg = config or V2Config.load()except Exception:return None- public_url = (cfg.remote_access.vibe_cloud.public_url or "").strip()+ cloud = getattr(getattr(cfg, "remote_access", None), "vibe_cloud", None)+ if not cloud or not getattr(cloud, "enabled", False):+ return None+ public_url = (getattr(cloud, "public_url", "") or "").strip()return public_url.rstrip("/") if public_url else None+def avibe_cloud_url_available(config: V2Config | None = None) -> bool:+ return bool(_base_public_url(config))+++def avibe_cloud_connect_guidance(config: V2Config | None = None) -> str | None:+ return None if avibe_cloud_url_available(config) else AVIBE_CLOUD_CONNECT_GUIDANCE++def private_url(session_id: str, *, config: V2Config | None = None) -> str | None:base = _base_public_url(config)if not base:@@ -222,6 +238,7 @@ def show_page_payload(page: ShowPage, *, config: V2Config | None = None) -> dictpath = show_page_dir(page.session_id)private = private_url(page.session_id, config=config)public = public_url(page.share_id, config=config)+ url_guidance = avibe_cloud_connect_guidance(config)active_url = Noneif page.visibility == VISIBILITY_PRIVATE:active_url = private@@ -234,6 +251,8 @@ def show_page_payload(page: ShowPage, *, config: V2Config | None = None) -> dict"active_url": active_url,"private_url": private,"public_url": public,+ "url_available": url_guidance is None,+ "url_guidance": url_guidance,"share_id": page.share_id,"offline": page.offline,"offline_at": page.offline_at,diff --git a/core/system_prompt_injection.py b/core/system_prompt_injection.pyindex 80d7f1d59..c2a384564 100644--- a/core/system_prompt_injection.py+++ b/core/system_prompt_injection.py@@ -7,6 +7,7 @@ from pathlib import Pathfrom typing import Optionalfrom config import paths+from core.show_pages import AVIBE_CLOUD_CONNECT_GUIDANCEfrom modules.im import MessageContext@@ -52,13 +53,14 @@ Check status:`vibe show status --session-id {default_session_id}`-Change visibility or manage the share link:+Change visibility:`vibe show update --session-id {default_session_id} --visibility public``vibe show update --session-id {default_session_id} --visibility private``vibe show update --session-id {default_session_id} --visibility offline`-`vibe show update --session-id {default_session_id} --rotate-share`+For more usage details, run `vibe show --help` or a subcommand help such as `vibe show update --help`.+{avibe_cloud_guidance_section}Guidance:- Write `index.html` and related static assets in the Show Page directory.- Design for user understanding, not just for moving text onto a webpage. Choose the visual form that best helps the user inspect, compare, confirm, and continue the discussion.@@ -151,12 +153,15 @@ def _build_scheduled_tasks_prompt(context: MessageContext, *, fallback_platform:)-def _build_show_pages_prompt(context: MessageContext) -> str:+def _build_show_pages_prompt(context: MessageContext, *, avibe_cloud_guidance: str | None = None) -> str:platform_specific = context.platform_specific or {}default_session_id = platform_specific.get("agent_session_id")if not default_session_id:raise ValueError("agent_session_id is required before building Vibe Remote capability prompt")- return _SHOW_PAGES_PROMPT.format(default_session_id=str(default_session_id))+ return _SHOW_PAGES_PROMPT.format(+ default_session_id=str(default_session_id),+ avibe_cloud_guidance_section=f"\n{avibe_cloud_guidance}\n" if avibe_cloud_guidance else "\n",+ )def _build_user_preferences_prompt(@@ -180,6 +185,7 @@ def build_system_prompt_injection(include_show_pages: bool = True,include_codex_generated_images: bool = False,include_user_preferences: bool = True,+ avibe_cloud_connected: bool | None = None,context: Optional[MessageContext] = None,fallback_platform: Optional[str] = None,) -> str:@@ -189,7 +195,10 @@ def build_system_prompt_injection(if include_codex_generated_images:prompt += _build_codex_generated_images_prompt()if include_show_pages and context is not None:- prompt += _build_show_pages_prompt(context)+ guidance = None+ if avibe_cloud_connected is False:+ guidance = AVIBE_CLOUD_CONNECT_GUIDANCE+ prompt += _build_show_pages_prompt(context, avibe_cloud_guidance=guidance)if include_quick_replies:prompt += _QUICK_REPLIES_PROMPTif context is not None:diff --git a/modules/agents/codex/agent.py b/modules/agents/codex/agent.pyindex a41f9fdda..de6f339ee 100644--- a/modules/agents/codex/agent.py+++ b/modules/agents/codex/agent.py@@ -8,6 +8,8 @@ import timefrom pathlib import Pathfrom typing import Any, Dict, Optional+from core.show_pages import avibe_cloud_url_available+from core.system_prompt_injection import build_system_prompt_injectionfrom modules.agents.base import AgentRequest, BaseAgentfrom modules.agents.subagent_router import SubagentDefinition, load_codex_subagentfrom modules.agents.codex.event_handler import CodexEventHandler@@ -707,14 +709,13 @@ class CodexAgent(BaseAgent):if agent_instructions:instruction_parts.append(agent_instructions)- from core.system_prompt_injection import build_system_prompt_injection-instruction_parts.append(build_system_prompt_injection(include_quick_replies=getattr(self.controller.config, "reply_enhancements", True)and platform != "wechat",include_show_pages=getattr(self.controller.config, "show_pages_prompt", True),include_codex_generated_images=True,+ avibe_cloud_connected=avibe_cloud_url_available(self.controller.config),context=request.context,fallback_platform=platform,)diff --git a/modules/agents/opencode/agent.py b/modules/agents/opencode/agent.pyindex 396350729..510cdff44 100644--- a/modules/agents/opencode/agent.py+++ b/modules/agents/opencode/agent.py@@ -14,6 +14,8 @@ import loggingimport timefrom typing import Dict, Optional+from core.show_pages import avibe_cloud_url_available+from core.system_prompt_injection import build_system_prompt_injectionfrom modules.agents.base import AgentRequest, BaseAgentfrom .client_manager import OpenCodeClientManager@@ -269,12 +271,11 @@ class OpenCodeAgent(OpenCodeMessageProcessorMixin, BaseAgent):or self.controller.config.platform)- from core.system_prompt_injection import build_system_prompt_injection-system_prompt_injection = build_system_prompt_injection(include_quick_replies=getattr(self.controller.config, "reply_enhancements", True)and platform != "wechat",include_show_pages=getattr(self.controller.config, "show_pages_prompt", True),+ avibe_cloud_connected=avibe_cloud_url_available(self.controller.config),context=request.context,fallback_platform=platform,)diff --git a/storage/migrations.py b/storage/migrations.pyindex b32d33ea9..c8efdce08 100644--- a/storage/migrations.py+++ b/storage/migrations.py@@ -152,10 +152,10 @@ def _repair_unreleased_head_schema_drift(db_path: Path) -> None:if "alembic_version" not in tables:returnversion = conn.execute("select version_num from alembic_version").fetchone()- if version != ("20260515_0002",):+ if version not in {("20260515_0002",), ("20260522_0003",), ("20260523_0004",)}:return- if _repair_head_required_columns(conn, tables):+ if not _head_schema_ready(conn, tables) and _repair_head_required_columns(conn, tables):conn.commit()diff --git a/tests/test_reply_enhancer_platform.py b/tests/test_reply_enhancer_platform.pyindex c5f4e57f4..7208b3fb5 100644--- a/tests/test_reply_enhancer_platform.py+++ b/tests/test_reply_enhancer_platform.py@@ -222,6 +222,7 @@ class ReplyEnhancerPlatformTests(unittest.IsolatedAsyncioTestCase):self.assertIn("`vibe show path --session-id sesk8m4q2p7x`", prompt)self.assertIn("Make the page work reasonably on mobile", prompt)self.assertIn("Excalidraw-style static SVG/PNG diagrams", prompt)+ self.assertNotIn("Avibe Cloud is not connected", prompt)self.assertIn("## Scheduled tasks, watches, and hooks", prompt)self.assertIn("`vibe task add`", prompt)self.assertIn("`vibe agent run --async --session-id ... --message ...`", prompt)@@ -267,6 +268,26 @@ class ReplyEnhancerPlatformTests(unittest.IsolatedAsyncioTestCase):self.assertIn("Only record durable, factual, reusable information there.", prompt)self.assertIn("Keep entries short, deduplicated, and free of secrets unless the user explicitly asks.", prompt)+ def test_show_pages_prompt_mentions_avibe_cloud_when_not_connected(self):+ context = MessageContext(+ user_id="U1",+ channel_id="C1",+ platform="slack",+ platform_specific={"agent_session_id": "sesk8m4q2p7x"},+ )++ with patch.object(paths, "get_user_preferences_path", return_value=Path("/tmp/user_preferences.md")):+ prompt = build_system_prompt_injection(+ include_quick_replies=False,+ avibe_cloud_connected=False,+ context=context,+ )++ self.assertIn("## Show Pages", prompt)+ self.assertIn("⚠️ Avibe Cloud is not connected", prompt)+ self.assertIn("register an avibe.bot account", prompt)+ self.assertIn("`vibe remote pair`", prompt)+def test_prompt_uses_fallback_platform_for_unannotated_context(self):context = MessageContext(user_id="U1",diff --git a/tests/test_show_pages.py b/tests/test_show_pages.pyindex dd467eb42..3158e7704 100644--- a/tests/test_show_pages.py+++ b/tests/test_show_pages.py@@ -2,10 +2,24 @@ import jsonfrom config import pathsfrom config.v2_config import AgentsConfig, PlatformsConfig, RemoteAccessConfig, RuntimeConfig, SlackConfig, UiConfig, V2Config-from core.show_pages import ShowPageError, ShowPageStore, ensure_show_page_dir+from core.show_pages import ShowPageError, ShowPageStore, ensure_show_page_dir, show_page_payloadfrom vibe import cli+def test_show_without_subcommand_prints_help(capsys):+ parser = cli.build_parser()+ args = parser.parse_args(["show"])++ assert args.command == "show"+ assert args.show_command is None++ assert cli.cmd_show(args) == 0+ captured = capsys.readouterr()+ assert "Manage the one visual Show Page attached to an Agent Session." in captured.out+ assert "usage: vibe show [-h] {path,status,update} ..." in captured.out+ assert "vibe show path --session-id sesk8m4q2p7x" in captured.out++def _save_config() -> V2Config:config = V2Config(mode="self_host",@@ -98,9 +112,33 @@ def test_show_path_cli_json_creates_page(monkeypatch, tmp_path, capsys):assert payload["active_url"] == "https://alex.avibe.bot/show/ses123/"assert payload["private_url"] == "https://alex.avibe.bot/show/ses123/"assert payload["public_url"] is None+ assert payload["url_available"] is True+ assert payload["url_guidance"] is Noneassert (tmp_path / "show" / "ses123" / "index.html").exists()+def test_show_page_payload_requires_enabled_avibe_cloud(monkeypatch, tmp_path):+ monkeypatch.setenv("VIBE_REMOTE_HOME", str(tmp_path))+ paths.ensure_data_dirs()+ config = _save_config()+ config.remote_access.vibe_cloud.enabled = False+ config.save()++ store = ShowPageStore()+ try:+ page = store.ensure("ses123")+ payload = show_page_payload(page)+ assert payload["active_url"] is None+ assert payload["private_url"] is None+ assert payload["public_url"] is None+ assert payload["url_available"] is False+ assert "Avibe Cloud is not connected" in payload["url_guidance"]+ assert "avibe.bot" in payload["url_guidance"]+ assert "`vibe remote pair`" in payload["url_guidance"]+ finally:+ store.close()++def test_show_update_cli_reports_transition_urls(monkeypatch, tmp_path, capsys):monkeypatch.setenv("VIBE_REMOTE_HOME", str(tmp_path))paths.ensure_data_dirs()diff --git a/tests/test_sqlite_state_migration.py b/tests/test_sqlite_state_migration.pyindex 9e747580e..e3bb09583 100644--- a/tests/test_sqlite_state_migration.py+++ b/tests/test_sqlite_state_migration.py@@ -145,6 +145,33 @@ def test_run_migrations_repairs_head_columns_before_stamping_head(tmp_path: Pathassert background_tables_ready(db_path) is True+def test_run_migrations_repairs_head_stamped_background_schema_drift(tmp_path: Path) -> None:+ db_path = tmp_path / "vibe.sqlite"+ engine = create_sqlite_engine(db_path)+ try:+ metadata.create_all(engine)+ finally:+ engine.dispose()++ with sqlite3.connect(db_path) as conn:+ conn.execute('alter table "run_definitions" rename column "definition_type" to "task_type"')+ conn.execute("create table alembic_version (version_num varchar(32) not null)")+ conn.execute("insert into alembic_version values ('20260523_0004')")+ conn.commit()++ assert background_tables_ready(db_path) is False++ run_migrations(db_path)++ with sqlite3.connect(db_path) as conn:+ version = conn.execute("select version_num from alembic_version").fetchone()+ columns = {row[1] for row in conn.execute("pragma table_info(run_definitions)")}+ assert version == ("20260523_0004",)+ assert "definition_type" in columns+ assert "task_type" not in columns+ assert background_tables_ready(db_path) is True++def test_run_migrations_backfills_existing_session_policy_only_for_targeted_definitions(tmp_path: Path) -> None:db_path = tmp_path / "vibe.sqlite"engine = create_sqlite_engine(db_path)diff --git a/tests/test_ui_show_pages.py b/tests/test_ui_show_pages.pyindex 26017a23c..178d0544b 100644--- a/tests/test_ui_show_pages.py+++ b/tests/test_ui_show_pages.py@@ -43,6 +43,17 @@ def test_private_show_page_serves_locally(monkeypatch, tmp_path):assert b"Show Page" in response.content+def test_private_show_page_serves_without_trailing_slash(monkeypatch, tmp_path):+ monkeypatch.setenv("VIBE_REMOTE_HOME", str(tmp_path))+ _save_config(tmp_path)+ _create_show_page("ses123", "private")++ response = app.test_client().get("/show/ses123", base_url="http://127.0.0.1:5123")++ assert response.status_code == 200+ assert b"Show Page" in response.content++def test_public_show_page_skips_remote_login_but_requires_public_host(monkeypatch, tmp_path):monkeypatch.setenv("VIBE_REMOTE_HOME", str(tmp_path))_save_config(tmp_path)@@ -69,6 +80,17 @@ def test_public_show_page_skips_remote_login_but_requires_public_host(monkeypatcassert mismatch.get_json()["error"] == "remote_access_host_mismatch"+def test_public_show_page_serves_without_trailing_slash(monkeypatch, tmp_path):+ monkeypatch.setenv("VIBE_REMOTE_HOME", str(tmp_path))+ _save_config(tmp_path)+ share_id = _create_show_page("ses123", "public")++ response = app.test_client().get(f"/p/{share_id}", base_url="http://127.0.0.1:5123")++ assert response.status_code == 200+ assert b"Show Page" in response.content++def test_public_and_private_paths_are_canonical_by_visibility(monkeypatch, tmp_path):monkeypatch.setenv("VIBE_REMOTE_HOME", str(tmp_path))_save_config(tmp_path)diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.jsonindex 610a84d52..9caca7e5c 100644--- a/ui/src/i18n/en.json+++ b/ui/src/i18n/en.json@@ -328,20 +328,20 @@"openSetup": "Open setup wizard"},"remoteAccess": {- "badge": "Vibe Cloud provider",+ "badge": "Avibe Cloud provider","title": "Remote Access","subtitle": "Open this local Web UI from another device through a private avibe.bot URL. Your data and agents still run on this machine.","subtitleWithLink": "Open this local Web UI from another device through a private <cloud>avibe.bot</cloud> URL. Your data and agents still run on this machine.",- "connectTitle": "Connect to Vibe Cloud",+ "connectTitle": "Connect to Avibe Cloud","connectDesc": "First create a remote-access bot at avibe.bot and copy its one-time pairing key. Then paste it here to pair this device.",- "configuredTitle": "Vibe Cloud is configured",+ "configuredTitle": "Avibe Cloud is configured","configuredDesc": "This machine has saved the remote-access credentials. The pairing key was one-time use; after restart, Vibe Remote uses the saved connection credentials.",- "configuredBadge": "Connected to Vibe Cloud",+ "configuredBadge": "Connected to Avibe Cloud","configuredHelp": "Use re-pair only when switching account, changing domain, or regenerating remote access.","legacyHostnameTitle": "This remote address needs to be replaced","legacyHostnameDesc": "Older instances used *.remote.avibe.bot. That is a nested hostname and may fail TLS on Cloudflare Universal SSL. Create a new remote-access bot at avibe.bot, then re-pair here to receive a *.avibe.bot address.",- "vibeCloudService": "Vibe Cloud service",- "backendUrl": "Vibe Cloud URL",+ "vibeCloudService": "Avibe Cloud service",+ "backendUrl": "Avibe Cloud URL","pairingKey": "Pairing key","pairingKeyHelp": "The pairing key is shown once and usually starts with vrp_. After redemption, Vibe Remote stores connection credentials, not this one-time key.","pair": "Pair and start",@@ -366,7 +366,7 @@"remote_access_unknown": "The operation did not finish. Refresh the status and try again; if it still fails, check the remote access runtime logs.","invalid_pairing_key": "This pairing key is invalid or expired. Create a new key at avibe.bot, then paste it here.","missing_pairing_key": "Paste the pairing key first.",- "pairing_request_failed": "Could not connect to avibe.bot. Check the network connection and make sure the Vibe Cloud URL is correct.",+ "pairing_request_failed": "Could not connect to avibe.bot. Check the network connection and make sure the Avibe Cloud URL is correct.","backend_http_error": "avibe.bot rejected this request. Try again later, or create a new pairing key.","invalid_pairing_response": "avibe.bot returned incomplete pairing data. Refresh the page, create a new pairing key, and try again.","remote_access_disabled": "Remote access is not enabled yet. Pair this device first.",@@ -936,7 +936,7 @@"ackMessage": "💬 Message","audioTranscription": "Audio Transcription","audioTranscriptionHint": "Transcribe supported audio attachments before sending the turn to the agent",- "audioTranscriptionRequiresVibeCloud": "Pair this Vibe Remote with Vibe Cloud before enabling audio transcription",+ "audioTranscriptionRequiresVibeCloud": "Pair this Vibe Remote with Avibe Cloud before enabling audio transcription","audioTranscriptionRequiresRemoteAccessTooltip": "Open Remote Access and pair this device with avibe.bot to enable audio transcription.","audioTranscriptEcho": "Echo Transcript","audioTranscriptEchoHint": "Send recognized text back to the chat when transcription succeeds",diff --git a/ui/src/i18n/zh.json b/ui/src/i18n/zh.jsonindex 5e34f0048..bb0b5a920 100644--- a/ui/src/i18n/zh.json+++ b/ui/src/i18n/zh.json@@ -328,20 +328,20 @@"openSetup": "打开设置向导"},"remoteAccess": {- "badge": "Vibe Cloud Provider",+ "badge": "Avibe Cloud Provider","title": "远程访问","subtitle": "通过私有 avibe.bot 地址,从另一台设备打开这个本机 Web UI。你的数据和 Agent 仍然运行在这台机器上。","subtitleWithLink": "通过私有 <cloud>avibe.bot</cloud> 地址,从另一台设备打开这个本机 Web UI。你的数据和 Agent 仍然运行在这台机器上。",- "connectTitle": "连接 Vibe Cloud",+ "connectTitle": "连接 Avibe Cloud","connectDesc": "先在 avibe.bot 创建 remote-access bot,并复制一次性 pairing key;然后粘贴到这里完成本机配对。",- "configuredTitle": "Vibe Cloud 已配置",+ "configuredTitle": "Avibe Cloud 已配置","configuredDesc": "本机已经保存了远程访问凭证。Pairing key 是一次性兑换码,不会长期保存;重启后会使用已保存的连接凭证自动恢复。",- "configuredBadge": "已连接到 Vibe Cloud",+ "configuredBadge": "已连接到 Avibe Cloud","configuredHelp": "只有在切换账号、更换域名或重新生成远程访问时,才需要重新配对。","legacyHostnameTitle": "这个远程地址需要更换","legacyHostnameDesc": "旧实例使用的是 *.remote.avibe.bot,这属于多级子域名,Cloudflare 免费通用证书可能无法覆盖。请在 avibe.bot 重新创建 remote-access bot,然后回到这里重新配对,拿到新的 *.avibe.bot 地址。",- "vibeCloudService": "Vibe Cloud 服务",- "backendUrl": "Vibe Cloud 地址",+ "vibeCloudService": "Avibe Cloud 服务",+ "backendUrl": "Avibe Cloud 地址","pairingKey": "Pairing key","pairingKeyHelp": "Pairing key 只会显示一次,通常以 vrp_ 开头。兑换成功后本地保存的是连接凭证,不是这个一次性 key。","pair": "配对并启动",@@ -366,7 +366,7 @@"remote_access_unknown": "操作没有完成。请刷新状态后再试一次;如果仍然失败,请查看远程访问运行日志。","invalid_pairing_key": "这个 pairing key 无效或已过期。请回到 avibe.bot 重新生成一个 key,然后粘贴到这里。","missing_pairing_key": "请先粘贴 pairing key。",- "pairing_request_failed": "无法连接到 avibe.bot。请检查网络连接,或确认 Vibe Cloud 地址填写正确。",+ "pairing_request_failed": "无法连接到 avibe.bot。请检查网络连接,或确认 Avibe Cloud 地址填写正确。","backend_http_error": "avibe.bot 暂时拒绝了这次请求。请稍后重试,或重新生成 pairing key。","invalid_pairing_response": "avibe.bot 返回的信息不完整。请刷新页面后重新生成 pairing key 再试。","remote_access_disabled": "远程访问还没有启用。请先完成配对。",@@ -936,7 +936,7 @@"ackMessage": "💬 消息回复","audioTranscription": "语音转文字","audioTranscriptionHint": "在把消息交给 Agent 前,先转写支持的语音附件",- "audioTranscriptionRequiresVibeCloud": "请先将 Vibe Remote 配对到 Vibe Cloud,再启用语音转文字",+ "audioTranscriptionRequiresVibeCloud": "请先将 Vibe Remote 配对到 Avibe Cloud,再启用语音转文字","audioTranscriptionRequiresRemoteAccessTooltip": "请先在远程访问页将本设备配对到 avibe.bot,然后即可启用语音转文字。","audioTranscriptEcho": "回显转写结果","audioTranscriptEchoHint": "语音识别成功后,把转写文本也发回当前对话",diff --git a/vibe/cli.py b/vibe/cli.pyindex c32f628bf..8eed170dc 100644--- a/vibe/cli.py+++ b/vibe/cli.py@@ -385,7 +385,7 @@ def _remote_pair_examples_text() -> str:For the guided setup flow, run `vibe remote`.If you omit the pairing key, the CLI prompts for it without echoing it to the terminal.Pairing saves the remote-access config and then starts the managed tunnel automatically.- The pairing key is one-time use; create a fresh key from the Vibe Cloud console if it fails.+ The pairing key is one-time use; create a fresh key from the Avibe Cloud console if it fails.Examples:vibe remote@@ -399,7 +399,7 @@ def _remote_pair_examples_text() -> str:def _show_examples_text() -> str:return dedent("""\- A Show Page is one session-scoped visual page that Vibe Remote serves through the Web UI / Vibe Cloud tunnel.+ A Show Page is one session-scoped visual page that Vibe Remote serves through the Web UI / Avibe Cloud tunnel.One Agent Session has exactly one Show Page.Commands:@@ -416,8 +416,12 @@ def _show_examples_text() -> str:vibe show path --session-id sesk8m4q2p7xvibe show status --session-id sesk8m4q2p7x --jsonvibe show update --session-id sesk8m4q2p7x --visibility public- vibe show update --session-id sesk8m4q2p7x --rotate-sharevibe show update --session-id sesk8m4q2p7x --visibility offline++ More:+ vibe show path --help+ vibe show status --help+ vibe show update --help""")@@ -3456,7 +3460,7 @@ def _read_pairing_key_from_args(args) -> str:def _print_remote_setup_intro() -> None:- print("Vibe Cloud remote access")+ print("Avibe Cloud remote access")print("")print("This connects your local Vibe Remote Web UI to a private avibe.bot URL.")print("Your agent and code still run on this machine; the remote URL only opens the local Web UI through a managed secure tunnel.")@@ -3492,14 +3496,14 @@ def _print_remote_pair_failure(result: dict) -> None:print(" vibe remote", file=sys.stderr)returnif error_code in {"pairing_request_failed", "backend_http_error"}:- print("Could not reach Vibe Cloud.", file=sys.stderr)+ print("Could not reach Avibe Cloud.", file=sys.stderr)print("Check your network connection, then run:", file=sys.stderr)print(" vibe remote", file=sys.stderr)if result.get("detail"):print(f"Detail: {result['detail']}", file=sys.stderr)returnif error_code == "invalid_pairing_response":- print("Vibe Cloud returned incomplete pairing data.", file=sys.stderr)+ print("Avibe Cloud returned incomplete pairing data.", file=sys.stderr)print("Create a fresh pairing key and run:", file=sys.stderr)print(" vibe remote", file=sys.stderr)return@@ -3596,7 +3600,7 @@ def _run_remote_pair(args, *, guided: bool) -> int:return 1if not getattr(args, "json", False):- print("Pairing this device with Vibe Cloud remote access...", flush=True)+ print("Pairing this device with Avibe Cloud remote access...", flush=True)result = remote_access.pair(pairing_key,getattr(args, "backend_url", "https://avibe.bot"),@@ -3692,51 +3696,54 @@ def _show_page_result(page, *, message: str, previous_payload: dict | None = Nondef _show_page_next_actions(payload: dict) -> list[str]:session_id = payload.get("session_id") or "<session-id>"visibility = payload.get("visibility")- actions = ["Write index.html and assets into the returned path."]- if visibility == "private":- actions.append(- f"Run `vibe show update --session-id {session_id} --visibility public` when the user asks for a shareable link."- )- elif visibility == "public":- actions.append(f"Run `vibe show update --session-id {session_id} --rotate-share` to revoke and replace this public link.")- actions.append(f"Run `vibe show update --session-id {session_id} --visibility private` to return to authenticated access.")+ actions = [f"Edit files under: {payload.get('path')}"]+ active_url = payload.get("active_url")+ if active_url:+ actions.append(f"Send this URL to the user: {active_url}")elif visibility == "offline":- actions.append(f"Run `vibe show update --session-id {session_id} --visibility private` to bring the page back online privately.")+ actions.append(f"Bring the page online again with: vibe show update --session-id {session_id} --visibility private")+ elif not payload.get("url_guidance"):+ actions.append("No active URL is available right now.")+ actions.append("To update the page later, edit the same directory and refresh.")+ actions.append("For more options, run: vibe show --help")return actionsdef _print_show_page_result(payload: dict) -> None:print("Show Page:")- print(f" Session: {payload.get('session_id')}")- print(f" Visibility: {payload.get('visibility')}")print(f" Path: {payload.get('path')}")- active_url = payload.get("active_url")- if active_url:- print(f" Active URL: {active_url}")- else:- print(" Active URL: none")- if payload.get("private_url"):- print(f" Private URL: {payload.get('private_url')}")- if payload.get("public_url"):- print(f" Public URL: {payload.get('public_url')}")- if payload.get("previous_private_url"):- print(f" Previous private URL: {payload.get('previous_private_url')} (inactive)")- if payload.get("previous_public_url"):- print(f" Previous public URL: {payload.get('previous_public_url')} (inactive)")+ print(f" URL: {payload.get('active_url') or 'none'}")+ print(f" Visibility: {payload.get('visibility')}")if payload.get("previous_active_url"):- print(f" Previous active URL: {payload.get('previous_active_url')} (inactive)")- if payload.get("share_id"):- print(f" Share ID: {payload.get('share_id')}")+ print(f" Previous URL: {payload.get('previous_active_url')} (inactive)")+ elif payload.get("previous_public_url"):+ print(f" Previous URL: {payload.get('previous_public_url')} (inactive)")+ elif payload.get("previous_private_url"):+ print(f" Previous URL: {payload.get('previous_private_url')} (inactive)")if payload.get("message"):- print(f" Message: {payload.get('message')}")+ print(f" Status: {payload.get('message')}")+ if payload.get("url_guidance"):+ print(f" URL guidance: {payload.get('url_guidance')}")next_actions = payload.get("next_actions") or []if next_actions:print("")- print("Next:")+ print("Use it:")for action in next_actions:print(f" - {action}")+def _print_show_page_status_missing(session_id: str) -> None:+ print("Show Page: not created")+ print(" Path: none")+ print(" URL: none")+ print(" Visibility: none")+ print("")+ print("Use it:")+ print(f" - Create the workspace with: vibe show path --session-id {session_id}")+ print(" - Then edit index.html in the returned directory.")+ print(" - For more options, run: vibe show --help")++def _print_show_page_error(exc: Exception) -> None:code = getattr(exc, "code", "show_page_failed")payload = {@@ -3849,6 +3856,23 @@ def cmd_show_update(args):store.close()+def cmd_show(args):+ if args.show_command is None:+ args.show_help_parser.print_help()+ return 0+ if args.show_command == "path":+ return cmd_show_path(args)+ if args.show_command == "status":+ return cmd_show_status(args)+ if args.show_command == "update":+ return cmd_show_update(args)+ raise TaskCliError(+ "show command is required",+ code="invalid_arguments",+ help_command="vibe show --help",+ )++def cmd_doctor():result = _doctor()@@ -4054,8 +4078,8 @@ def build_parser():subparsers.add_parser("upgrade", help="Upgrade to latest version")remote_parser = subparsers.add_parser("remote",- help="Manage Vibe Cloud remote access",- description="Start a guided Vibe Cloud remote-access setup, or manage the remote-access tunnel.",+ help="Manage Avibe Cloud remote access",+ description="Start a guided Avibe Cloud remote-access setup, or manage the remote-access tunnel.",epilog=_remote_examples_text(),formatter_class=argparse.RawDescriptionHelpFormatter,error_help_command="vibe remote --help",@@ -4069,7 +4093,7 @@ def build_parser():remote_pair_parser = remote_subparsers.add_parser("pair",help="Pair directly when you already have a pairing key",- description="Redeem a Vibe Cloud pairing key, save remote-access config, and start the managed tunnel.",+ description="Redeem an Avibe Cloud pairing key, save remote-access config, and start the managed tunnel.",epilog=_remote_pair_examples_text(),formatter_class=argparse.RawDescriptionHelpFormatter,error_help_command="vibe remote pair --help",@@ -4078,12 +4102,12 @@ def build_parser():remote_pair_parser.add_argument("pairing_key",nargs="?",- help="One-time pairing key from the Vibe Cloud console. Omit to enter it securely.",+ help="One-time pairing key from the Avibe Cloud console. Omit to enter it securely.",)remote_pair_parser.add_argument("--backend-url",default="https://avibe.bot",- help="Vibe Cloud backend URL. Default: https://avibe.bot",+ help="Avibe Cloud backend URL. Default: https://avibe.bot",)remote_pair_parser.add_argument("--device-name",@@ -4099,7 +4123,7 @@ def build_parser():remote_status_parser = remote_subparsers.add_parser("status",help="Show remote-access status",- description="Show pairing, tunnel, and cloudflared status for Vibe Cloud remote access.",+ description="Show pairing, tunnel, and cloudflared status for Avibe Cloud remote access.",formatter_class=argparse.RawDescriptionHelpFormatter,error_help_command="vibe remote status --help",)@@ -4108,7 +4132,7 @@ def build_parser():remote_start_parser = remote_subparsers.add_parser("start",help="Start the remote-access tunnel",- description="Start the managed cloudflared tunnel for the saved Vibe Cloud pairing.",+ description="Start the managed cloudflared tunnel for the saved Avibe Cloud pairing.",formatter_class=argparse.RawDescriptionHelpFormatter,error_help_command="vibe remote start --help",)@@ -4260,8 +4284,9 @@ def build_parser():error_help_command="vibe show --help",error_hint="Run one of the show subcommands below. Start with: vibe show path --session-id <session-id>",)+ show_parser.set_defaults(show_help_parser=show_parser)show_subparsers = show_parser.add_subparsers(dest="show_command", metavar="{path,status,update}")- show_subparsers.required = True+ show_subparsers.required = Falseshow_path_parser = show_subparsers.add_parser("path",@@ -4791,13 +4816,11 @@ def main():if args.command == "screenshot":sys.exit(cmd_screenshot(args))if args.command == "show":- if args.show_command == "path":- sys.exit(cmd_show_path(args))- if args.show_command == "status":- sys.exit(cmd_show_status(args))- if args.show_command == "update":- sys.exit(cmd_show_update(args))- parser.error("show command is required")+ try:+ sys.exit(cmd_show(args))+ except Exception as exc:+ _print_task_error(exc, help_command="vibe show --help")+ sys.exit(1)if args.command == "version":sys.exit(cmd_version())if args.command == "check-update":diff --git a/vibe/remote_access.py b/vibe/remote_access.pyindex 1407db4a3..c292b5dd9 100644--- a/vibe/remote_access.py+++ b/vibe/remote_access.py@@ -1,4 +1,4 @@-"""Vibe Cloud remote-access runtime and auth helpers."""+"""Avibe Cloud remote-access runtime and auth helpers."""from __future__ import annotationsdiff --git a/vibe/runtime.py b/vibe/runtime.pyindex ab6551817..ec3c82fa7 100644--- a/vibe/runtime.py+++ b/vibe/runtime.py@@ -565,7 +565,7 @@ def resolve_localhost_family() -> str:def effective_ui_bind_host(config: V2Config, requested_host: str | None = None) -> str:"""Resolve the host the UI server should bind to.- When the Vibe Cloud tunnel is enabled, bind to a wildcard so the local+ When the Avibe Cloud tunnel is enabled, bind to a wildcard so the local``cloudflared`` origin (which dials ``127.0.0.1``/``[::1]``) can reach theUI no matter which interface IP the user typed into ``ui.setup_host``(loopback, Tailscale CGNAT, LAN). The host-trust middleware indiff --git a/vibe/ui_server.py b/vibe/ui_server.pyindex 8a391603a..b1e069be2 100644--- a/vibe/ui_server.py+++ b/vibe/ui_server.py@@ -735,7 +735,7 @@ def _is_setup_host_request(config: V2Config | None) -> bool:return Falseif not _is_private_peer():return False- # When the Vibe Cloud tunnel is on, the UI binds to a wildcard so the+ # When the Avibe Cloud tunnel is on, the UI binds to a wildcard so the# local cloudflared origin can reach setup_host regardless of which# interface it lives on. Wildcard means the kernel no longer drops# cross-interface traffic, so we have to re-enforce "peer shares the@@ -2556,6 +2556,7 @@ def _show_page_file_response(root: Path, asset_path: str):return response[email protected]("/show/<session_id>", defaults={"asset_path": ""})@app.route("/show/<session_id>/", defaults={"asset_path": ""})@app.route("/show/<session_id>/<path:asset_path>")def serve_private_show_page(session_id, asset_path):@@ -2575,6 +2576,7 @@ def serve_private_show_page(session_id, asset_path):store.close()[email protected]("/p/<share_id>", defaults={"asset_path": ""})@app.route("/p/<share_id>/", defaults={"asset_path": ""})@app.route("/p/<share_id>/<path:asset_path>")def serve_public_show_page(share_id, asset_path):