Stavecho11 downloadsSync ACTRA daily logs, notes and recordings into Obsidian, and upload explicitly authorized Markdown folders.
Actra connects an ACTRA account to a local vault. It downloads ACTRA daily logs, notes, and recording summaries as Markdown, and can upload Markdown only from folders the user explicitly authorizes. An ACTRA account and a network connection to the configured ACTRA service are required; the default service is https://api.stavecho.com.
OAuth tokens are stored in Obsidian SecretStorage. The plugin does not include advertising, analytics, or telemetry SDKs. See Privacy for the data sent to ACTRA, retention and deletion details, and contact information.
Install Actra from the Obsidian community plugin directory, open its settings, and connect your ACTRA account in the browser. The plugin syncs ACTRA daily logs, notes, and recordings into the vault. To upload local Markdown, select and authorize each folder separately. Automatic uploads run approximately every 24 hours while Obsidian is open; manual sync remains available. The plugin reads Markdown only inside authorized folders and keeps ACTRA-managed files out of the upload.
ACTRA 是一个 Obsidian 社区插件,用于在用户打开 Obsidian 后,将 ACTRA 的每日总结、录音总结与转写、灵感、待办和运动数据主动拉取到当前 Vault。插件也提供逐目录授权的 ACTRA 知识索引能力。
首次使用请看图文用户指南。需要单文件分享时,可下载图片已用 Base64 内嵌的 Markdown 版。
1.0.3 已实现:
dailylog note recording upload 权限、Obsidian SecretStorage 双 Token 存储与自动刷新;https://api.stavecho.com;/service/v1/client/dailylog、note、recording 分页接口;/service/v1/client/upload 上传至 ACTRA,默认每 24 小时自动检查一次并支持独立“立即上传”;actra_id 幂等写入;actra-synced 标签,upload 会在读取正文前过滤这些文件,避免数据回流;音频附件下载和任务状态回写属于后续阶段。官方上传接口当前没有远端删除能力;移除目录会立即停止对该目录的读取与上传,但不会删除此前已上传到 ACTRA 的副本。
正式连接使用:
https://api.stavecho.com。插件会自动区分 /auth OAuth 服务和 /service 数据服务;client_id:obdisian-ngefXHKjmLer8GQWKhto;obsidian://actra-connect-oauth;dailylog note recording upload,按最终授权 scope 调用对应 /service/v1/client/* 接口。用户从插件设置页点击“登录 ACTRA 并授权”后,会在浏览器完成邮箱验证码登录和权限确认,再回到 Obsidian。Access Token 和 Refresh Token 均只保存在 Obsidian SecretStorage,插件会在 Access Token 到期前自动刷新。服务端仍需提供已登记回调地址的 Obsidian OAuth Client ID。详细协议和字段映射见 docs/ACTRA-OAUTH.md。
https://api.stavecho.com。插件已预填正式 OAuth Client ID,连接默认服务时无需修改。dailylog、note、recording 将 ACTRA 数据拉取到 Obsidian,upload 允许插件上传用户另行授权的本地 Markdown。obsidian://actra-connect-oauth 返回插件。插件校验一次性 state,用授权码换取 Token,并在 Vault 中创建连接测试文件。当前版本支持 Obsidian 桌面端、iOS 和 Android,要求 Obsidian 1.13.0 或更高版本。移动端通过系统浏览器完成 ACTRA OAuth 授权,并由 obsidian://actra-connect-oauth 返回 Obsidian。
移动系统可能暂停后台应用,因此每 24 小时自动上传只会在 Obsidian 处于运行状态时触发。重新打开 Obsidian 后,插件会检查是否已到执行时间;“立即拉取”和“立即上传”在移动端始终可以独立使用。
插件通过 Obsidian 社区插件审核后,可在“设置 → 第三方插件 → 浏览”中搜索“Actra”并安装。
pnpm install
pnpm run check
桌面端手动安装时,把以下文件复制到 Vault 的 .obsidian/plugins/actra-connect/:
main.jsmanifest.jsonstyles.css然后在 Obsidian 的“设置 → 第三方插件”中启用 ACTRA。
更完整的验收步骤见 docs/LOCAL-TEST.md。
如需自行实现 ACTRA 本地 Mock 服务,接口路径、请求/响应字段、六类同步数据示例和验收清单见 docs/ACTRA-LOCAL-API.md。
如需由 ACTRA 服务端提供真实每日总结、对话、录音转写、AI 总结、运动和待办数据,首轮联调所需的最小接口、真实数据映射和交付清单见 docs/ACTRA-REAL-DATA-API-REQUEST.md。
SecretStorage,不会写入插件 data.json。readRoots 才可读取。actra-synced,不会通过 upload 传回 ACTRA。完整说明见 隐私政策。
pnpm run review:mobile 会检查移动端清单、源码和生产构建包,并阻止 Node.js、Electron、桌面文件适配器和不兼容的正则后行断言进入移动版本。pnpm run review:security 会阻止常见的 Obsidian 本地文件删除 API 进入 src/。路径在每次操作前都会规范化,并拒绝绝对路径、..、隐藏目录、非 Markdown 文件以及授权根目录外的路径。
正式发布包只包含 main.js、manifest.json 和 styles.css;GitHub Actions 为这些文件生成构建来源证明。版本兼容关系记录在 versions.json。
本项目采用 MIT License。