📖 《Gemini-Voyager 从入门到精通》系列连载
Gemini-Voyager 采用分层架构设计。
┌─────────────────────────────────────────────────────────────────┐
│ Gemini-Voyager 整体架构 │
├─────────────────────────────────────────────────────────────────┤
│ │
│ ┌───────────────────────────────────────────────────────────┐ │
│ │ 用户界面层 (UI Layer) │ │
│ │ ┌──────────┐ ┌──────────┐ ┌──────────────────────┐ │ │
│ │ │ Popup │ │ Options │ │ 注入组件 │ │ │
│ │ └──────────┘ └──────────┘ └──────────────────────┘ │ │
│ └───────────────────────────────────────────────────────────┘ │
│ │ │
│ ┌───────────────────────────────────────────────────────────┐ │
│ │ 功能模块层 (Feature Modules) │ │
│ │ ┌────────┐ ┌────────┐ ┌────────┐ ┌────────┐ ┌────────┐ │ │
│ │ │folder │ │prompts │ │timeline│ │ export │ │ other │ │ │
│ │ └────────┘ └────────┘ └────────┘ └────────┘ └────────┘ │ │
│ └───────────────────────────────────────────────────────────┘ │
│ │ │
│ ┌───────────────────────────────────────────────────────────┐ │
│ │ 核心服务层 (Core Services) │ │
│ │ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │ │
│ │ │Storage │ │Google │ │ Data │ │Keyboard │ │ │
│ │ │Service │ │DriveSync │ │Backup │ │Shortcut │ │ │
│ │ └──────────┘ └──────────┘ └──────────┘ └──────────┘ │ │
│ └───────────────────────────────────────────────────────────┘ │
│ │ │
│ ┌───────────────────────────────────────────────────────────┐ │
│ │ 基础设施层 (Infrastructure) │ │
│ └───────────────────────────────────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────┘
Gemini-Voyager 使用 Chrome 扩展清单规范 V3 开发。
权限模型
┌─────────────────────────────────────────────────────────────────┐
│ Manifest V3 特性 │
├─────────────────────────────────────────────────────────────────┤
│ │
│ ┌─────────────────────────────────────────────────────────┐ │
│ │ 权限模型 │ │
│ │ • 必须权限: 在 manifest.json 中声明 │ │
│ │ • 可选权限: 运行时动态请求 │ │
│ └─────────────────────────────────────────────────────────┘ │
│ │
│ ┌─────────────────────────────────────────────────────────┐ │
│ │ 后台脚本 │ │
│ │ • Service Workers (事件驱动) │ │
│ │ • 更低的内存占用 │ │
│ └─────────────────────────────────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────┘
⏳ 下一章将介绍核心服务层
还没有人回复