Skip to content

v0.5.6

Latest

Choose a tag to compare

@ZaynJarvis ZaynJarvis released this 24 Nov 04:16
831ad81

中文

主要更新

  • PostgreSQL 持久化覆盖 Account、Task/Work 和 Watch:account_store.provider、storage.task_store.provider、storage.watch_store.provider 均可设为 postgres,多进程和多节点部署可在不依赖 Redis 的情况下共享账户、用户、API Key、任务、工作记录与 Watch 状态。三个 Store 独立配置,也继续支持原有 File、SQLite、MySQL 等后端。#7514、#7552、#7568、#7968
  • QueueFS 任务顺序与恢复:后台消息新增按目标串行和按组固定处理归属的调度能力。External、Compile 和 Memory 任务在忙碌、重试、取消与进程恢复时保留原消息及顺序,SessionCommit 会等待已接受的记忆批次真正落稳后再确认队列消息。#7584、#7606、#7531
  • Compile 配置、执行与快照分离:Compile 现在以 compile_name 管理持久配置,每次执行使用独立任务 ID、冻结输入、增量基线和 Git 快照;复杂模式改为隔离的 Markdown 文件 worker,VikingBot 另增简单编译模式。配置、定时触发、运行、输出和回滚的职责更清楚。#7737、#7682、#7657
  • Privacy 安全执行外部命令:新增 ov privacy run,可在环境变量、env 文件或命令参数中解析 {{ov_privacy:...}} 引用,并在子进程标准输出和错误输出中重新遮蔽敏感值;解析失败时不会启动子进程。隐私检测也统一了匹配逻辑并减少误报。#7760、#7458
  • 检索与 MCP:MCP 检索工具支持标签过滤,关键词搜索开放高级参数,召回会用剩余上下文预算补齐摘要;Grep 达到结果上限时会明确告知调用方。#7808、#7967、#5872、#7938
  • 权限、共享与 Skill 治理:ls、tree、stat 返回当前调用者的有效 access,Agent 可在操作前判断 read/write/manage/denied;ACL 拒绝授权给资源账户之外的主体;Skill 增加所有者和变更历史。#7576、#8117、#7762
  • Gateway 会话持久化:Gateway 在每轮回复结束时保存会话,移除独立 capture worker;客户端在一轮中请求压缩前会先保存历史,启动会话时注入用户的 soul.md,失败会被限制并明确暴露,不再静默丢失上下文。#7897、#7575、#7924、#7786
  • Coding Agent 集成:新增 Antigravity App/CLI 和 Qoder CLI 适配,安装器支持 --harness antigravity;OpenCode v2 可加载内置 Skills 并并发注入上下文;OpenClaw 在 before_prompt_build 阶段召回以保留 prompt cache,并在 durable turn 中透传运行时上下文;DSH workspace 可用 enabled: false 完整关闭记忆。#7710、#7715、#7580、#7582、#6695、#7868、#7482
  • 解析与前端体验:Markdown/AnyDoc/PDF 解析改进了 frontmatter、URI 编码图片、相邻图片、多行链接、表格代码段与多行单元格。Studio、Console、FileBrowser、Wiki、VikingBot、Compile 与视频预览完成一轮集中更新,@openviking/react 发布 0.2.0。#7746、#7728、#7727、#7642、#7690、#7653、#7926

发布版本

主包 openviking==0.5.6、Python SDK openviking-sdk==0.1.21、独立 CLI 0.5.4、React 组件 @openviking/react@0.2.0。

pip install --upgrade 'openviking==0.5.6' 'openviking-sdk==0.1.21'
npm install -g @openviking/cli@0.5.4

升级与迁移

  1. Compile API 和数据模型有 breaking change:持久配置改用调用方提供、按创建者隔离的 compile_name;运行接口替代原 operation 接口;配置查询不再用 to;快照版本改为 Git commit ID,并用 before_snapshot 分页。直接传完整输入的旧 Compile 接口暂时保留,但会返回弃用提示。客户端和 SDK 调用方应迁移到“创建配置 → 发起运行 → 查询运行/输出”的新流程。#7737
  2. Compile 输出改为 Markdown 文件 worker:Map、Shuffle/Reduce、Finalize 只接受非空 UTF-8 Markdown 产物,worker 写入隔离目录;结构化 record/emit 结果、旧 compile entry module、resume 和部分产物 salvage 路径已移除。自定义编译 Skill 或依赖旧结构化输出的调用方需要改造。#7682
  3. 内容写入快照改为显式开启:普通 content write 不再默认创建快照,需要传 use_snapshot=true。批写支持 resolve_conflicts,单写和 SDK 新增 defer_processing;延迟模式会先持久化正文并返回已完成 Task,不派发 Semantic/Embedding 队列,且不能同时实际更新 tags/ACL 或解决冲突。#7737、#7757
  4. PostgreSQL Store 需要先建表,不会自动迁移数据:启用 account_store.provider: postgres、storage.task_store.provider: postgres 或 storage.watch_store.provider: postgres 前,按发行包中的 SQL 手工建表并授予运行账号权限。服务启动不会执行 DDL;从 File/MySQL/SQLite 切换也不会搬迁既有账户、任务或 Watch。三个 Store 可独立切换。#7514、#7552、#7568
  5. 已有 PostgreSQL Watch 表需要补索引:旧表若没有账户/用户分页索引,应按 001_watch_tasks_postgres.sql 在事务外用 CREATE INDEX CONCURRENTLY 补齐。启动时会校验字段类型、空值、排序规则、主键和索引;结构不兼容会拒绝启动,缺失或异常索引会告警。#7568
  6. QueueFS Redis 内部格式发生变化:serial_key / group_key 会随消息持久化,Rust 原生扩展和 Python 服务端必须同步升级。普通任务提交接口保持兼容,但不要长期混跑新旧 QueueFS 实现;升级前应让旧 worker 停止领取消息,再整体替换服务和扩展。#7584
  7. ACL 只接受同一资源账户内的主体:给其他 account 的 user/group 授权现在返回参数错误;原有跨账户 ACL 如果存在,不再能通过写接口继续维护。跨账户共享请复制资源或通过上层产品能力完成。#8117
  8. ls / tree / stat 响应新增有效权限:目录列表会保留 denied 占位,access 表示当前身份最终得到的权限;无权 stat 仍返回 403。自行定义这些响应模型或做严格字段校验的客户端需要接受新字段。#7576
  9. Gateway 会话保存时机改变:回复完成后同步保存每一轮,旧 capture worker 已移除;压缩请求会在当前轮内先保存历史。依赖 capture worker 时序、内部队列或旧日志模式的部署需要调整监控与排障规则。#7897、#7575
  10. Privacy 命令的边界:ov privacy run 只接受 owner-bound {{ov_privacy:...}} 引用。默认允许在子进程 argv 中展开引用;不希望敏感值进入 argv 的环境应优先用 --env / --env-file,或设置 OPENVIKING_PRIVACY_RUN_STRICT=1 禁止参数引用。遮蔽只覆盖子进程 stdout/stderr,不覆盖其写入文件或网络请求。#7760
  11. DSH workspace 的 enabled: false 现在真正生效:该 workspace 的 recall、capture、commit、profile 和 session 初始化都会跳过。以前配置了该字段但仍产生记忆的项目,升级后行为会改变;进程级 OPENVIKING_MEMORY_ENABLED=0 仍优先。#7482
  12. 错误分类更严格:无效资源文件现在返回 400,并保留真正服务端错误;空消息 part 会在创建 Session 前被拒绝;VLM 内容过滤会归类为 safety error。只按旧 HTTP 状态码重试的客户端应重新核对规则。#7965、#7640、#8034

修复

  • Compile:修复取消状态未持久化、提交重试耗尽后不收敛、运行时 404 未回滚、重放取消任务、目标别名、Wiki 冲突、无有效输出、草稿丢失、回滚锁重试和本地轮询间隔等问题。#8166、#8097、#8077、#8085、#7137、#8074、#7982、#7411、#7811、#7782
  • 存储与任务:修复增量更新和向量记录不一致、父目录 freshness 竞争导致删除误报、重复 mkdir 加锁、Redis 集群故障后的 client 恢复、embedding upsert 未返回 ID 却继续成功,以及任务游标跨 worker 不可移植。#7954、#7853、#7842、#8030、#7616、#7615
  • Memory 与 Session:同一会话的 URI 冲突会合并并保留部分成功写入;更新不会清空 schema 中省略的字段;CommonMark 代码不再被自动链接破坏;显式 Session 创建改为串行;Claude Code Stop 会补采 transcript 中缺失的最终回答。#7801、#7318、#7094、#6044、#7583
  • Gateway 与模型:修复流式模型回复仍在到达时被截断、插件标记在代码块中被误识别、LiteLLM reasoning effort 未继承、MiniMax 业务错误未走统一错误流,以及内容过滤未归类为安全错误。#7764、#7571、#7703、#6946、#8034
  • Watch 与导入:一个导入 Session 失败不会让 Watch 循环退出;Web 导入会清理完整临时目录;ovpack 在落盘前校验父目录;Git source marker 替换保持一致。#7566、#7610、#7612、#7589
  • 解析:保留非 YAML frontmatter 的 Markdown、相邻章节图片、URI 编码图片、多行链接、AnyDoc 表格中的管道符和 PDF 表格多行单元格。#7746、#7727、#7728、#7642、#7690、#7653
  • CLI 与 SDK:CLI HTTP client 支持 SOCKS5 proxy;Python SDK 会拒绝失败的 snapshot blob 响应;Memory 插件退出时会等待最后一次 commit 的明确边界。#7861、#7451、#7464
  • 性能:cp / mv 并行执行并复用目录扫描和批量向量读取;作用域向量读取会裁剪冗余可见路径;认证复用参数化 SQL;默认 executor 线程上限提高到 64。#7914、#8172、#8137、#7805

其他更新

本版本还统一了服务端、存储、解析、Gateway、Session、Memory 和 Compile 日志;为 snapshot log 增加 offset 分页;为 runtime cache 增加命名 handle;完善 Console、FileBrowser、VikingBot、Wiki、Compile、HITL 表单、视频预览、AgentConnect 和深链加载体验;并重构 ragfs Python binding、Linux wheel 构建与 CodeQL 路由。#7780、#7848、#7920、#7817、#7777

首次贡献者

English

Highlights

  • PostgreSQL persistence for Account, Task/Work and Watch: account_store.provider, storage.task_store.provider and storage.watch_store.provider now accept postgres, allowing multi-process and multi-node deployments to share accounts, users, API keys, tasks, work records and Watch state without Redis. The stores are configured independently and retain their existing File, SQLite and MySQL options. #7514, #7552, #7568, #7968
  • QueueFS ordering and recovery: Background messages can be serialized by destination or pinned to a processing group. External, Compile and Memory work preserves the original message and order across busy retries, cancellation and process recovery, while SessionCommit waits for accepted memory batches to settle before acknowledging queue deliveries. #7584, #7606, #7531
  • Separated Compile configuration, execution and snapshots: Persistent configurations use creator-scoped compile_name values; executions have independent task IDs, frozen inputs, incremental baselines and Git snapshots. Complex Compile now uses isolated Markdown file workers, and VikingBot adds a simple Compile mode. #7737, #7682, #7657
  • Privacy-aware command execution: ov privacy run resolves owner-bound {{ov_privacy:...}} references from environment variables, env files or arguments, masks matching values in child stdout/stderr, and fails before spawning when resolution fails. Privacy detection was also unified to reduce false positives. #7760, #7458
  • Retrieval and MCP: MCP retrieval supports tag filters, keyword search exposes advanced arguments, recall backfills summaries from spare context budget, and capped Grep results are reported explicitly. #7808, #7967, #5872, #7938
  • Permissions, sharing and Skill governance: ls, tree and stat return the caller's effective access; ACL writes reject principals outside the resource account; Skills track ownership and change history. #7576, #8117, #7762
  • Gateway session durability: Gateway saves each turn when its reply completes, saves history before in-turn compaction, injects the user's soul.md when opening a session, and makes bounded failures visible instead of silently losing context. #7897, #7575, #7924, #7786
  • Coding-agent integrations: Added Antigravity App/CLI and Qoder CLI adapters, OpenCode v2 bundled Skills, prompt-cache-friendly OpenClaw recall, durable OpenClaw runtime context and a DSH workspace-level enabled: false switch. #7710, #7715, #7580, #7582, #6695, #7868, #7482
  • Parsing and UI: Improved Markdown/AnyDoc/PDF frontmatter, encoded image URIs, adjacent images, multiline links, table code spans and multiline cells. Studio, Console, FileBrowser, Wiki, VikingBot, Compile and video preview received a broad UX update, and @openviking/react 0.2.0 was published. #7746, #7728, #7727, #7642, #7690, #7653, #7926

Published versions

Main package openviking==0.5.6, Python SDK openviking-sdk==0.1.21, standalone CLI 0.5.4, and React components @openviking/react@0.2.0.

pip install --upgrade 'openviking==0.5.6' 'openviking-sdk==0.1.21'
npm install -g @openviking/cli@0.5.4

Upgrade and migration

  1. Compile API and data-model changes are breaking. Persistent configurations use creator-scoped compile_name; run endpoints replace operation endpoints; configuration queries no longer use to; snapshot versions are Git commit IDs paginated with before_snapshot. The direct full-input API remains temporarily available with deprecation headers. Migrate clients to create configuration, start run, then query run/output. #7737
  2. Compile output is produced by isolated Markdown workers. Map, optional Shuffle/Reduce and Finalize accept non-empty UTF-8 Markdown deliverables. Structured record/emit results, the old compile entry module, resume and partial-output salvage paths were removed. Custom Compile Skills that rely on the old structured contract must migrate. #7682
  3. Content-write snapshots are opt-in. Pass use_snapshot=true when a write should create a snapshot. Batch writes add resolve_conflicts, while single writes and SDKs add defer_processing; deferred writes persist content and a completed Task without queuing Semantic/Embedding work, and cannot also mutate tags/ACL or resolve conflicts. #7737, #7757
  4. PostgreSQL stores require provisioning and do not migrate data. Create the tables from the packaged SQL before enabling the Account, Task/Work or Watch PostgreSQL provider. Startup does not run DDL, and switching from File/MySQL/SQLite does not migrate existing data. #7514, #7552, #7568
  5. Existing PostgreSQL Watch tables need the pagination index. Apply the definitions from 001_watch_tasks_postgres.sql, using CREATE INDEX CONCURRENTLY outside a transaction where appropriate. Startup validates schema shape and rejects incompatible structures; missing or invalid indexes produce warnings. #7568
  6. QueueFS's persisted Redis format changed. serial_key and group_key are persisted with messages, so the Rust extension and Python server must be upgraded together. Avoid a long mixed-version rollout; stop old workers from claiming messages before replacing the service and native extension. #7584
  7. ACL principals must belong to the resource account. Cross-account user/group grants now fail validation. Use resource copies or a product-level sharing flow for cross-account sharing. #8117
  8. ls, tree and stat include effective access. Directory listings preserve denied placeholders, and access reflects the caller's final permission. Strict response-model clients must accept the new field. #7576
  9. Gateway saves sessions at a different point. Each turn is saved when the reply finishes, and the old capture worker is gone; compaction saves the current history first. Deployments that monitor capture-worker internals or old queue/log timing should update their rules. #7897, #7575
  10. ov privacy run has explicit exposure boundaries. Prefer --env or --env-file; set OPENVIKING_PRIVACY_RUN_STRICT=1 to reject references in argv. Masking covers only child stdout/stderr, not files or network payloads written by the child. #7760
  11. DSH workspace enabled: false now disables all memory activity. Recall, capture, commit, profile and session initialization are skipped. OPENVIKING_MEMORY_ENABLED=0 still takes precedence. #7482
  12. Error classification is stricter. Invalid resource files return 400, invalid message parts fail before Session creation, and VLM content filtering is classified as a safety error. Clients should review retry policies that depend only on previous HTTP status codes. #7965, #7640, #8034

Fixes

  • Compile: fixed cancellation persistence, exhausted submission retries, runtime-404 rollback, replayed cancellations, destination aliases, Wiki conflicts, rejected empty output, draft preservation, rollback lock retries and local polling intervals. #8166, #8097, #8077, #8085, #7137, #8074, #7982, #7411, #7811, #7782
  • Storage and tasks: fixed incremental-update/vector-record disagreement, delete freshness contention, duplicate mkdir locking, Redis-cluster recovery, missing vector-upsert IDs and task-list cursors across workers. #7954, #7853, #7842, #8030, #7616, #7615
  • Memory and Session: reconciled same-session URI conflicts while preserving partial writes, retained omitted schema fields, protected CommonMark code from generated links, serialized explicit Session creation and captured the final Claude Code answer at Stop. #7801, #7318, #7094, #6044, #7583
  • Gateway and models: fixed truncated streaming replies, false plugin-block detection, missing LiteLLM reasoning effort, MiniMax business-error routing and content-filter safety classification. #7764, #7571, #7703, #6946, #8034
  • Watch and import: one failed import Session no longer stops the Watch loop; web imports clean the entire temporary root; ovpack validates its parent before materializing uploads; Git source markers are replaced consistently. #7566, #7610, #7612, #7589
  • Parsing: preserved non-YAML Markdown frontmatter, images across sibling sections, encoded image destinations, multiline links, AnyDoc table pipes and multiline PDF table cells. #7746, #7727, #7728, #7642, #7690, #7653
  • CLI and SDKs: added SOCKS5 support to the CLI HTTP client, rejected failed snapshot-blob responses in the Python SDK, and bounded the final plugin commit on exit. #7861, #7451, #7464
  • Performance: parallelized cp/mv, pruned redundant visibility paths, reused parameterized auth SQL and raised the default executor thread cap to 64. #7914, #8172, #8137, #7805

Other updates

This release also aligns logging across server, storage, parsing, Gateway, Session, Memory and Compile; adds offset pagination to snapshot logs and named runtime-cache handles; refreshes Console, FileBrowser, VikingBot, Wiki, Compile, HITL forms, video previews, AgentConnect and deep-link loading; and refactors the ragfs Python binding, Linux wheel builds and CodeQL routing. #7780, #7848, #7920, #7817, #7777

Known issue

  • Concurrent add_resource operations may rarely fail PathLock lease validation. Retrying recovers the operation; a follow-up fix is planned.

First-time contributors

完整变更 / Full changelog