diff --git a/CHANGELOG.md b/CHANGELOG.md index bfa8339cfe3..7a0dd0f4be8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,52 @@ All notable changes to this project will be documented in this file. +## [0.9.0] - Unreleased + +Changes since v0.8.3 through upstream main `256a3f296` (2026-10-27; 301 commits). [Website release notes](./website-docs/07-releases/v0.9.0.md) · [Full comparison](https://github.com/Tencent/WeKnora/compare/v0.8.3...256a3f2966866337f7dc3c5fcc10037f2ae18d52). + +### New Features + +- **WeKnora assistant**: a built-in workspace assistant with a launcher beside the logo and a side panel, page context, separate private history, bundled-documentation search for release, feature and configuration questions, and management operations performed as the current user within their permissions. It can create agents, schedule tasks, maintain knowledge bases, documents, FAQ, models, MCP services and skills, perform diagnostics and open relevant pages (#4302, #4303, #4314, #4342, #4344, #4375, #4427, #4429). +- **Multi-agent collaboration**: durable child tasks, independent conversations, live progress and task views; use temporary workers or an existing reasoning-agent template without expanding resource access (#4438). +- **Automations**: one-off and recurring schedules, timezone-aware validation, assistant execution, optional model override, persistent or per-run conversations, overlap/misfire policies, history, cancellation and in-app notifications (#4492, #4506, #4514, #4522, #4534, #4551). +- **Permissions and approvals**: read-only, confirm-before-change and automatic-write access levels; persistent human-in-the-loop prompts, suspended runs, scoped grants and automation approval management (#4250, #4490). +- **Sandbox allocation**: opt-in per-user machine reuse with session work directories, ownership-aware cleanup, idle retention and explicit skill rollout behavior (#4507, #4509, #4510, #4533, #4729). +- **Background work**: managed asynchronous shell execution, incremental output, wait/cancel tools and session-scoped task APIs (#4579, #4580). +- **Image pipelines**: configurable manual and smart OCR pipelines, pipeline-specific parameters and validation, plus optional OCR preprocessing (#3746, #4381). +- **Datasource integrations**: deeper Feishu/Lark block parsing, folder and embedded-object handling; optional DingTalk folder preservation; Confluence Server/Data Center PAT support (#3497, #4422, #4549). +- **Retrieval and browsing**: RRF settings, a standalone JSON knowledge-graph search API, document-scoped MCP search and FAQ list expansion controls (#4300, #4395, #4463, #4566). + +### Improvements + +- Improve assistant operation discovery, authorization, page links, task analysis, configuration guidance and interaction feedback. +- Support optional HTML main-content extraction and Excel percentage display text; preserve CSV cells and JSON literals, improve file parser fidelity and bound large-file processing (#4424, #4423, #4435, #4436). +- Reuse resource handles for identical image bytes; improve model image resolution, scanned-page OCR for Wiki and image-processing traces (#4419, #4405, #4430). +- Improve model streaming compatibility, reasoning/refusal handling, provider response bounds and SDK/CLI interoperability. +- Improve Lite host workspace handling and approval for deletions or broader sandbox execution (#4076). +- Add a model leaderboard and update website navigation, release assets, product documentation and API references. + +### Bug Fixes + +- Fix retrieval error propagation, vector-dimension isolation, reranking passage preservation and shared-knowledge model resolution. +- Fix datasource pagination and repeated-cursor handling, failed attachment downloads, sync-log retention, selected-scope validation and deletion reconciliation. +- Fix ambiguous MCP call retries, SSE connection/request lifetimes, stale OAuth dialogs and tool-result compatibility. +- Fix failed quick-answer persistence, conversation export ordering, source-citation alignment and Unicode matching, attachment and task timeline behavior. +- Bound web-search/provider/IM request bodies and archive expansion; avoid logging token fragments or bound slow-query parameters; strengthen resource scope checks. +- Improve IM mention targeting, Wiki maintenance, parser failure/cancellation handling, deployment configuration and frontend status polling. + +### Upgrade Notes + +- Back up the database, file storage, deployment settings and required sandbox files. Apply PostgreSQL migrations **000119–000133** or SQLite **000037–000050**. +- Existing Feishu/Lark sources are scheduled for resync. Review parsing mode and downstream workload; new sources default to blocks parsing while explicit export choices remain supported. +- Migration 000125 (SQLite 000042) removes eligible empty image-derived chunks, not source documents or files. +- Per-user sandbox reuse remains gated by `WEKNORA_SANDBOX_USER_ALLOCATION=enabled` and requires Redis. Upgrade every replica before enabling it; inspect active shared assignments before any downgrade. +- Review assistant and custom-agent access ceilings, MCP risk policies and automation grants. Ordinary writes and destructive actions have distinct approval rules. +- Prefer `WEKNORA_LOG_FORMAT`; legacy `LOG_FORMAT` is used only when the new variable is unset. Nonempty templates must include `%msg`. +- Review new-workspace quota defaults, OCR preprocessing limits and optional HTML/Excel parser switches. Existing documents are not automatically reparsed when these switches change. +- MinerU Cloud defaults to a 30-minute budget per batch/shard; Agent web fetch uses one shared 3-minute budget. Check outer timeouts as well. +- Set `WEKNORA_VERSION=0.9.0` only after the release images are available, pull images explicitly and verify migrations, UI version, parsing, retrieval, approvals and scheduled runs. See the [upgrade guide](./website-docs/07-releases/v0.9.0.md#upgrade-notes). + ## [0.8.3] - 2026-10-14 Changes since v0.8.2, through upstream main `31c605568` (2026-10-13; 282 commits). The plugin-system series was reverted and is not part of this release. [Website release notes](./website-docs/07-releases/v0.8.3.md) · [Full commit comparison](https://github.com/Tencent/WeKnora/compare/v0.8.2...31c6055687d33f9ad7a92cf453a264ce13a1700d). diff --git a/README.md b/README.md index 051004762cd..a57f4d14e4e 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@

Website Docs - Release + Release License Stars
@@ -42,9 +42,9 @@ [WeKnora](https://weknora.weixin.qq.com) is an open-source, LLM-powered knowledge framework for enterprise document understanding, semantic retrieval and reasoning. It brings a team's documents together so they can be searched, reasoned over and kept up to date. -https://github.com/user-attachments/assets/5722b10d-d04d-49ed-a6cc-635a8c77d91f +https://github.com/user-attachments/assets/de0e490a-e738-405e-bb3a-64b63edd7278 -

1:52 · 1080p · No narration, English on-screen text

+

v0.9.0 · 2:45 · 1080p60 · English narration and subtitles

Use RAG to look things up, the agent for multi-step tasks, and the wiki to organize knowledge. All three work on the same knowledge bases. @@ -138,13 +138,13 @@ docker compose down # Stop services If you already have WeKnora running and downloaded a newer release: ```bash -# Set WEKNORA_VERSION in .env to the target release (e.g. 0.8.3), or keep latest +# Set WEKNORA_VERSION in .env to the target release (e.g. 0.9.0), or keep latest docker compose pull # Pull images matching WEKNORA_VERSION docker compose up -d # Recreate containers with new images ``` > [!NOTE] -> `docker compose up -d` alone reuses locally cached images and may leave the UI version out of sync with the release you downloaded. Read the [upgrade notes](https://weknora.weixin.qq.com/docs/07-releases/v0.8.3#upgrade-notes) before upgrading. Deployments older than v0.8.2 should also read the [v0.8.2 notes](https://weknora.weixin.qq.com/docs/07-releases/v0.8.2#upgrade-notes). +> `docker compose up -d` alone reuses locally cached images and may leave the UI version out of sync with the release you downloaded. Read the [upgrade notes](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#upgrade-notes) before upgrading. Deployments older than v0.8.2 should also read the [v0.8.2 notes](https://weknora.weixin.qq.com/docs/07-releases/v0.8.2#upgrade-notes). ### Other ways to deploy @@ -166,6 +166,16 @@ All options, hardware requirements and deployment topologies: [Installation guid ## What's New +### v0.9.0 · Unreleased · [release notes](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0) + +- **[WeKnora assistant](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#assistant)**: Ask about WeKnora releases, features and configuration, then work from the current page: create agents, schedule tasks and manage knowledge, acting as you within your permissions. +- **[Multi-agent collaboration](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#collaboration)**: Delegate independent subtasks, follow progress and bring the results together. +- **[Automations](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#automations)**: Run one-off or recurring tasks with execution history, results and approval notifications. +- **[Execution permissions](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#permissions)**: Read-only, confirm-before-change and automatic-write modes, with scoped session and automation grants. +- **[Sandboxes and background work](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#sandbox)**: Optional per-user sandbox reuse, managed background shell jobs and skill rollout controls. +- **[Parsing, sync and retrieval](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#knowledge)**: Configurable image pipelines, OCR preprocessing, deeper Feishu/Lark sync, Confluence PAT and retrieval improvements. +- **[Upgrade notes](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#upgrade-notes)**: Review database migrations, Feishu resync, the sandbox allocation gate and configuration changes. + ### v0.8.3 · 2026-10-14 · [release notes](https://weknora.weixin.qq.com/docs/07-releases/v0.8.3) - **[Image gallery](https://weknora.weixin.qq.com/docs/07-releases/v0.8.3#images)**: browse document images and filter by source, caption, OCR and image attributes. @@ -374,7 +384,7 @@ The full product documentation lives at **[weknora.weixin.qq.com/docs](https://w | [Configuration](https://weknora.weixin.qq.com/docs/01-getting-started/04-configuration) | Environment variables and models | | [Troubleshooting FAQ](https://weknora.weixin.qq.com/docs/01-getting-started/05-troubleshooting) | Common problems and fixes | | [API reference](https://weknora.weixin.qq.com/docs/04-api/01-api-overview) | REST API overview | -| [Release notes](https://weknora.weixin.qq.com/docs/07-releases/v0.8.3) | What changed in each release | +| [Release notes](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0) | What changed in each release | ## Development diff --git a/README_CN.md b/README_CN.md index 012935a1384..acac8f5d4e3 100644 --- a/README_CN.md +++ b/README_CN.md @@ -10,7 +10,7 @@

官方网站 产品文档 - 版本 + 版本 许可证 Stars
@@ -42,9 +42,9 @@ **[WeKnora(维娜拉)](https://weknora.weixin.qq.com)** 是一款开源的、基于大语言模型(LLM)的知识管理框架,面向企业级文档理解、语义检索与智能推理场景。它把团队分散的文档汇集起来,用于检索、推理,并随资料更新持续维护。 -https://github.com/user-attachments/assets/5722b10d-d04d-49ed-a6cc-635a8c77d91f +https://github.com/user-attachments/assets/de0e490a-e738-405e-bb3a-64b63edd7278 -

1 分 52 秒 · 1080p · 无旁白,英文画面文字

+

v0.9.0 · 2 分 45 秒 · 1080p60 · 英文配音与字幕

查询资料用 RAG,处理多步任务用 Agent,整理知识用 Wiki。三种能力共享同一知识库。 @@ -138,13 +138,13 @@ docker compose down # 停止服务 若已有部署并下载了更新的 release: ```bash -# 在 .env 中将 WEKNORA_VERSION 设为目标版本(如 0.8.3),或保持 latest +# 在 .env 中将 WEKNORA_VERSION 设为目标版本(如 0.9.0),或保持 latest docker compose pull # 拉取与 WEKNORA_VERSION 匹配的镜像 docker compose up -d # 用新镜像重建容器 ``` > [!NOTE] -> 仅执行 `docker compose up -d` 会复用本地缓存镜像,可能导致 Web UI 显示版本与下载的 release 不一致。升级前请先阅读[升级须知](https://weknora.weixin.qq.com/docs/07-releases/v0.8.3#upgrade-notes)。 +> 仅执行 `docker compose up -d` 会复用本地缓存镜像,可能导致 Web UI 显示版本与下载的 release 不一致。升级前请先阅读[升级须知](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#upgrade-notes)。 ### 其他部署方式 @@ -166,6 +166,16 @@ docker compose up -d # 用新镜像重建容器 ## 最新更新 +### v0.9.0 · 待发布 · [版本说明](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0) + +- **[WeKnora 助手](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#assistant)**: 解答 WeKnora 的版本、功能和配置问题,结合当前页面,以你的身份创建智能体、设置定时任务、整理知识和调整配置。 +- **[多智能体协作](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#collaboration)**: 将复杂任务分给多个智能体,追踪子任务进度并汇总结果。 +- **[自动化](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#automations)**: 支持一次性与周期计划,查看执行记录、结果和待审批通知。 +- **[执行权限与审批](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#permissions)**: 只读、修改前确认、自动执行三级权限,支持有范围的会话授权与自动化授权。 +- **[沙箱与后台任务](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#sandbox)**: 按用户复用沙箱的可选部署方式、后台 Shell 与技能更新策略。 +- **[解析、同步与检索](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#knowledge)**: 可配置图像管线、OCR 预处理、飞书 / Lark 深度同步、Confluence PAT 与检索改进。 +- **[升级须知](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#upgrade-notes)**: 核对数据库迁移、飞书重同步、沙箱复用开关和新的配置项。 + ### v0.8.3 · 2026-10-14 · [版本说明](https://weknora.weixin.qq.com/docs/07-releases/v0.8.3) - **[画廊](https://weknora.weixin.qq.com/docs/07-releases/v0.8.3#images)**:集中浏览文档图片,按来源、描述、OCR 与图片属性筛选,查看原图和出处。 @@ -374,7 +384,7 @@ weknora chat "总结一下设计文档" | [配置说明](https://weknora.weixin.qq.com/docs/01-getting-started/04-configuration) | 环境变量与模型配置 | | [常见问题排查](https://weknora.weixin.qq.com/docs/01-getting-started/05-troubleshooting) | 常见问题与解决办法 | | [API 文档](https://weknora.weixin.qq.com/docs/04-api/01-api-overview) | REST API 总览 | -| [版本说明](https://weknora.weixin.qq.com/docs/07-releases/v0.8.3) | 各版本变更详解 | +| [版本说明](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0) | 各版本变更详解 | ## 开发指南 diff --git a/README_JA.md b/README_JA.md index 8c2c9716010..f197556c120 100644 --- a/README_JA.md +++ b/README_JA.md @@ -10,7 +10,7 @@

公式サイト ドキュメント - リリース + リリース ライセンス Stars
@@ -42,9 +42,9 @@ **[WeKnora(ウィーノラ)](https://weknora.weixin.qq.com)** は、大規模言語モデル(LLM)をベースとしたオープンソースのナレッジフレームワークで、エンタープライズ向けの文書理解、セマンティック検索、推論に対応します。チームに散在する文書を集約し、検索・推論に使えるようにし、資料の更新に合わせて維持します。 -https://github.com/user-attachments/assets/5722b10d-d04d-49ed-a6cc-635a8c77d91f +https://github.com/user-attachments/assets/de0e490a-e738-405e-bb3a-64b63edd7278 -

1 分 52 秒 · 1080p · ナレーションなし・英語の画面テキスト

+

v0.9.0 · 2 分 45 秒 · 1080p60 · 英語ナレーション・字幕付き

資料の検索には RAG、マルチステップのタスクには Agent、ナレッジの整理には Wiki。3 つの機能は同じナレッジベースを共有します。 @@ -138,13 +138,13 @@ docker compose down # サービスを停止 既存のデプロイがあり、新しい release をダウンロードした場合: ```bash -# .env の WEKNORA_VERSION を対象バージョン(例: 0.8.3)に設定、または latest のまま +# .env の WEKNORA_VERSION を対象バージョン(例: 0.9.0)に設定、または latest のまま docker compose pull # WEKNORA_VERSION に一致するイメージを取得 docker compose up -d # 新しいイメージでコンテナを再作成 ``` > [!NOTE] -> `docker compose up -d` のみではローカルキャッシュのイメージが再利用され、Web UI の表示バージョンがダウンロードした release と一致しない場合があります。アップグレードする前に[アップグレードの注意事項](https://weknora.weixin.qq.com/docs/07-releases/v0.8.3#upgrade-notes)を確認してください。 +> `docker compose up -d` のみではローカルキャッシュのイメージが再利用され、Web UI の表示バージョンがダウンロードした release と一致しない場合があります。アップグレードする前に[アップグレードの注意事項](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#upgrade-notes)を確認してください。 ### その他のデプロイ方法 @@ -166,6 +166,16 @@ docker compose up -d # 新しいイメージでコンテナを再作成 ## 最新アップデート +### v0.9.0 · リリース予定 · [リリースノート](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0) + +- **[WeKnora アシスタント](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#assistant)**: WeKnora のバージョン更新、機能や設定について回答。表示中のページをもとに、現在のユーザーの権限でエージェント作成、タスクの定期実行、ナレッジ整理や設定変更を支援。 +- **[マルチエージェント連携](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#collaboration)**: タスクを分担し、進捗を確認して結果をまとめます。 +- **[自動化](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#automations)**: 一回限り・定期実行の計画、実行履歴、結果と承認通知。 +- **[実行権限と承認](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#permissions)**: 読み取り専用、変更前に確認、自動実行の三段階と範囲を限定した許可。 +- **[サンドボックスとバックグラウンド処理](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#sandbox)**: ユーザー単位の再利用、バックグラウンド Shell、スキル更新方式。 +- **[解析・同期・検索](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#knowledge)**: 画像処理パイプライン、OCR 前処理、Feishu/Lark 同期、Confluence PAT と検索の改善。 +- **[アップグレード案内](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#upgrade-notes)**: DB 移行、Feishu 再同期、サンドボックス再利用スイッチと設定変更を確認してください。 + ### v0.8.3 · 2026-10-14 · [リリースノート](https://weknora.weixin.qq.com/docs/07-releases/v0.8.3) - **[画像ギャラリー](https://weknora.weixin.qq.com/docs/07-releases/v0.8.3#images)**:文書内の画像を一覧表示し、出典・説明・OCR・画像属性で絞り込み。 @@ -374,7 +384,7 @@ weknora chat "設計ドキュメントを要約して" | [設定](https://weknora.weixin.qq.com/docs/01-getting-started/04-configuration) | 環境変数とモデル設定 | | [トラブルシューティング](https://weknora.weixin.qq.com/docs/01-getting-started/05-troubleshooting) | よくある問題と解決方法 | | [API ドキュメント](https://weknora.weixin.qq.com/docs/04-api/01-api-overview) | REST API の概要 | -| [リリースノート](https://weknora.weixin.qq.com/docs/07-releases/v0.8.3) | 各バージョンの変更点 | +| [リリースノート](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0) | 各バージョンの変更点 | ## 開発ガイド diff --git a/README_KO.md b/README_KO.md index 63877a6bce4..dc29e89b46f 100644 --- a/README_KO.md +++ b/README_KO.md @@ -10,7 +10,7 @@

공식 웹사이트 문서 - 릴리스 + 릴리스 라이선스 Stars
@@ -42,9 +42,9 @@ [**WeKnora**](https://weknora.weixin.qq.com)는 엔터프라이즈 문서 이해, 시맨틱 검색, 추론을 위한 오픈소스 LLM 기반 지식 프레임워크입니다. 팀에 흩어진 문서를 한데 모아 검색하고 추론에 활용할 수 있게 하며, 자료가 바뀌면 함께 갱신합니다. -https://github.com/user-attachments/assets/5722b10d-d04d-49ed-a6cc-635a8c77d91f +https://github.com/user-attachments/assets/de0e490a-e738-405e-bb3a-64b63edd7278 -

1분 52초 · 1080p · 내레이션 없음, 영어 화면 텍스트

+

v0.9.0 · 2분 45초 · 1080p60 · 영어 내레이션 및 자막

자료 조회는 RAG, 다단계 작업은 Agent, 지식 정리는 Wiki로 합니다. 세 기능은 같은 지식베이스를 공유합니다. @@ -148,13 +148,13 @@ docker compose down # 서비스 중지 기존 배포가 있고 새 release를 다운로드한 경우: ```bash -# .env에서 WEKNORA_VERSION을 대상 버전(예: 0.8.3)으로 설정하거나 latest 유지 +# .env에서 WEKNORA_VERSION을 대상 버전(예: 0.9.0)으로 설정하거나 latest 유지 docker compose pull # WEKNORA_VERSION에 맞는 이미지 가져오기 docker compose up -d # 새 이미지로 컨테이너 재생성 ``` > [!NOTE] -> `docker compose up -d`만 실행하면 로컬 캐시 이미지가 재사용되어 Web UI 버전이 다운로드한 release와 일치하지 않을 수 있습니다. 업그레이드하기 전에 [업그레이드 안내](https://weknora.weixin.qq.com/docs/07-releases/v0.8.3#upgrade-notes)를 확인하세요. +> `docker compose up -d`만 실행하면 로컬 캐시 이미지가 재사용되어 Web UI 버전이 다운로드한 release와 일치하지 않을 수 있습니다. 업그레이드하기 전에 [업그레이드 안내](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#upgrade-notes)를 확인하세요. ### 기타 배포 방식 @@ -176,6 +176,16 @@ docker compose up -d # 새 이미지로 컨테이너 재생성 ## 최신 업데이트 +### v0.9.0 · 출시 예정 · [릴리스 노트](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0) + +- **[WeKnora 도우미](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#assistant)**: WeKnora의 버전 업데이트, 기능과 설정에 관한 질문에 답하고, 현재 페이지를 바탕으로 사용자 본인의 권한으로 에이전트 생성, 작업 예약, 지식과 설정 관리를 수행합니다. +- **[멀티 에이전트 협업](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#collaboration)**: 작업을 나누어 진행 상황을 확인하고 결과를 모읍니다. +- **[자동화](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#automations)**: 일회성 및 정기 실행, 실행 기록, 결과와 승인 알림. +- **[실행 권한과 승인](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#permissions)**: 읽기 전용, 변경 전 확인, 자동 실행과 범위가 제한된 권한 부여. +- **[샌드박스와 백그라운드 작업](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#sandbox)**: 사용자별 샌드박스 재사용 옵션, 백그라운드 Shell, 스킬 업데이트 정책. +- **[파싱·동기화·검색](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#knowledge)**: 이미지 처리 파이프라인, OCR 전처리, Feishu/Lark 동기화, Confluence PAT 및 검색 개선. +- **[업그레이드 안내](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0#upgrade-notes)**: DB 마이그레이션, Feishu 재동기화, 샌드박스 재사용 스위치 및 설정 변경을 확인하세요. + ### v0.8.3 · 2026-10-14 · [릴리스 노트](https://weknora.weixin.qq.com/docs/07-releases/v0.8.3) - **[이미지 갤러리](https://weknora.weixin.qq.com/docs/07-releases/v0.8.3#images)**: 문서 이미지를 모아 보고 출처, 설명, OCR 및 이미지 속성으로 필터링. @@ -384,7 +394,7 @@ weknora chat "설계 문서를 요약해 줘" | [설정](https://weknora.weixin.qq.com/docs/01-getting-started/04-configuration) | 환경 변수와 모델 설정 | | [문제 해결 FAQ](https://weknora.weixin.qq.com/docs/01-getting-started/05-troubleshooting) | 자주 발생하는 문제와 해결 방법 | | [API 문서](https://weknora.weixin.qq.com/docs/04-api/01-api-overview) | REST API 개요 | -| [릴리스 노트](https://weknora.weixin.qq.com/docs/07-releases/v0.8.3) | 버전별 변경 사항 | +| [릴리스 노트](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0) | 버전별 변경 사항 | ## 개발자 가이드 diff --git a/VERSION b/VERSION index ee94dd834b5..ac39a106c48 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.8.3 +0.9.0 diff --git a/docs/release-v0.9.0-announcement.md b/docs/release-v0.9.0-announcement.md new file mode 100644 index 00000000000..1de60502470 --- /dev/null +++ b/docs/release-v0.9.0-announcement.md @@ -0,0 +1,49 @@ +# v0.9.0 发布通知草稿 + +状态:待发布。以下正文供正式 tag、镜像和官网均可访问后使用,尚未发送。 + +## 中文群通知 + +WeKnora v0.9.0 来了!这一版新增助手、多智能体协作、自动化任务和执行权限控制: + +1. **WeKnora 助手**:解答 WeKnora 的版本、功能和配置问题,结合当前页面,以你的身份创建智能体、设置定时任务、整理知识和调整配置。 +2. **多智能体协作**:把搜集、整理、核对分给多个智能体同时处理,分别查看进度和结果。 +3. **自动化**:设置一次性或周期计划,定时生成摘要、整理资料;从运行记录查看结果和待审批操作。 +4. **执行权限与审批**:选择只读、修改前确认或自动执行,确认前查看具体操作;删除等高影响操作仍须批准。 +5. **沙箱与知识处理**:新增按用户复用沙箱的可选方式、后台 Shell,并完善图像处理、飞书 / Lark 同步、表格解析和检索。 + +升级前请备份数据库与文件,重点核对数据库迁移、飞书重同步和沙箱复用条件。全量变化和升级要求: + +- 版本说明:https://weknora.weixin.qq.com/docs/07-releases/v0.9.0 +- 官网:https://weknora.weixin.qq.com/ +- GitHub:https://github.com/Tencent/WeKnora + +正式镜像可用后,将 `.env` 的 `WEKNORA_VERSION` 设为 `0.9.0`,更新同版本部署文件,再执行: + +```bash +docker compose --profile full pull --policy always +docker compose --profile full up -d +``` + +欢迎通过 GitHub Issues 反馈问题,也欢迎在开发者群交流使用体验。 + +## GitHub Release + +Title: WeKnora v0.9.0 — Your workspace, in conversation + +WeKnora v0.9.0 adds a workspace assistant. Open it beside the logo to work from the page you are on: create agents, schedule recurring tasks, organize knowledge and adjust settings through conversation. Multiple agents can work on separate tasks at the same time, and automations run tasks on a schedule. Choose read-only, confirm-before-write or automatic execution, and review operations that require approval. This release also adds optional per-user sandbox reuse, managed background shell jobs, configurable image pipelines and broader datasource improvements. + +- [Release notes and upgrade guide](https://weknora.weixin.qq.com/docs/07-releases/v0.9.0) +- [Full changelog](https://github.com/Tencent/WeKnora/blob/v0.9.0/CHANGELOG.md) +- [Changes since v0.8.3](https://github.com/Tencent/WeKnora/compare/v0.8.3...v0.9.0) + +Back up your database, files and sandbox deliverables before upgrading. Review the new database migrations, Feishu/Lark resync, permission ceilings and the explicit gate for shared sandbox allocation. + +## 发布顺序 + +1. 审核当前源码、截图、视频和文案;确定最终 commit 与发布日期。 +2. 完成项目版本发布流程,确认 v0.9.0 tag、各平台产物与镜像可用。 +3. 在测试部署完成迁移和核心功能验收,再按站点 README 发布静态包。 +4. 检查官网版本页、截图、视频与 README 锚点,发布 Release 正文和群通知。 + +本文只准备发布材料,不代表上述操作已经执行。 diff --git a/docs/release-v0.9.0-audit.md b/docs/release-v0.9.0-audit.md new file mode 100644 index 00000000000..ec1a0c9b6da --- /dev/null +++ b/docs/release-v0.9.0-audit.md @@ -0,0 +1,149 @@ +# v0.9.0 发布审查记录 + +状态:文案、文档、demo 实测截图与发布材料已完成本地检查;视频已沿用获认可的原片风格扩展为 165 秒 HTML 宣传动画,于 2026-10-28 获用户确认。正式发布尚未执行。范围固定于 2026-10-27 获取的 upstream main,后续 main 提交不自动纳入本记录。 + +## 对比基线与历史依据 + +- 上次发布:v0.8.3,2026-10-14,`3e22822c1d2397be730c458c7539d0eb8c113a24`。 +- 本次基线:`256a3f2966866337f7dc3c5fcc10037f2ae18d52`,分支 `chore/release-v0.9.0-docs`。 +- 范围:**301 个提交,1811 个变更路径**;完整清单见[提交 TSV](release-v0.9.0-commits.tsv)与[文件 TSV](release-v0.9.0-files.tsv)。这是完整的提交/文件差异清单,不等同于对所有业务代码逐行进行安全审计。 +- 风格:首页四项重点左文右图,四段说明展开;章节底色交替,浏览器展示保持独立;功能页先说明用途和步骤,再放字段/实现参考。README 每个发布主题直达明确锚点,历史版本页保持不变。 + +## 全量差异如何落实到材料 + +| 变更范围 | 本轮处理 | 主要代码依据 | +| --- | --- | --- | +| 助手与页面操作 | 独立指南、首页主视觉、版本说明 | `config/builtin_agents.yaml`、`internal/agent/tools/operations*`、`internal/productdocs`、`internal/types/assistant.go` | +| 多智能体协作 | 独立说明任务隔离、数量与并发、取消和权限 | `internal/agent/tools/collaboration.go`、协作服务和持久化模型 | +| 自动化与通知 | 用户指南、API、运行/时区/审批限制 | `internal/types/automation.go`、`internal/application/service/automation.go`、`internal/router/routes_automation.go` | +| 权限与 HITL | 重写过时的 MCP-only 审批,说明三级权限、授权与恢复边界 | `internal/agent/policy`、`internal/types/agent_grant.go`、prompts / suspensions | +| 沙箱与后台 Shell | 更新共享机器边界、技能更新、回滚与 Lite 审批 | `shell_exec_async.go`、`work.go`、沙箱分配及 host approval 实现 | +| 图像与解析 | 替换旧管线标识/轨迹;解释百分比字符串与 OCR 预处理 | `image_pipeline_default.go`、`image_pipeline_smartocr.go`、`knowledgebase.go`、Docreader | +| 数据源与检索 | 保留当前已更新的飞书/PAT/图谱 API/MCP 文档过滤,精简目录说明,补 RRF 入口 | datasource connectors、retrievers、router 与 MCP tools | +| 部署与数据迁移 | 逐版纳入新增迁移;列出重同步、空图片分块、共享沙箱开关和配额变化 | `migrations/versioned/000119–000133`、`migrations/sqlite/000037–000050`、`.env.example` | +| 其余模型、IM、CLI、SDK、UI、修复与测试 | 全部保留于提交清单;按影响汇总至 CHANGELOG 与版本页 | 全量 Git 对比;不把修复项都提升成首页卖点 | + +## 文档处置清单 + +范围包括下列 74 篇编号文档,并连同网站说明、导航、四种语言 README、CHANGELOG、版本元数据和新增审查材料一起维护。保留项仍参与构建与链接校验;历史说明不会为了当前版本重写。 + +| 页面 | 处置 | 说明 | +| --- | --- | --- | +| [WeKnora 产品介绍](../website-docs/01-getting-started/01-introduction.md) | 更新 / 重写部分章节 | 补充四项能力入口 | +| [安装部署](../website-docs/01-getting-started/02-installation.md) | 更新 / 重写部分章节 | 更新目标版本示例 | +| [快速上手](../website-docs/01-getting-started/03-quickstart.md) | 更新 / 重写部分章节 | 加入助手只读帮助入口 | +| [配置详解](../website-docs/01-getting-started/04-configuration.md) | 更新 / 重写部分章节 | 新增预处理、表格、沙箱开关和问题生成预算 | +| [常见问题与升级排障](../website-docs/01-getting-started/05-troubleshooting.md) | 保留 | 未发现需要本轮迁移的内容;保留并纳入全站校验 | +| [ParadeDB 存量库升级](../website-docs/01-getting-started/06-paradedb-upgrade.md) | 保留 | 未发现需要本轮迁移的内容;保留并纳入全站校验 | +| [总体架构](../website-docs/02-architecture/01-overview.md) | 更新 / 重写部分章节 | 补充助手与持续任务架构 | +| [Go 后端设计](../website-docs/02-architecture/02-backend-design.md) | 更新 / 重写部分章节 | 补充权限、审批、协作及自动化模块 | +| [文档入库流程(Document Ingestion Pipeline)](../website-docs/02-architecture/03-document-pipeline.md) | 更新 / 重写部分章节 | 更新可配置图片管线 | +| [检索问答全流程(RAG Pipeline)](../website-docs/02-architecture/04-rag-pipeline.md) | 保留已有更新 | 本发布周期已有补充;纳入链接、构建和关联变更核对 | +| [异步任务系统](../website-docs/02-architecture/05-async-tasks.md) | 更新 / 重写部分章节 | 区分入库队列与自动化/后台任务 | +| [租户、用户与认证授权](../website-docs/03-features/01-tenant-auth.md) | 保留已有更新 | 本发布周期已有补充;纳入链接、构建和关联变更核对 | +| [知识库与知识管理](../website-docs/03-features/02-knowledge-base.md) | 更新 / 重写部分章节 | 替换旧图片管线和轨迹字段说明 | +| [文档解析服务 docreader](../website-docs/03-features/03-document-parsing.md) | 更新 / 重写部分章节 | 重写图片流程与百分比输出说明 | +| [分块机制(Chunking)](../website-docs/03-features/04-chunking.md) | 保留 | 未发现需要本轮迁移的内容;保留并纳入全站校验 | +| [检索引擎与向量存储(Retrieval Engines)](../website-docs/03-features/05-retrieval-engines.md) | 更新 / 重写部分章节 | 加入 RRF 用户操作说明 | +| [模型管理](../website-docs/03-features/06-models.md) | 保留已有更新 | 本发布周期已有补充;纳入链接、构建和关联变更核对 | +| [Agent 引擎](../website-docs/03-features/07-agent.md) | 更新 / 重写部分章节 | 新增协作入口及权限字段,重写旧 MCP-only 内存审批说明 | +| [MCP(Model Context Protocol)集成](../website-docs/03-features/08-mcp.md) | 保留已有更新 | 本发布周期已有补充;纳入链接、构建和关联变更核对 | +| [知识图谱](../website-docs/03-features/09-knowledge-graph.md) | 保留已有更新 | 本发布周期已有补充;纳入链接、构建和关联变更核对 | +| [数据源导入(Data Source)](../website-docs/03-features/10-datasource.md) | 更新 / 重写部分章节 | 精简钉钉目录说明,保留已补齐的 Feishu/PAT 契约 | +| [网络搜索与网页抓取](../website-docs/03-features/11-web-search.md) | 保留已有更新 | 本发布周期已有补充;纳入链接、构建和关联变更核对 | +| [IM 集成(IM Integration)](../website-docs/03-features/12-im-integration.md) | 保留已有更新 | 本发布周期已有补充;纳入链接、构建和关联变更核对 | +| [网页嵌入(Embed Channel)](../website-docs/03-features/13-embed-channel.md) | 保留 | 未发现需要本轮迁移的内容;保留并纳入全站校验 | +| [Wiki 能力](../website-docs/03-features/14-wiki.md) | 保留已有更新 | 本发布周期已有补充;纳入链接、构建和关联变更核对 | +| [评估能力(Evaluation)](../website-docs/03-features/15-evaluation.md) | 保留 | 未发现需要本轮迁移的内容;保留并纳入全站校验 | +| [可观测性与审计](../website-docs/03-features/16-observability.md) | 保留已有更新 | 本发布周期已有补充;纳入链接、构建和关联变更核对 | +| [FAQ 能力](../website-docs/03-features/17-faq.md) | 更新 / 重写部分章节 | 补充列表展开方式 | +| [会话与对话体验](../website-docs/03-features/18-chat-experience.md) | 更新 / 重写部分章节 | 补充助手、协作和后台任务进度 | +| [存储后端(Storage Backends)](../website-docs/03-features/19-storage-backends.md) | 保留 | 未发现需要本轮迁移的内容;保留并纳入全站校验 | +| [平台管理与系统管理员](../website-docs/03-features/20-platform-admin.md) | 保留已有更新 | 本发布周期已有补充;纳入链接、构建和关联变更核对 | +| [图片与文件的对外访问](../website-docs/03-features/21-file-access.md) | 保留已有更新 | 本发布周期已有补充;纳入链接、构建和关联变更核对 | +| [技能目录与沙箱](../website-docs/03-features/22-skills-sandbox.md) | 更新 / 重写部分章节 | 更新共享边界、路径、回滚和后台 Shell,补本机审批 | +| [跨会话长期记忆](../website-docs/03-features/23-memory.md) | 保留 | 未发现需要本轮迁移的内容;保留并纳入全站校验 | +| [飞书云盘接入](../website-docs/03-features/24-feishu-drive.md) | 保留已有更新 | 本发布周期已有补充;纳入链接、构建和关联变更核对 | +| [Seafile 接入](../website-docs/03-features/25-seafile.md) | 保留 | 未发现需要本轮迁移的内容;保留并纳入全站校验 | +| [WeKnora 助手](../website-docs/03-features/26-weknora-assistant.md) | 新增 | 新建完整助手与协作指南 | +| [自动化](../website-docs/03-features/27-automations.md) | 新增 | 新建自动化任务指南 | +| [执行权限与审批](../website-docs/03-features/28-agent-permissions.md) | 新增 | 新建执行权限与授权指南 | +| [API 总览](../website-docs/04-api/01-api-overview.md) | 更新 / 重写部分章节 | 加入自动化 API 与认证边界 | +| [API 参考:Agent、MCP 与技能](../website-docs/04-api/02-api-agent-mcp.md) | 保留已有更新 | 本发布周期已有补充;纳入链接、构建和关联变更核对 | +| [API 参考:认证与用户](../website-docs/04-api/02-api-auth.md) | 保留 | 未发现需要本轮迁移的内容;保留并纳入全站校验 | +| [API 参考:自动化与通知](../website-docs/04-api/02-api-automations.md) | 新增 | 新建自动化、记录、授权和通知 API | +| [API 参考:IM、Embed 与文件服务](../website-docs/04-api/02-api-channels.md) | 保留 | 未发现需要本轮迁移的内容;保留并纳入全站校验 | +| [API 参考:会话、消息与聊天](../website-docs/04-api/02-api-chat.md) | 更新 / 重写部分章节 | 补充助手请求字段、后台任务接口 | +| [API 参考:分块与标签](../website-docs/04-api/02-api-chunks.md) | 保留已有更新 | 本发布周期已有补充;纳入链接、构建和关联变更核对 | +| [API 参考:FAQ 与 Wiki](../website-docs/04-api/02-api-faq-wiki.md) | 保留 | 未发现需要本轮迁移的内容;保留并纳入全站校验 | +| [API 参考:基础设施与数据源](../website-docs/04-api/02-api-infra.md) | 保留已有更新 | 本发布周期已有补充;纳入链接、构建和关联变更核对 | +| [API 参考:知识库与知识](../website-docs/04-api/02-api-knowledge.md) | 更新 / 重写部分章节 | 补充图像管线选择与校验接口 | +| [API 参考:长期记忆](../website-docs/04-api/02-api-memory.md) | 保留 | 未发现需要本轮迁移的内容;保留并纳入全站校验 | +| [API 参考:模型与初始化](../website-docs/04-api/02-api-model-system.md) | 保留 | 未发现需要本轮迁移的内容;保留并纳入全站校验 | +| [API 参考:组织与共享](../website-docs/04-api/02-api-org.md) | 保留已有更新 | 本发布周期已有补充;纳入链接、构建和关联变更核对 | +| [API 参考:沙箱、技能与个人变量](../website-docs/04-api/02-api-sandbox-skills.md) | 保留已有更新 | 本发布周期已有补充;纳入链接、构建和关联变更核对 | +| [API 参考:系统与平台管理](../website-docs/04-api/02-api-system.md) | 保留 | 未发现需要本轮迁移的内容;保留并纳入全站校验 | +| [API 参考:租户(空间)与成员](../website-docs/04-api/02-api-tenant.md) | 保留已有更新 | 本发布周期已有补充;纳入链接、构建和关联变更核对 | +| [Web 前端(frontend/)](../website-docs/05-clients/01-frontend.md) | 保留 | 未发现需要本轮迁移的内容;保留并纳入全站校验 | +| [WeKnora CLI(weknora 命令行工具)](../website-docs/05-clients/02-cli.md) | 保留 | 未发现需要本轮迁移的内容;保留并纳入全站校验 | +| [Go SDK](../website-docs/05-clients/03-go-sdk.md) | 保留 | 未发现需要本轮迁移的内容;保留并纳入全站校验 | +| [微信小程序客户端](../website-docs/05-clients/04-miniprogram.md) | 保留 | 未发现需要本轮迁移的内容;保留并纳入全站校验 | +| [桌面客户端(WeKnora Lite Desktop)](../website-docs/05-clients/05-desktop.md) | 更新 / 重写部分章节 | 区分 Lite 本机审批与全局偏好模式 | +| [Chrome 插件(知识管理助手)](../website-docs/05-clients/06-chrome-extension.md) | 保留 | 未发现需要本轮迁移的内容;保留并纳入全站校验 | +| [Claw Skill](../website-docs/05-clients/07-claw-skill.md) | 保留已有更新 | 本发布周期已有补充;纳入链接、构建和关联变更核对 | +| [DeepSeek Harness 插件](../website-docs/05-clients/08-deepseek-harness.md) | 保留 | 未发现需要本轮迁移的内容;保留并纳入全站校验 | +| [本机浏览器接入与部署](../website-docs/05-clients/09-local-browser.md) | 保留 | 未发现需要本轮迁移的内容;保留并纳入全站校验 | +| [开发指南](../website-docs/06-development/01-dev-guide.md) | 保留已有更新 | 本发布周期已有补充;纳入链接、构建和关联变更核对 | +| [数据库与迁移](../website-docs/06-development/02-database-schema.md) | 更新 / 重写部分章节 | 更新 PG 119-133 / SQLite 37-50 迁移 | +| [扩展点指南](../website-docs/06-development/03-extension-points.md) | 保留 | 未发现需要本轮迁移的内容;保留并纳入全站校验 | +| [沙箱部署与排障](../website-docs/06-development/04-sandbox-deployment.md) | 更新 / 重写部分章节 | 修正共享机器隔离与本机审批边界 | +| [对话提示词拼装与可编辑范围](../website-docs/06-development/05-agent-prompts.md) | 保留 | 未发现需要本轮迁移的内容;保留并纳入全站校验 | +| [WeMM Transformers 部署](../website-docs/06-development/06-wemm-transformers.md) | 保留 | 未发现需要本轮迁移的内容;保留并纳入全站校验 | +| [v0.8.0 版本说明](../website-docs/07-releases/v0.8.0.md) | 保留 | 历史版本记录,保持原发布事实与锚点 | +| [v0.8.2 版本说明](../website-docs/07-releases/v0.8.2.md) | 保留 | 历史版本记录,保持原发布事实与锚点 | +| [v0.8.3 版本说明](../website-docs/07-releases/v0.8.3.md) | 保留 | 历史版本记录,保持原发布事实与锚点 | +| [v0.9.0 版本说明](../website-docs/07-releases/v0.9.0.md) | 新增 | 新建版本说明、视频和升级要求 | + +## 删除与重写的内容 + +本次没有整篇删除仍有有效用途的文档。删除了当前指南中的过时结论与重复实现细节:仅 MCP 需要审批、全部审批只保存在内存、旧图片管线/轨迹字段、共享分配为零就可无损降级,以及冗长的钉钉路径内部实现叙述。修正助手聊天请求字段为 `assistant_access`,普通智能体配置字段为 `config.access_level`,避免混用自动化的 `access_level`。 + +## 文案修订 + +版本说明沿用「你的 WeKnora 工作助手」;首页重点章节标题调整为「WeKnora 助手、多智能体协作与自动化」。四项重点为「了解 WeKnora,也帮你处理任务」「多个智能体同时处理任务」「一句话安排,也能手动设置」「决定哪些操作需要确认」。首项同时说明产品问答、页面上下文和当前用户身份;助手与自动化各使用两张可切换的截图。首页、指南、版本说明、四种语言 README、CHANGELOG 和通知草稿已同步;视频开场使用英文「Your WeKnora assistant.」,结尾使用「Ask. Create. Work together.」。 + +首页将 v0.8.3 的长期能力归回对应章节:多模态检索与原文定位归入 RAG,附件按需读取归入 Agent,Wiki 图谱与历史保留在 Wiki,Docker 终端与本机技能保留在技能与沙箱,目录同步归入数据源,平台用户管理归入企业管理。按用户后续要求,删除新增的「模型接入与管理」段落,保留原有厂商展示。移除顶部跨主题的「继续了解」链接,四项 v0.9.0 重点独立保留。画廊作为知识库的浏览方式单独展示,放在 Wiki 前;按用户要求沿用上一版两张画廊截图,未替换素材。 + + +## 截图与视频来源 + +六张截图使用 demo 账号及「周末读书会」虚构资料,尺寸为 1920 × 1056,与旧版保持 20:11;文档站和首页副本一致。助手展示产品问答与任务协助,自动化展示一句话设置与手动设置,协作和审批使用卡片视图。旧版画廊图片保持不变。输入资料和实测范围见[演示资料](../misc/release-v0.9.0-demo/README.md)。 + +视频沿用仓库 `misc/intro-video/` 的衬线标题、纸白背景、深蓝金色、流式文字和平滑转场,按当前产品源码重建各功能。全部界面由 HTML/CSS/SVG 编排,只有官方 Logo 使用位图。片中资源与操作是虚构的说明性示例,不是实际运行或性能证据。 + +成片为 165 秒、1920 × 1080、60 fps、H.264 / AAC,包含 28 段英文合成配音、34 条内嵌英文字幕及独立 SRT,无背景音乐;715 个字符的打字音效与输入同步,并在人声下自动降低音量。封面展示四项重点能力,随后覆盖产品问答、创建智能体、具名协作、自动化、权限审批、后台产物、Browser Skill、画廊、Wiki Graph 与原文引用。创建从页面弹窗进入助手;审批后展示知识库卡片名称变化;浏览器浮窗同步页面、焦点与光标。源码、分镜与复现步骤见[视频工程](../misc/release-v0.9.0-video/README.md)。 + +## 验证与边界 + +- 演示账号已验证资料解析、助手来源引用、智能体创建、三个子任务协作、自动化手动运行、只读写入拒绝、单次审批后创建及改名。自动化保持暂停。测试环境并非固定发布构建;模型重复调用和缺少工具参数后的重试路径仍需在最终构建复测。 +- 网站完整构建通过:84 页、413 个本地路由/资源、83 个首页资源;81 篇文档的 403 个内部链接失效 0 个,60 个 Mermaid 图失败 0 个。首页 ESLint、`go test ./internal/productdocs` 和差异空白检查通过。站点集成测试已更新为 v0.9.0 助手入口,导航、主题、搜索、移动端、文档直达与 404 检查通过。首页视频默认展示 v0.9.0,旧产品全览通过紧凑横向标签保留,共用一个播放器;顶部合并为单行工具栏,移除重复标题;播放、切换后停止旧视频、键盘选择、移动端并排及点击前不加载媒体的检查通过。构建仍有 Vite 大分块提示。 +- 视频检查覆盖 660 个采样时刻、11 个输入区的输入与提交状态、715 个字符的逐帧到达、字幕安全区、审批边界和浏览器浮窗同步,无布局错误。全片解码通过,共 9900 帧;音频为 48 kHz 双声道,-18.04 LUFS、-4.95 dBTP,无削波。 +- 最终 MP4 为 24,185,842 字节,SHA-256:`d38750449839f6a3d99b75dd0373e531cd5c2d1e4108bf8ed454b617e9d2317f`。网站副本和本地发布包内容一致。 +- 未执行生产迁移、镜像发布、线上部署或生产冒烟测试。本记录的差异范围固定于上述基线;后续提交需要追加审查。 + +## 交付物 + +- [发布说明](../website-docs/07-releases/v0.9.0.md)与[通知草稿](release-v0.9.0-announcement.md)。 +- [六张截图](../website-docs/public/screenshots/)及虚构演示资料。 +- [英文动画 MP4](../website-docs/public/videos/weknora-v0.9.0-en.mp4)、[封面](../website-docs/public/videos/weknora-v0.9.0-poster.png)、[英文字幕](../website-docs/public/videos/weknora-v0.9.0-en.srt)及可编辑动画源码。 +- 静态站和媒体包通过网站 README 中的打包流程生成;`website-docs/releases/` 为忽略的本地构建目录。 + +## 正式发布前的最后步骤 + +1. 确定最终 commit 和发布日期;对基线之后的 main 提交追加差异审查。 +2. 在固定发布构建验收数据库迁移、解析/检索、助手权限、审批恢复、自动化通知与所选沙箱分配模式。 +3. 发布 tag 和各平台产物,确认 0.9.0 镜像可用。 +4. 按网站 README 部署静态站,检查版本页、视频播放与范围请求,以及 README 和历史链接。 +5. 根据通知草稿发布 Release 与版本通知。 + +公开提交不包含账号标识、私有会话记录、模型缓存或废弃视频草稿。正式发布与网站部署仍待执行。 diff --git a/docs/release-v0.9.0-commits.tsv b/docs/release-v0.9.0-commits.tsv new file mode 100644 index 00000000000..b054d58c195 --- /dev/null +++ b/docs/release-v0.9.0-commits.tsv @@ -0,0 +1,302 @@ +commit date subject +6c3730a6adfd9e77e3472c3f0e3d10fcd805bda6 2026-10-14 fix(docs): stabilize anchor navigation and link release topics (#4287) +383d26535adcd7c4c4d383d5c81889028bc46237 2026-10-14 feat(agent): persist human-in-the-loop prompts with a shared broker (#4250) +a77d83fe0ee40518aa057fa3e69f50538c72873a 2026-10-14 feat(search): add RRF controls in a tabbed settings popover (#4300) +234aa948db29c10f5ed4b7939285c7b3711c5d4c 2026-10-15 docs(swagger): document the real request and response types (#4304) +687b17870699e373c9be24e9d2adc1f220fb1f43 2026-10-15 feat(agent): add the built-in WeKnora assistant with an operation catalog (#4302) +7c9088d0feeb252009ca7b3019a866c8febc7bfe 2026-10-15 feat(agent): let the WeKnora assistant read the bundled documentation (#4303) +33b77f84401458a19a37a44bc47149b7817057f8 2026-10-15 fix(ui): compact resource list headers in Lite mode (#4316) +c40b33ecc34f5a2c33bc47d33e33c577e2ae1c2d 2026-10-15 fix(agent): admit catalog operations only from knowledge API areas (#4317) +1b241325669d9e1ac06878858ce6ac24efa46a6b 2026-10-15 fix(agent): let the WeKnora assistant search without its own rerank model (#4315) +a131efa5e037040cc690f25a02e2f33dd0f6f1ce 2026-10-15 feat(frontend): open the WeKnora assistant from anywhere with page context (#4314) +a37a1bc51ad85d096df341f6d3a098f60d586f52 2026-10-15 feat(agent): open more workspace operations to the WeKnora assistant (#4318) +aaa1accebdf673b9603aaa555c5610a8fd7727d9 2026-10-15 feat(agent): let the assistant delete and move documents in batches (#4319) +6c23dac3b0105039bba7e362b502bbb2222914d3 2026-10-15 docs(site): add the model leaderboard page (#4333) +a730a411d421a0117318ed560f049530e83d46aa 2026-10-15 feat(agent): let the assistant manage FAQ entries (#4327) +450b6ed1b781c36983c53d9d564ffe65a863b3e8 2026-10-15 feat(assistant): side panel, access levels and role-aware operations (#4342) +4d4acec418b5fa67d457d1bf85846476d1e92e73 2026-10-15 feat(assistant): manage agents and skills, separate history, refresh pages (#4344) +aeeb72a61a196f06518ec908f21f8e8f363e666c 2026-10-15 fix(assistant): reject restored ordinary sessions (#4356) +2fbfb4471581cd5e7d731bc7a2d443fe7d8e95b5 2026-10-15 feat(assistant): let the assistant manage knowledge bases (#4353) +db7046b85effa8104fed2f51a38cd65226c97b6d 2026-10-16 refactor(image): turn the hard-coded image flow into configurable pipelines (#3746) +973d9d051f2d2a1704bf3a92dd6b1c0b3d1988d4 2026-10-16 feat(datasource): deep-adapt Feishu/Lark sync with folder mirror, block parsing and embedded objects (#3497) +03059997fe1972f3280c3bcd29e7ecc4afcca432 2026-10-16 fix(im): cap IM callback bodies before any adapter reads them (#4369) +c44f939211bbb1a504c4171e0f5eef9c583287db 2026-10-16 fix(web-search): bound provider response bodies instead of buffering them whole (#4370) +d3d496398977d07891e6e049d08bc74e382c5f77 2026-10-16 fix(mcp): avoid replaying tools after ambiguous call failures (#4124) +6dd0a6a3d62876f9f046db4b57e2b5cd87abe8f1 2026-10-16 fix(embedding): read the pool's first-error guard under its own mutex (#4014) +12e3e49d80699f8cdec4f42673940a3464b80971 2026-10-16 fix(chat): persist failed quick-answer turns so errors survive refresh (#4306) +1b2c7af01aa497fef46f088198ad226c277a83d7 2026-10-16 fix(data-analysis): resolve workspace storage backends in quick answers (#4214) +cf7aabeaca98f5b33d2f26efc1713d45c32cd401 2026-10-16 fix(mcp): 分离SSE连接生命周期与请求超时 (#4140) +1fe804bd5cab126dd1187f3956ef3b56a4ec963c 2026-10-16 fix(docparser): bound MinerU result packages and their expansion (#4396) +7ba8e2eba90869aa685c8a28534b8e4d437a2180 2026-10-16 fix(embed): hide host context in user messages (#4388) +7705f77be962e85739f81f594e56c8bbfc08bb26 2026-10-16 fix(embed): send images when an OpenAI-compatible row declares them (#4389) +f0adfac3348e7784a3e1f5cca1236b8bc5710143 2026-10-16 fix(models/api): cap non-streaming provider response bodies (#4397) +e07a190219a98bbebd87f6ec60701682ef0df093 2026-10-16 fix(tools): reject legacy binary .xls with an actionable error (#4374) +9a7aa48e449482f1d41caae6bae3b3862ea1bee7 2026-10-16 build(docker): mount the Go build cache when building the app image (#4320) +7115cb2a61e86a7c963ea3793937546286d7238c 2026-10-16 feat(assistant): trial runs, session grants, page links, and MCP/model/skill management (#4375) +86767d77e91b55c6012a7f22d991ea8517e3e96a 2026-10-16 fix(frontend): cap concurrent status requests in upload polling (#4348) +ad63fc4b8caf9a2c33557a6aa85251b62d8339b4 2026-10-16 fix(frontend): label the parser engine the backend will actually pick (#4354) +f5cfa0ff5fa87c45f59d4176f4ac8bb922bd5dd8 2026-10-17 fix(knowledge): leave the root span open while a retry is left (#4357) +0d7516ea0a07ef92e245704b87457969c4322cfb 2026-10-17 feat(assistant): expand management operations and polish interaction UI (#4427) +8776a2d92d11ad3e76865d51cf3192e37e2a9976 2026-10-17 feat(assistant): let the assistant find skills and MCP services on the web (#4429) +345855b59cdb3181f6a7e584595bb395957d7e55 2026-10-17 fix(anydoc): upgrade patched zip dependency to 9 (#4437) +578ca1b5193b66b7b08309dfefa7d89db20f8d2a 2026-10-17 fix(docreader): keep a pipe inside an HTML table cell in that cell (#4433) +1fc00cdc08d8f08ebde2303d95a7b9115062e050 2026-10-17 fix(agent): share one configurable budget for web_fetch (#4432) +e2a58ea3cbfa28f24b828ebc1a721a12fbcf41a1 2026-10-17 fix(docparser): keep JSON numbers and <, >, & as written in JSON uploads (#4436) +e6dc60be3278a598064a667369eb698d6c819eda 2026-10-17 fix(knowledge): 文件夹树显示递归文档数,不再把有子目录的文件夹显示成 0 (#4428) +5044ef69f9db13bac00f920c70c362aa136cd836 2026-10-17 fix(chat): 消息历史与搜索的 limit 补上下界,limit=-1 不再取消 SQL LIMIT (#4409) +2b4c0e362f11e3ef30c1125a42d18ddb304ac9f6 2026-10-17 fix(wiki): 列 wiki 页面的 page_size 补上界,与兄弟路径一致 (#4407) +340b72f1419e80aebd973591e3bde0e3da9785b4 2026-10-17 fix(models): 图片解析复用仓储层的 provider scheme 表,对象存储上的图片不再原样交给厂商 (#4405) +8ddb245d1b08e603e099dffd8e2ee8cf68cbe1da 2026-10-17 fix(mcp): clarify read_document query and pagination semantics (#4403) +2fac6381f7e086a204e7cc66257336535049fa2f 2026-10-17 fix(search): preserve chunk types in tool results (#4402) +b373374bf38a1437281d475109089962e1cb8389 2026-10-17 fix(feishu): keep nested text in native table cells (#4400) +164dafca85a477ced3c5f7f7be65433fa4435276 2026-10-17 feat(graph): add standalone JSON graph search API (#4395) +da3317039bdb3a3063d675b747245c8036d187cc 2026-10-17 fix(docparser): keep every row and cell of a CSV upload in its table (#4435) +42f91f7aa7158e3a9debf6a6f5c292ddb21461ae 2026-10-17 fix(wiki): read scanned-page OCR when the text chunks are only images (#4430) +a7d915a70a96081dd697617ffb1f94af8e29fe29 2026-10-17 feat(resource): 相同图片字节复用一个 handle,不再重复写字节与重复注册 (#4419) +a9290dcb60e98eeb6b7b52dc252ee956338e0cd0 2026-10-17 fix(docreader): Excel 百分比被读小 100 倍 —— 加开关(默认关) (#4423) +0aa1a517c86799ae16a23d9c5b4d8c6dab594f27 2026-10-17 fix(helm): make the data-files claim access modes configurable (#4425) +e849eaad5cc01d4b01e8eb449041b8673aa263a9 2026-10-17 feat(datasource/dingtalk): 保留来源目录结构(开关控制,默认关) (#4422) +d92728d88c6db1d4c97267cb707388e8ca4862ee 2026-10-17 fix(datasource/dingtalk): Validate 只校验所选范围,不再扫全租户 (#4421) +073b5ea6169254e29059e26fcb053e13730db33c 2026-10-17 fix(datasource): 数据源类型图标的 alt 用本地化显示名,不再用裸 type (#4420) +4d767d9dc4eaacceca4d77851dd66fa074b6b6b7 2026-10-17 fix(yuque): 两处 offset 分页补跳数上限、重复页检测与 meta.total 提前结束 (#4415) +b2e81a9ac4e24b70d41c296c375af876e887c608 2026-10-17 fix(notion): 附件下载失败中止本轮不再推进游标,附件不再永久缺失 (#4413) +26ff9888238de05db115784724e9abaca05b48ac 2026-10-17 fix(notion): 递归子块分页补重复游标与跳数上限,兜底不再被空页绕过 (#4411) +75e7ee4d41a8de5677734a576dbdfc548812809d 2026-10-17 test(mcp): cover read_document query and pagination contract (#4426) +f89a15e61c9ff587e5ae15b6cf8e6ae1069b30c8 2026-10-17 fix(frontend): bundle PDF.js wasm decoders (#4382) +44d90beea22a08b701fe3e33b650af9816a4f9f4 2026-10-17 feat(docreader): 上传 HTML 只索引正文,与 URL 导入路径对齐(开关,默认关) (#4424) +2c0d8384398ca756ee414eef01b71caf91e2caa6 2026-10-17 fix(feishu): stop logging tenant access token fragments (#4399) +966d841d193065603a3d72deaed2c1036d42f408 2026-10-19 feat(assistant): add durable multi-agent collaboration and live task views (#4438) +2e8b3aa729cc05d5787a00803d834bfa078c33d3 2026-10-19 fix(agent): let open_page finish the turn with the answer above it (#4472) +737d237283ee1a8abd19a4755ad3197f79ce1303 2026-10-19 style(assistant): tone down the running child agent highlight (#4476) +f07f7ff0282ae6b0a4be0e49e80ac08bdde03b7c 2026-10-19 fix: reject invalid image inputs before multimodal extraction (#4489) +ba253bcbacd28d2d465b7a6955a1cfd9f75fe0f8 2026-10-19 feat(agent): unified agent permission model with grants and run modes (#4490) +09b9c98d545cbdef978068c3ec298313243a07a7 2026-10-19 fix: preserve business session identity in model requests (#4491) +728966bc813735cc0276143ec212ff96616cb5c1 2026-10-19 feat(chat): fold long streaming timelines and steady their height (#4496) +eecfe4b3c8c34c94e9b559e5dd02187b4ae447cd 2026-10-20 feat(automation): scheduled agent runs with in-app notifications (#4492) +8dab7550f5069ef80877a65b52dc5483c45f7827 2026-10-20 feat(sandbox): 双模式沙箱分配的基础(门控关闭,线上行为不变) (#4507) +a8eb7e28fa4045d2d99966f5ff99b68b9a555a93 2026-10-20 fix(automation): enforce execution identity, cancellation, and scheduling limits (#4506) +cc29cc8d774de2223a5ac1a750f5e62019d4ec09 2026-10-20 feat(sandbox): 按分配记录定位共享沙箱(门控仍关闭) (#4509) +a6cc635ab91f81c105b0f38b8e6b0b4c9ede1c1a 2026-10-20 feat(sandbox): 共享机器的用户模式闭环(删除、回收、管理与桌面) (#4510) +968ca9fb1b7dab6f96dcbf3ee7e4c330abca253f 2026-10-20 feat(automation): improve model settings, task controls, and notification inbox (#4514) +20597163de353de530601fd553b0840d29e13fb9 2026-10-20 fix(agent): route new knowledge through document ingestion (#4525) +c1979838044d644b8f44c9835467c43082b1bfa7 2026-10-20 refactor(automation): run scheduled tasks through the assistant (#4522) +eaa8eda5f0ffd7e7e4511421557eb9c834a1d7f4 2026-10-20 fix: preserve source references and refine chat automation UI (#4534) +9fba40d6914f66dfbc89695c26480d7b40a76ce4 2026-10-20 feat(chat): animate active timeline icons (#4535) +dee512e7bb05b8c0f3de73f981df00111cc081ee 2026-10-20 fix(settings): keep direct settings closes inside the app (#4524) +6ccc7d12e26ddef0962af43b1f97e8c849f8c98f 2026-10-20 feat(sandbox): 共享沙箱短会话目录 + 移除工具层目录限制 (#4533) +e0c28bef3562de7d2d78d6c1fa480a045468a40f 2026-10-20 fix(mcp): invalidate stale OAuth dialog requests (#4531) +0eb298467d071423dd507606216ced4e0d07bd96 2026-10-21 perf(sourceloc): index align matches in one document scan (#4544) +df0b2d2ad64cdaa799778d2e2dd3113bd0aa4a54 2026-10-21 fix(auth): let retrieve-scoped API keys discover shared knowledge bases (#4523) +e18fb23ed12e24795f165c62448ad50dd71d7caa 2026-10-21 fix(datasource): enforce sync log retention policies (#4532) +4af13fadc1eff3d3adf08531c4c1ad3635134dc3 2026-10-21 fix(qa): resolve shared KB chat models in their owner tenant (#4557) +5839a611c0b1240318004f07c595c397cfe15725 2026-10-21 fix(web_fetch): decode non-UTF-8 HTML pages by declared charset (#4556) +9224b1f40313eca00f6e5441b83174eda59a4f44 2026-10-21 fix(db): stop logging bound parameters in GORM slow-query logs (#4561) +ce231af136feeb74c81bfcf0fd4c7fd5b05b460c 2026-10-21 fix(export): sort conversation messages by timestamp instants (#4559) +ec6325313fc078c936d93e0d2e6f258147c68725 2026-10-21 fix(citations): match canonically equivalent Unicode text (#4560) +e80b2b66c29307368943cc9781286ff295818ea2 2026-10-21 fix(datasource): truncate failed sync detail at rune boundary (#4555) +757540a754cb512daf12c19a73f4f8c556b3a523 2026-10-21 fix(router): truncate dead-letter knowledge errors at rune boundary (#4554) +43068f0a9d2e76be08cb56a395e65d7bb7939e8b 2026-10-21 fix(agent): show legacy empty MCP config as all in editor (#4558) +904ea9628c12adafb86de021558ae71bc2043f9d 2026-10-21 fix(automation): reject nonexistent one-shot local times (#4551) +0c3c7c5cc8bddf228213da96ab058c051f4d78c9 2026-10-21 feat(confluence): support personal access token authentication (#4549) +1bcc004a5e5e4e96b7aedba455f3b7a29651e091 2026-10-21 fix(rerank): preserve literal fenced code in model passages (#4521) +81f0dc2d3676048bc747ef02107ef6bfba2ae869 2026-10-21 fix(rerank): accept bare array responses from self-hosted runtimes (#4518) +d5771334c434ccb00df54e6254e9b585d1cabca7 2026-10-21 fix(download): honor language tags in extended filenames (#4517) +8ed3676f11da9032b64f0eedebe9d793d581c998 2026-10-21 fix(preview): distinguish image and audio ISO media brands (#4515) +9110cb2da17000e9f8fcc90dadb59bce3e31392d 2026-10-21 fix(postgres): support pgsearch keyword scoring (#4502) +e6fd3fd3e2d4af38205d12e8e00f8a8ebdf32e36 2026-10-21 fix(im): resolve resource URLs through bound storage backends (#4578) +8d47e6e979e6a16a53d1ebbe8b751133051d349e 2026-10-21 feat(image): add opt-in, bounded preprocessing before OCR (#4381) +1ba07b0f726ef54ce957570c00a6e0c5f96c2341 2026-10-21 fix(web-search): keep error previews valid UTF-8 (#4583) +9981c9fedd7edf3ede080e9e827683c694936d83 2026-10-21 fix(faq): preserve disabled state when importing entries (#4581) +e28c68cf552cc1aba2fc923a73b0ab23a33bcb55 2026-10-21 feat(background): shared background-work runtime (#4579) +92dfa6a1eef2be18df81c2b5fe23bc43e6f3783e 2026-10-22 feat(shell): async shell jobs for web and Lite (#4580) +0388343534f9f5a32af06578cff2ed97ae0c7319 2026-10-22 fix(frontend): ignore stale document detail responses (#4627) +73903791eb44f6099d66af3c9058542275a3d6e3 2026-10-22 fix(rss): preserve full text during article refresh failures (#4625) +bc1ade36b933ff7689f1659d670cfd5683c174c5 2026-10-22 fix: preserve shared resources during clone rollback (#4623) +3fc6f5743b483c8a1c6ea4fc183245978c3aa424 2026-10-23 fix(gallery): cancel stale image fetches before Blob allocation (#4588) +6df82e47cc42a1df5ea661cb15c936819322e30f 2026-10-23 fix(ui): avoid full list reloads while awaiting batch reparse (#4618) +debade7114b1a4ca2c8b3af4e2d2aa1f4ee29069 2026-10-23 fix(datasource): truncate connector error previews at rune boundaries (#4614) +e11e919ea132d141cbeadd368a889c606d598276 2026-10-23 fix(errors): truncate error messages at rune boundaries (#4609) +26a37cb2d0f69dd485ed8a01fd7f857a93e80536 2026-10-23 fix(import): accept formats advertised by parser engines (#4602) +f0e93abafa7f51a1c2a67517640e6563ec17f0d5 2026-10-23 fix(feishu): sync child documents of wiki shortcuts (#4565) +2bceacb6378faa39fec055252bd4443c4850f595 2026-10-23 fix(wiki): restore rewritten wkimg placeholders instead of persisting broken links (#4552) +18ca9068738a04ac7b3aa7ec4a02b41d854b4c85 2026-10-23 fix(agent): reject oversized sandbox appends before reading (#4577) +1f6234a00864cc530a448d7f29488f0c0b3fb581 2026-10-23 fix(agent): honor read_file match limits when searching (#4575) +38d17e482cf612ed76405a8c2519263675e1485b 2026-10-23 fix(data-analysis): allow safe scalar casts in SQL validation (#4215) +93ec8dad0ec2ce92126a3445d10cff5b595dc63b 2026-10-23 fix(openaicompletions): keep streamed tool calls without an index apart (#4593) +9a3f80c6daf3b56bd21a01e36f9cc8fe67bc5cf5 2026-10-23 fix(googlegenai): map remaining safety finish reasons to content_filter (#4592) +b3fa2d9c4b9ba4ebf6e7c1fd658554332bcd1255 2026-10-23 fix(agent): handle context window exhaustion as a length finish (#4589) +15d1dd0590f8fb3465ccdb4590ad652cee984ee6 2026-10-23 fix(logger): namespace log format configuration and isolate log tests (#4639) +2f3b04c52e00912eef66f85a4c2a153c5bee128f 2026-10-23 fix(agent): preserve multimodal content during message sanitization (#3949) +fb2c66ec2d4a26ad1257e57255914623897ebca8 2026-10-23 fix(docparser): treat anydoc resource limits as permanent parse failures (#4573) +0419d0f92068d11b6be59308f2396f0202c8fe0f 2026-10-23 fix(retriever): bound vector indexing memory with saved windows (#4584) +96924f5719620a5d03fa544bfe4ded0e48a08b8d 2026-10-23 fix(docreader): crop the original image after detecting on a probe (#4586) +538437e42932763674ff8b9e620cc0ae86a526b8 2026-10-23 fix: store inline images and apply AI budget in document order (#4121) +865cc97fb07e95e566db37b00ade9a024032954d 2026-10-23 fix(frontend): preserve numeric literals in JSON preview (#4620) +8678c468b69768e849c9787cd8134ce8293a0fdb 2026-10-23 fix(preview): reject invalid UTF-8 before decoding CSV (#4479) +be2fd9450957d931141f6ca7d9025cbbaa2a105c 2026-10-23 fix(wiki): support similar page lookup on SQLite (#4605) +b581f95217364241be4690db3e28d54c2895dc91 2026-10-23 fix(docreader): release raw PDF images after encoding (#4562) +1c0abaabb0da83466b14e87750236da6964afdcb 2026-10-23 fix(sandbox): rebind when attachment staging loses its container (#4220) +62a6d86b08b42f7f22599df04c1f7d0a0da74ffc 2026-10-23 feat(faq): add list view toggle (#4566) +640fcb618af7df80c1948026f102c0f5fc953ceb 2026-10-23 fix(lite): reclaim superseded reparse chunks (#4595) +591b12ca6c40d8bc392249ff410707e51c5b6006 2026-10-23 fix(im): only reply to Feishu group messages mentioning this bot (#3505) +99db0a03cea3f0564731216f4341e8830aa28d99 2026-10-23 fix(vectorstore): clarify PostgreSQL requirements (#4655) +e4111bdacf41fd1618dbdeb9f738328cc374bfeb 2026-10-23 fix(knowledge): keep document toolbar actions inside the pane (#4653) +68dabc25a9dd0e2911af42e2013a5b85339cea86 2026-10-23 fix(datasource): escape filenames in generated multipart uploads (#4647) +a9ea6a9fb1a562490babeed97062002e10686649 2026-10-23 perf(wiki): coalesce graph label updates and skip hidden SVG layout (#4646) +2e647d44caed6edf2e0845e9e4d94c46e8441ac2 2026-10-23 fix(login): keep the sign-in form visible on phones (#4645) +beb5a3774a95e019401165be79410bb06decde63 2026-10-23 fix(datasource): honor skip conflict strategy (#4643) +b040b97d4708d4248624408bd736005b7a895ddc 2026-10-23 perf(chunker): avoid quadratic protected span sorting (#4633) +5ae0282a33e8cfe3e2ffd6a69f2cf5cb28051d99 2026-10-23 fix(docreader): keep Markdown block structure in EPUB chapters (#4632) +314a6fafd718724b5e6a11b42650b51db6b588d8 2026-10-23 fix(docreader): reclaim memory after large read requests (#4628) +23d6531451b0db944b8f9eb8b8ff23431a166f6e 2026-10-23 fix(knowledge): hide parser hint for read-only users (#4487) +8c188986a51049b6b6b3d801907ae36405705b0d 2026-10-23 fix(search): isolate multi-KB embedding dimensions (#4659) +30658b7d43bf6415537435c42a5c4e95f2766b8d 2026-10-23 fix(mcp): offload chat metadata lookups from event loop (#4499) +45c8a7f1266827094b44e05fea15643727ced284 2026-10-24 fix(docreader): preserve transparency in PPTX fallback images (#4678) +e1f9a6166a593a4804a2f99f1d942919c9cc8ea7 2026-10-24 fix(docreader): preserve external EPUB image references (#4676) +bb979f63b9aab4304e70cebed83881aaba7641a1 2026-10-26 fix(wiki): generate SQLite title trigrams per word (#4679) +c0e6663c2ec3f9988dc27a24625261332798bbd4 2026-10-26 fix(agent): clear the exhausted-compaction mark when a compaction succeeds (#4677) +f64f3d95dd4226a3431d78ab4e9530563a391103 2026-10-26 fix(system): keep sandbox deep-check probe previews valid UTF-8 (#4675) +9e54a69e69e62c7bfad0be93c032f9a918148fd0 2026-10-26 fix(sandbox): keep stderr previews in user-facing errors valid UTF-8 (#4674) +68361299e1ffcd426b2602a79eed9e4afe88ed68 2026-10-26 fix(agent): truncate tool-call hints by runes, not bytes (#4673) +1d328a9600bcdf7ef586ccdd6a2d739e5658f42e 2026-10-26 fix(agent): compact the unsanitized history on overflow recovery (#4672) +3e6e3bb137e973b24d9a58ea4c83e1298fa6b845 2026-10-26 fix(client): cap SDK error response bodies at 1 MiB (#4721) +0bd6cde1210306488cbb49e29a4fb3fc204b5557 2026-10-26 fix(chat): keep distinct facts in partial-overlap dedup (#4719) +52e4cf8f8e0741d34ba82f1a2e61e9c6364248ae 2026-10-26 fix(docparser): recover malformed PDFs with the builtin reader (#4716) +14ca4824dd774c40208916cd51aad84ba24c1151 2026-10-26 fix(docreader): bound embedded PDF image selection memory (#4715) +46f1331a3380644ed6f655116fad94f3e749b6f8 2026-10-26 fix: preserve shared sandboxes across skill updates (#4729) +d8e380046735bcf05f2384834f3e335920641f1b 2026-10-26 fix(settings): preserve retrieval changes during autosave (#4722) +ca96726889bfc885fb12086c389dd25daaa1fb4d 2026-10-26 fix: show async postprocess duration in trace (#4711) +cfb2dda03913b826797a5ae098d7d8d9e993be22 2026-10-26 fix(rerank): describe score scales by endpoint output (#4701) +236d796147e719ddf4a1ea7f204a813c39972b05 2026-10-26 fix(sqlite): support organization and wiki searches (#4698) +6feabaa4df5c860b1336dccbf323c199396eb291 2026-10-26 fix(knowledge): cap the knowledge-base definition body at 1 MiB (#4730) +65052ea8456a2fbbcec2e38bc7cc1ad34297a9a8 2026-10-26 docs(api): document VLM setup when creating a knowledge base (#4695) +4f6e6af1836017e0641eb9eac2ee5763f3dbdb58 2026-10-26 fix(knowledge): configurable question-generation token budget (#4690) +7aa881cac7b7351475261f885e8b712f9a8d6197 2026-10-26 fix(knowledge): feed OCR chunks to auto-tag classification (#4689) +f929daef645165d89c2e657b0af874cbc491e7a7 2026-10-26 fix(organization): ignore stale member search responses (#4726) +7f869198659eec5c5883be5c6b71fb3d38d7fae5 2026-10-26 fix(cli): trim env credentials in auth token output (#4696) +8a52858d877189fec1ccbd6770d3649b835ad206 2026-10-26 fix(docreader): prevent XLSX chunking timeouts (#4683) +4aefbe64cb6a9587d6b0b682fe33ebb4208c7a79 2026-10-26 fix(agent): stop repeated failed tool calls (#4334) +293d659ddd91c23cce263bc2db5975a415f2f9bd 2026-10-26 fix(docreader): report the file size limit in MB (#4670) +c554598f2218aea9ebc1624f8ba6318bfb8fb178 2026-10-26 fix(cli): carry --modified-args/--reason in the exit-10 retry argv (#4686) +657a3ffc88c774ce8b4da0e7842826f5f04e08da 2026-10-26 fix(docparser): budget the CSV table render before padding it out (#4702) +ee49d73560f9ed8cf54720536b8c3bee0e739a63 2026-10-26 fix(knowledge): cap the hybrid-search body at 1 MiB (#4731) +f40d9697923eb764985164681447f74bac6bfa42 2026-10-26 fix(docreader): preserve regex semantics when splitting text (#4669) +42835ae56c774611e432668b54a60e5aadcb3f70 2026-10-26 fix(docreader): preserve declared XLSX shared string parts (#4666) +6019fab4e8bda200f7438dabc6fd64183887e8fe 2026-10-26 fix(skills): truncate a downloaded skill error body at a rune boundary (#4665) +9688748b73ffc34f507cdb20aeaff4e4377aa37c 2026-10-26 fix(docreader): bound streamed PDF image memory (#4664) +139b4b481b9b9c9f4e4eb87d3e1f548a083de8f3 2026-10-26 fix(memory): resolve shared-agent memory in the caller's workspace (#4663) +7298da67a00d79032c5d109f8cf6c05531d687c0 2026-10-26 fix(agent): treat model_context_window_exceeded as a length stop in compaction (#4681) +dea0a30c5f235ee6382bad49166a0841d04ad22e 2026-10-26 fix(modelcontext): preserve citations in JSON strings (#4733) +b476e008e6794864e481d13b52d07591786e221b 2026-10-26 fix(models): ask Claude for summarized thinking in adaptive mode (#4184) +f1e1e44f07565788d7606eaa8b9dfff7837ac6be 2026-10-26 fix(agent): preserve native integer literals during parameter casting (#4483) +c0b0cebf4ec57e8985f245a920562c5933da06b9 2026-10-26 fix(agent): normalize Python physical newlines before quote checks (#4482) +fd7a2586fd5855fc4ded5c981a92dcb82a455246 2026-10-26 fix(docparser): escape standalone image filenames in Markdown (#4475) +7c8cb4585455bc84440a6cd58ee942f72e5e15df 2026-10-26 fix(settings): ignore stale member list search responses (#4735) +e0f7f7ea0d5d547d1869a340c2e893aade7b51ff 2026-10-26 fix(docparser): attach api key in MinerU protocol detection (#4470) +97d7f0ad7b2b9fbd8bd717d737b9e79be6ace4c9 2026-10-26 fix(search): keep vector hits when keyword retrieval fails (#4459) +18e22de6b23927bcec3276e08917f901a52aba2a 2026-10-26 feat(assistant): add contextual entry points and guided actions (#4757) +22a331a2eac6d9ca367cd2fd2cf295cf42c4526e 2026-10-26 feat(assistant): tailor welcome questions to the current page (#4758) +2770f5826e670a262e15bd51e86b2d5abfc146be 2026-10-26 fix(mcp): add VS Code setup and pin the stdio fallback (#4363) +b93535235c5dac836d49b79bb0fde146551b158b 2026-10-26 fix(multimodal): fall back to knowledge base VLM when document model is unavailable (#4743) +184cec1ac51d6761b36f4def130c12946a723664 2026-10-26 fix(feishu-drive): skip OS metadata files instead of failing the sync (#4738) +fd6df69d23278b32db7664a0f8c8f848a41af727 2026-10-26 fix(web-fetch): report a Chromium deadline as a retryable timeout (#4468) +662abaf9f944e37689d04c42160034b2cdec6829 2026-10-26 fix(feishu): checkpoint sync rounds that skip every node (#4736) +c72c7ed6d4a5446686ed42d37bbe48f5934987c6 2026-10-27 feat(assistant): ground welcome questions in the open page +093ddd87184fcb07813c9da7a082f1fb34a59d58 2026-10-27 fix(helm): derive safe app rollout strategy for RWO storage (#4756) +aa58192f810496223745848a4e814a1846020f28 2026-10-27 fix(models): prevent heartbeats from restoring released concurrency leases (#4755) +49a0ade98cdb83cf779e3e7844e4f0709d8c7672 2026-10-27 fix(cli): classify keychain read failures as keychain_denied, not token_expired (#4684) +1a55ed4cd69510d16b877918c8069a2624ff2cd5 2026-10-27 fix(im): preserve attachment filenames (#4752) +ac282d77cdf62e5bae0d59c7ba8041082a005a43 2026-10-27 fix(client): expose knowledge-base parser engine rules (#4753) +30ffee8c4ea1f8772d9e2170249ffed2c2c69b64 2026-10-27 fix(sandbox): rebind a file op when the container has already stopped (#4749) +82aeba357aa87d1bd36c800ce38bed742e8d5da3 2026-10-27 fix(modelcontext): keep literal ref text out of citation expansion (#4748) +db1b0e1e519c3f422549bc826aa2a9e1ae72313d 2026-10-27 fix(metric): keep every sentence in BLEU and ROUGE scores (#4746) +1fca535a0f984a4ec42949bfd3657c931c903247 2026-10-27 refactor(wiki): remove unused string truncation helper (#4744) +b595e874eabacf0685bbcbfa86fb7f3e5e1d9d29 2026-10-27 fix(docparser): 限制 CSV 转换膨胀并支持取消 (#4485) +60ef4d77c4b09144691005f6e637271072188c3e 2026-10-27 fix(parser): route PPTX vector media through docreader (#4705) +e807e6523eea42ec22a5f7e212ae92bb2d788216 2026-10-27 fix(googlegenai): count tool-use prompt tokens as input tokens (#4594) +cb0e1bc1a940df469d6303af333a0c9799129002 2026-10-27 fix(web-search): truncate the DuckDuckGo result title at a rune boundary (#4615) +2309f63c5d3cf6a627ea698eff64fb7fd3f13c17 2026-10-27 fix(knowledge): bound batch polling and ignore stale responses (#4648) +3db70c29add6891e36974497e3faa3e696025b6f 2026-10-27 feat(server): allow explicit frontend directory in standard edition (#4637) +dfa3e5c52bfe7da17c2e9db274f8dae54e00b66f 2026-10-27 fix(docreader): honor explicit MHTML root parts (#4636) +ef23a1641b9aa0d53e55d85e52b6a068441f993d 2026-10-27 fix(docreader): preserve code fences during table normalization (#4494) +71c073ac015158e04c8216930b17f83ee3460ba5 2026-10-27 feat(vlm): make max_tokens configurable via VLM_MAX_TOKENS (#4478) +7438142cf80891b513ec060e472fd9b8b4c1922e 2026-10-27 feat(mcp): support document-scoped knowledge search (#4463) +1a510d09621ace17e37043694231a422d06d79af 2026-10-27 fix(chat): generate concise sidebar session titles (#4465) +70ee2cf58e3f9ef16f8e0bf7d313252fd0392d79 2026-10-27 fix(web-search): make default provider changes atomic (#4454) +f420ecfa995bf5da88183c9429a4d02c7d9f36de 2026-10-27 fix(docreader): keep spreadsheet cells that say N/A, None or NULL (#4452) +c0febacb43619d2f993a996d5d5876fefda56a3d 2026-10-27 fix(docreader): keep the text of DOCX content controls and tracked insertions (#4448) +dc881cb48bb0c7bd3a57f762e5875595c1d0d0e0 2026-10-27 fix(docreader): keep the footer rows of an HTML table in that table (#4441) +48788693b6efc325a06e33ceec0f00a0cbc89b2b 2026-10-27 fix(preview): apply Markdown typography to knowledge doc preview (#4439) +75c1178008ce351f6874a604c4359d60eda96ed1 2026-10-27 fix(agent): describe uploads when the chat model cannot see images (#4219) +5ca9cabb65e2b9daa8a3fdb0d838b653b4da543d 2026-10-27 fix(data-analysis): read legacy xls workbooks (#4218) +d59d4f9cfb99cdf339e3762993edd0149b077be0 2026-10-27 fix(client): close the response body on the duplicate-URL path (#4202) +83a2c45dba4043882582f797a25cb031ae945fcb 2026-10-27 fix(cli): emit bool retry_argv flags in the form pflag can parse back (#4197) +501d04280ebc0af228d407660c3f811c6a67d4f3 2026-10-27 fix(frontend): distinguish graph availability errors from disabled state (#4172) +868198a9d667502ddf110e0361d2dd4ec855391d 2026-10-27 fix(docreader): keep Excel header labels unique (#4160) +6b981bfef936b6e55c5ad56ff68d71eca0000a34 2026-10-27 feat(helm): support app.extraVolumes and app.extraVolumeMounts (#4332) +186c9d571cfa7a1e3d447bba4a6803e94fc65cab 2026-10-27 fix(housekeeping): scan the queues once per sweep, not once per row (#4360) +735eeb1f2db4a9fe7fec34aa0a961cbcc8da9f71 2026-10-27 fix(docreader): preserve numeric rows in PDF text extraction (#3228) +35fa71361719c127e6fd7bd8a6d5cac9d5b84c29 2026-10-27 fix(frontend): tolerate malformed EPUB paths and clean up failed previews (#4324) +36c40453fa6cc7509ee38b9826c1fdfaaa16e597 2026-10-27 perf(search): reuse fixed query-expansion regexps (#4309) +91228c9239709089246e4fe8922d4d04265f355f 2026-10-27 fix(audit_log): stop the retention loop in the ticker cadence test (#4308) +00a07efcec53e9da54ef9a039af5242ed745ad01 2026-10-27 fix(repository): SearchUsers 兼容 SQLite 方言并转义 LIKE 通配符 (#3996) +93d0dd05505cc98143f973d56adf98d72d292824 2026-10-27 fix(agent): 保留上下文超长恢复时的原始消息结构 (#4280) +3f573a490ea12805a40006ae4dcfa8ae967eec60 2026-10-27 fix(ui): preserve explicit zero chunk_overlap when loading KB settings (#4274) +d7c836e6587e1ab95c2ec8caa309bd638c82f06f 2026-10-27 fix(frontend): keep distinct reasoning visible beside final answers (#4267) +81aa65d3b9cfe71ae75d2d52f687ad87d0b6cfb0 2026-10-27 fix(docreader): preserve all modern XMind topic groups (#4266) +0b505b90d6b3a57cf1f61763234ed0bafd50e5c6 2026-10-27 fix(frontend): release queued refreshes when browser storage fails (#4265) +3d3ff8e95655d8c4df7477c3e6f6f301d93fd15f 2026-10-27 fix(client): preserve agent reasoning effort during updates (#4264) +448eac4426739521b3ea4523eaf5ef9e83092f35 2026-10-27 test: cover qdrant copy pagination (#4162) +9fe7de2c00ebed25b4aa3a2ccb0ee02fb799772f 2026-10-27 test(security): cover NAT64 encodings in TestIsRestrictedIP_IPv6 (fixes #4092) (#4263) +496d25dc3ca5fc813911220056c1d95aeb8463dc 2026-10-27 fix(mcp): honor a leading UTF-8 BOM in chat streams (#4262) +51ee7b869ba3b01e77b697d39b05d88fad23f8ea 2026-10-27 fix(cli): report chunk truncation only when rows are omitted (#4260) +a9d01d015446b446c3319f70b96e3060fe1b5a0e 2026-10-27 fix(cli): reject invalid jq syntax before polling (#4258) +c573d727d8e2a45b8ee23add47b292a2178b2c31 2026-10-27 fix(cli): preserve raw MCP document download bytes (#4256) +72d68653d0d6ff6d2106939840e03d0dd6cf025d 2026-10-27 fix(client): encode file type filters as a comma-separated value (#4240) +191e527a0538f8d815918c7972748f20927d2131 2026-10-27 fix(ui): allow Owner to demote themselves on the members page (#4213) +6e91b671ee7bea694ca5a21059443c1ba9ffe0cb 2026-10-27 fix(knowledge): drop generated questions when the switch is off (#4096) +aadbd05a9b54577ceba63b67d9c145a533f24e9e 2026-10-27 fix(embed): keep allowed_origins when a channel update omits it (#4205) +80ce846328d0ccb68417e2772c65030330c13d23 2026-10-27 fix(skills): explain unfederated skills.sh imports (#4196) +6c57449d6d728ff2c58dbb11b8bf948faab5cc31 2026-10-27 fix(agent): invalidate context checkpoints when rewinding steered turns (#4143) +2aef22b6045186f5b2c8f951f4bdc79beaf5d71e 2026-10-27 fix(session): cap text attachments at 32 KiB instead of failing on long lines (#4148) +aefe6d22e96d0b4379272695895434699cb667bb 2026-10-27 fix(frontend): 通用选择器创建临时数据源前先校验可创建 (#4050) +dcec06cbe248661c09baf38f8cbe10826ddc4c44 2026-10-27 fix: reject missing qdrant embeddings (#4165) +c100c07fde346ff0e7118ccba947c80a9e669abf 2026-10-27 fix qdrant collection matching (#3089) +d2d8e34aa79380493141983dc8ca2fd68537841d 2026-10-27 fix(chat): lazy-load noVNC only when opening sandbox desktop (#4034) +6520c19ffd3bc4d1f96d27042a5e5e9848fd62ec 2026-10-27 fix(build): inject version metadata into compose-built app images (#4123) +44f16dd2f216ae9a4bcf4341988e102b82be0587 2026-10-27 fix(embed): preserve draft when attachment read fails (#4118) +36de0d2d580ead8d848d232d83a525196d20756a 2026-10-27 fix(sandbox): support Docker Desktop socket permissions (#3088) +a731395b10362731488dab77ec219e0b0fd18354 2026-10-27 fix(lite): load dotenv files before server startup (#3618) +07e6a06d76a28e7435d97ae802c437be3f262ebb 2026-10-27 fix(chat): preselect the answer's knowledge base when saving to a KB (#3853) +208d76cf5669a56b05c42f59a79158d7d9593459 2026-10-27 fix(agent): validate graph relation evidence in every query scope (#3955) +fae4afd902e7d84b120d48380b92a334a2344c1a 2026-10-27 fix(mineru): split large Cloud PDFs without checkpoint storage (#4030) +ed142ba3c71926d0d3b3eda8ab2a6a53df50606e 2026-10-27 fix(download): preserve existing files when transfers fail (#3988) +6d8adb7c8aa85ffc89e1257ec0c91470af5d446a 2026-10-27 fix(agent): retain new file paths when compaction tracking is full (#4003) +42cc49333f3d715301ee564d899da963e9ebe94a 2026-10-27 fix(agent): reject overlapping matches in unique sandbox edits (#4002) +8d87d5e70cb136ea27955c16f64d4e396f2082c7 2026-10-27 fix(assistant): let the assistant list the artifact library +26fe2a08e9f63ae34c79584957e4f375408dea4a 2026-10-27 feat(assistant): give each settings page its own starter questions (#4762) +98fb3f91c2233612855375cf804bb97005f00a87 2026-10-27 fix(datasource): make knowledge replacement transactional (#4473) +0645a572e65dbc8e0c3a8440af16ee2061a71547 2026-10-27 fix(datasource): retain retry cursors on ingestion failure (#3852) +e93739625e0d2ccee8b6ae9c0dc899c25b75b172 2026-10-27 fix(automation): prevent premature SQLite automation claims (#4501) +f319acf783589a2cad539874d18a2387eeca012a 2026-10-27 fix(agent): recover final-answer context overflow and propagate synthesis errors (#4629) +cdd70b35d5225d74ada50d6d6b673a0edca5f00a 2026-10-27 fix(models): preserve string fields in streamed tool arguments (#4253) +38621dba875847585678340168af549a94cadb58 2026-10-27 fix(models): assemble multiline provider SSE packets (#4255) +8317220bc8fbcb126cc7fdd87c6d7d4f2554fb0a 2026-10-27 fix(chat-pipeline): honor normalized graph search targets (#4530) +9ae4f3efcd396f061745986ebac935bb30a0b3a0 2026-10-27 fix(kb-delete): give wiki cleanup its own longer timeout budget (#4292) +56425b151d8f601d5b8a2978ca899da8b3694760 2026-10-27 fix(sandbox): recover timed-out filesystem operations and staged attachments (#3921) +ae6e35678302eb25b179d2c1e843da028f789a2f 2026-10-27 fix(knowledge): add missing POST /knowledge-bases/:id/rebuild-index route (#4621) +12ffe1afe4c79ca45710f73b3862077884667c6d 2026-10-27 fix(docparser): decode GBK and UTF-16 text files in the simple reader (#4446) +90db95d81161770f60c4726d1e0edba8d6564bee 2026-10-27 fix(docreader): recognize Unicode BOMs before legacy decoding (#4498) +1bc28444f4a75baffa76aea84824b90fa78d9e41 2026-10-27 fix(chunker): preserve explicit zero chunk_overlap on ingest (#4276) +24e409bea1c870e572500f5950705ad9450898b5 2026-10-27 fix(knowledge): strip think blocks from generated questions and summaries (#4691) +eca7ffd4bbb59944bc25bac790f4be1d748cee9e 2026-10-27 fix(chat): retry history loading after transient failures (#4186) +6c9a1176c519a29cf493fccc4f54d30f556fdc7d 2026-10-27 fix(tenant): honor default storage quota across creation paths (#3213) +b5550eff9a1d513a08960df47ae44b6b3d0e51ca 2026-10-27 fix(datasource): retain scheduled syncs after oversized DingTalk files (#4505) +d25fed4ba29547421988295c950947ebfbf6d0d0 2026-10-27 fix(ui): keep knowledge folders readable and shrink tag editing (#4765) +3d76b486e43838abbe96e3a073aaf1336bf3377a 2026-10-27 fix(agent): discard failed stream drafts before retry (#4780) +c8f1a66df5de7fcebcc0a6e672f73df5f69a5d2d 2026-10-27 fix(mcp): reject malformed knowledge base selectors (#4773) +4beff972f1bc65ac679c1434bfdb811acfb7d177 2026-10-27 fix(config): reject malformed environment-expanded YAML (#4770) +f5b0553193772dc928831bc037ec3ef02835a9d0 2026-10-27 fix(models): preserve Responses API refusal text (#4766) +04bd71e5a0088399f602cd7eac5e840e90b26fe4 2026-10-27 fix(agent): show matches in long file search lines (#4774) +25cdf45209ab1ad9c9b0bacf0a517edac608a849 2026-10-27 fix(metric): normalize MAP by all relevant documents (#4771) +256a3f2966866337f7dc3c5fcc10037f2ae18d52 2026-10-27 feat(lite): ask before host deletes and widen the sandbox on approval (#4076) diff --git a/docs/release-v0.9.0-files.tsv b/docs/release-v0.9.0-files.tsv new file mode 100644 index 00000000000..20ec2df27eb --- /dev/null +++ b/docs/release-v0.9.0-files.tsv @@ -0,0 +1,1812 @@ +status path +M .env.example +M .github/workflows/app.yml +M .golangci.yml +M Makefile +M README.md +M README_CN.md +M README_JA.md +M README_KO.md +M THIRD_PARTY_NOTICES.md +A cli/cmd/agent/reasoning_effort_roundtrip_test.go +M cli/cmd/auth/token.go +A cli/cmd/auth/token_env_trim_test.go +M cli/cmd/chunk/list.go +A cli/cmd/chunk/list_truncation_test.go +M cli/cmd/doc/download.go +A cli/cmd/doc/download_interrupted_test.go +A cli/cmd/doc/wait_jq_validation_test.go +M cli/cmd/search/sessions.go +M cli/cmd/search/sessions_test.go +M cli/cmd/session/list.go +M cli/cmd/session/list_test.go +M cli/cmd/session/tool_approval.go +A cli/cmd/session/tool_approval_retry_argv_test.go +M cli/internal/cmdutil/agentconfig.go +M cli/internal/cmdutil/authrefresh.go +A cli/internal/cmdutil/authrefresh_keychain_test.go +M cli/internal/cmdutil/confirm.go +M cli/internal/cmdutil/confirm_test.go +M cli/internal/cmdutil/format.go +A cli/internal/mcp/download_bytes_test.go +M cli/internal/mcp/tools.go +M client/agent.go +M client/agent_manage.go +M client/agent_manage_test.go +M client/client.go +A client/download_interrupted_test.go +M client/knowledge.go +A client/knowledge_body_close_test.go +A client/knowledge_filter_test.go +A client/knowledge_tags_test.go +M client/knowledgebase.go +A client/knowledgebase_parser_engine_rules_test.go +A client/knowledgebase_patch_test.go +M client/mcp_service.go +A client/response_limit_test.go +M client/session.go +A client/session_test.go +M cmd/server/main.go +M config/builtin_agents.yaml +M config/prompt_templates/agent_system_prompt.yaml +M config/prompt_templates/generate_session_title.yaml +M docker-compose.dev.yml +M docker-compose.yml +M docker/Dockerfile.app +M docreader/README.md +M docreader/config.py +M docreader/main.py +M docreader/parser/docx_parser.py +M docreader/parser/epub_parser.py +M docreader/parser/excel_parser.py +M docreader/parser/html_parser.py +A docreader/parser/image_preprocess.py +M docreader/parser/markdown_parser.py +M docreader/parser/markitdown_parser.py +M docreader/parser/mhtml_parser.py +M docreader/parser/parser.py +M docreader/parser/pdf_parser.py +M docreader/parser/pptx_media.py +A docreader/parser/stream.py +M docreader/parser/xlsx_merge.py +M docreader/parser/xlsx_repair.py +M docreader/parser/xmind_parser.py +A docreader/preprocess.py +A docreader/preprocess_worker.py +M docreader/proto/docreader.pb.go +M docreader/proto/docreader.proto +M docreader/proto/docreader_grpc.pb.go +M docreader/proto/docreader_pb2.py +M docreader/proto/docreader_pb2.pyi +M docreader/proto/docreader_pb2_grpc.py +M docreader/pyproject.toml +A docreader/testdata/html_main_content/article_page.html +A docreader/testdata/html_main_content/chrome_heavy_page.html +A docreader/testdata/html_main_content/form_page.html +A docreader/testdata/html_main_content/link_list_page.html +A docreader/testdata/html_main_content/short_notice.html +A docreader/tests/preprocess_worker_fixture.py +M docreader/tests/test_config.py +A docreader/tests/test_decode_bytes_bom.py +A docreader/tests/test_docreader_memory.py +A docreader/tests/test_docreader_stream.py +M docreader/tests/test_docx_merge.py +M docreader/tests/test_docx_tables.py +A docreader/tests/test_epub_external_images.py +M docreader/tests/test_epub_parser.py +M docreader/tests/test_excel_parser.py +M docreader/tests/test_html_parser.py +A docreader/tests/test_html_table_footer.py +A docreader/tests/test_image_preprocess.py +A docreader/tests/test_markdown_table_fences.py +A docreader/tests/test_mhtml_root.py +M docreader/tests/test_parser_routing.py +M docreader/tests/test_pdf_embedded_images.py +M docreader/tests/test_pdf_router.py +M docreader/tests/test_pptx_media.py +A docreader/tests/test_preprocess_runner.py +A docreader/tests/test_request_memory.py +A docreader/tests/test_table_cell_pipes.py +M docreader/tests/test_utils_split.py +A docreader/tests/test_xlsx_percent_format.py +A docreader/tests/test_xlsx_repair.py +M docreader/tests/test_xmind_parser.py +M docreader/utils/endecode.py +A docreader/utils/request_memory.py +M docreader/utils/split.py +M docreader/uv.lock +M docs/LITE.md +A docs/assets/postprocess-inclusive-duration.png +A docs/assets/search-settings-rrf.png +A docs/design/agent-automation.md +A docs/design/agent-hitl-suspend-resume.md +A docs/design/agent-permission-model.md +A docs/design/assistant-agent-collaboration.md +A docs/design/image-pipeline-naming.md +M docs/docs.go +A docs/swag.overrides +M docs/swagger.json +M docs/swagger.yaml +M docs/swagger_contract_test.go +A frontend/e2e/README.md +A frontend/e2e/novnc.md +A frontend/e2e/novnc.spec.ts +M frontend/package-lock.json +A frontend/scripts/copy-pdfjs-wasm.d.mts +A frontend/scripts/copy-pdfjs-wasm.mjs +A frontend/scripts/copy-pdfjs-wasm.test.mjs +M frontend/src/api/agent/index.ts +A frontend/src/api/assistant.ts +A frontend/src/api/automation.ts +A frontend/src/api/chat/background-work.ts +M frontend/src/api/chat/index.ts +A frontend/src/api/chat/streamTypes.ts +M frontend/src/api/chat/streame.test.ts +M frontend/src/api/chat/streame.ts +M frontend/src/api/chat/streameOverlap.test.ts +M frontend/src/api/embed/index.ts +M frontend/src/api/knowledge-base/index.ts +M frontend/src/api/mcp-service.ts +M frontend/src/api/retrieval.ts +M frontend/src/api/system/index.ts +A frontend/src/assets/img/assistant.svg +A frontend/src/assets/img/automation-green.svg +A frontend/src/assets/img/automation.svg +A frontend/src/components/ChatActionIcon.vue +M frontend/src/components/ChatAttachmentPreviewDrawer.vue +M frontend/src/components/ChatHeader.vue +M frontend/src/components/ChatReferencesDrawer.vue +M frontend/src/components/ChatRequestInfoButton.vue +A frontend/src/components/ChatTimelineIcon.motion.test.ts +A frontend/src/components/ChatTimelineIcon.vue +M frontend/src/components/EmbedInputField.test.ts +M frontend/src/components/EmbedInputField.vue +M frontend/src/components/GlobalCommandPalette.vue +M frontend/src/components/GlobalCommandPalette/ResultItem.vue +M frontend/src/components/GlobalCommandPalette/commands.ts +A frontend/src/components/GlobalInvitationBell.test.ts +M frontend/src/components/GlobalInvitationBell.vue +M frontend/src/components/Input-field.agent-switch.test.mjs +M frontend/src/components/Input-field.focus.test.mjs +M frontend/src/components/Input-field.vue +M frontend/src/components/KBInfoPopover.vue +M frontend/src/components/ModelEditorDialog.vue +A frontend/src/components/ResourceCardAvatar.vue +M frontend/src/components/ResourceListToolbar.vue +A frontend/src/components/SandboxConfigEditorDrawer.allocation.test.ts +M frontend/src/components/SandboxConfigEditorDrawer.vue +M frontend/src/components/SandboxSkillsPanel.vue +M frontend/src/components/SettingsModalShell.vue +M frontend/src/components/SkillFilesDrawer.vue +M frontend/src/components/UserMenu.vue +A frontend/src/components/assistant/AssistantAccessPicker.vue +A frontend/src/components/assistant/AssistantActionButton.test.ts +A frontend/src/components/assistant/AssistantActionButton.vue +A frontend/src/components/assistant/AssistantActionsButton.vue +A frontend/src/components/assistant/AssistantButton.vue +A frontend/src/components/assistant/AssistantContextChip.test.ts +A frontend/src/components/assistant/AssistantContextChip.vue +A frontend/src/components/assistant/AssistantContextMenu.vue +A frontend/src/components/assistant/AssistantCreateDialog.vue +A frontend/src/components/assistant/AssistantLauncher.vue +A frontend/src/components/assistant/AssistantPageBridge.vue +A frontend/src/components/assistant/AssistantPanel.test.ts +A frontend/src/components/assistant/AssistantPanel.vue +A frontend/src/components/assistant/AssistantSelectionBubble.vue +A frontend/src/components/assistant/AssistantSelectionChip.vue +A frontend/src/components/assistant/AssistantWorkflows.test.ts +A frontend/src/components/assistant/PageFillNotice.vue +M frontend/src/components/chat/SandboxSidePanel.vue +A frontend/src/components/css/assistant-page-fill.less +M frontend/src/components/css/chat-citations.less +M frontend/src/components/css/chat-message-shared.less +A frontend/src/components/css/chat-scrollbar.less +M frontend/src/components/css/chat-timeline-loading.less +A frontend/src/components/css/chat-timeline-theme.less +M frontend/src/components/css/markdown.less +M frontend/src/components/css/resource-card.less +M frontend/src/components/doc-content.vue +A frontend/src/components/document-preview.encoding.test.ts +A frontend/src/components/document-preview.errors.test.mjs +M frontend/src/components/document-preview.vue +M frontend/src/components/icons/ResourceIcon.vue +M frontend/src/components/knowledge-processing-timeline.vue +M frontend/src/components/manual-knowledge-editor.vue +M frontend/src/components/menu.vue +M frontend/src/components/modelEditorFlow.test.ts +A frontend/src/components/previewMarkdownTypography.test.ts +M frontend/src/components/sessionGrouping.ts +M frontend/src/components/settings/SettingDrawer.vue +M frontend/src/components/source-preview/PdfSourceViewer.vue +A frontend/src/components/source-preview/pdfjsWasmAssets.test.mjs +M frontend/src/components/upload-tasks/UploadTasksPanel.vue +M frontend/src/composables/citationPopoverCallers.test.ts +A frontend/src/composables/useAssistantPageContext.ts +A frontend/src/composables/useChatScrollFollow.test.ts +A frontend/src/composables/useChatScrollFollow.ts +A frontend/src/composables/useChatStreamHandler.collaboration.test.ts +A frontend/src/composables/useChatStreamHandler.dataChange.test.ts +M frontend/src/composables/useChatStreamHandler.integration.test.ts +A frontend/src/composables/useChatStreamHandler.pageButton.test.ts +A frontend/src/composables/useChatStreamHandler.suspend.test.ts +M frontend/src/composables/useChatStreamHandler.test.mjs +M frontend/src/composables/useChatStreamHandler.ts +A frontend/src/composables/useChildAgentStream.test.ts +A frontend/src/composables/useChildAgentTabs.test.ts +A frontend/src/composables/useChildAgentTabs.ts +A frontend/src/composables/useChildAgentViewer.test.ts +A frontend/src/composables/useChildAgentViewer.ts +M frontend/src/composables/useConfigSkillInstallProgress.test.ts +A frontend/src/composables/useConnectorLabel.ts +A frontend/src/composables/useEmbedChatSession.test.ts +M frontend/src/composables/useEmbedChatSession.ts +M frontend/src/composables/useFloatingPreviewDrag.test.ts +M frontend/src/composables/useFloatingPreviewDrag.ts +M frontend/src/composables/useModalShell.test.ts +M frontend/src/composables/useModalShell.ts +A frontend/src/composables/usePromptCountdown.ts +A frontend/src/composables/usePromptDock.test.mjs +A frontend/src/composables/usePromptDock.ts +M frontend/src/composables/useSandboxDesktop.ts +M frontend/src/composables/useStickyBottomOnResize.ts +A frontend/src/composables/useStreamingHeightFloor.test.ts +A frontend/src/composables/useStreamingHeightFloor.ts +M frontend/src/config/deploymentCapabilities.test.ts +M frontend/src/config/deploymentCapabilities.ts +M frontend/src/config/settingsAccess.ts +M frontend/src/config/settingsRoute.test.ts +M frontend/src/config/settingsRoute.ts +A frontend/src/hooks/useKnowledgeBase.test.ts +M frontend/src/hooks/useKnowledgeBase.ts +M frontend/src/i18n/embed.ts +M frontend/src/i18n/index.ts +M frontend/src/i18n/localeKeyAudit.test.ts +M frontend/src/i18n/localeKeyAudit.ts +M frontend/src/i18n/locales/en-US.ts +M frontend/src/i18n/locales/ja-JP.ts +M frontend/src/i18n/locales/ko-KR.ts +M frontend/src/i18n/locales/ru-RU.ts +M frontend/src/i18n/locales/zh-CN.ts +M frontend/src/i18n/locales/zh-TW.ts +A frontend/src/i18n/pluralizationRules.ts +M frontend/src/main.ts +M frontend/src/router/index.ts +A frontend/src/stores/assistant.ts +A frontend/src/stores/chatResources.test.ts +M frontend/src/stores/chatResources.ts +M frontend/src/stores/menu.ts +M frontend/src/stores/ui.ts +M frontend/src/stores/uploadQueue.test.ts +M frontend/src/stores/uploadQueue.ts +M frontend/src/stores/uploadTasksCore.ts +A frontend/src/test-utils/cssRuleMatcher.ts +A frontend/src/test-utils/vueFixture.ts +M frontend/src/types/knowledgeProcess.ts +M frontend/src/types/tool-results.ts +M frontend/src/utils/agent-tool-display.test.mjs +M frontend/src/utils/agent-tool-icons.ts +A frontend/src/utils/agentTimelinePresentation.test.ts +A frontend/src/utils/agentTimelinePresentation.ts +A frontend/src/utils/askUser.test.ts +A frontend/src/utils/askUser.ts +A frontend/src/utils/assistantDataChange.test.ts +A frontend/src/utils/assistantDataChange.ts +A frontend/src/utils/assistantPageLink.test.ts +A frontend/src/utils/assistantPageLink.ts +A frontend/src/utils/assistantRouteTitle.test.ts +A frontend/src/utils/assistantRouteTitle.ts +M frontend/src/utils/authRefresh.test.ts +M frontend/src/utils/authRefresh.ts +A frontend/src/utils/automationSchedule.test.ts +A frontend/src/utils/automationSchedule.ts +A frontend/src/utils/backgroundWork.test.ts +A frontend/src/utils/backgroundWork.ts +A frontend/src/utils/catalogToolDisplay.test.ts +A frontend/src/utils/catalogToolDisplay.ts +M frontend/src/utils/chatMarkdownRenderer.ts +M frontend/src/utils/chatMessageShared.ts +A frontend/src/utils/chatTimelineIconMotion.ts +A frontend/src/utils/collaborationDisplay.test.ts +A frontend/src/utils/collaborationDisplay.ts +M frontend/src/utils/documentPreviewMarkdown.test.ts +M frontend/src/utils/documentPreviewMarkdown.ts +A frontend/src/utils/embedContext.test.ts +M frontend/src/utils/embedContext.ts +M frontend/src/utils/epubPreview.test.ts +M frontend/src/utils/epubPreview.ts +M frontend/src/utils/filePreview.test.ts +M frontend/src/utils/filePreview.ts +A frontend/src/utils/finalAnswer.test.ts +M frontend/src/utils/finalAnswer.ts +A frontend/src/utils/historyPagination.test.ts +A frontend/src/utils/historyPagination.ts +M frontend/src/utils/imageAttrDisplay.test.ts +M frontend/src/utils/imageProcessingConfig.test.ts +M frontend/src/utils/imageProcessingConfig.ts +M frontend/src/utils/knowledgeTrace.test.ts +M frontend/src/utils/knowledgeTrace.ts +M frontend/src/utils/manualKnowledgeDraft.test.ts +M frontend/src/utils/manualKnowledgeDraft.ts +M frontend/src/utils/markdownDomPurify.ts +A frontend/src/utils/markdownTitleDedupe.test.ts +A frontend/src/utils/markdownTitleDedupe.ts +A frontend/src/utils/notificationPreview.test.ts +A frontend/src/utils/notificationPreview.ts +A frontend/src/utils/pageActionResponder.ts +A frontend/src/utils/pageAwareness.ts +A frontend/src/utils/pageFill.ts +A frontend/src/utils/pageReveal.test.ts +A frontend/src/utils/pageReveal.ts +A frontend/src/utils/pageSnapshot.ts +A frontend/src/utils/pageText.test.ts +A frontend/src/utils/pageText.ts +A frontend/src/utils/pptxRuntime.test.ts +A frontend/src/utils/promptKeys.ts +M frontend/src/utils/protectedResource.ts +A frontend/src/utils/protectedResourceFilename.test.ts +M frontend/src/utils/sandboxArtifactRefs.test.ts +M frontend/src/utils/sandboxArtifactRefs.ts +M frontend/src/utils/sessionMarkdown.test.ts +M frontend/src/utils/sessionMarkdown.ts +M frontend/src/utils/shellExecResult.test.ts +A frontend/src/utils/shellProgress.test.ts +A frontend/src/utils/shellProgress.ts +M frontend/src/utils/sourceLocator.test.ts +M frontend/src/utils/sourceLocator.ts +A frontend/src/utils/sourceLocatorCompatibility.test.ts +M frontend/src/utils/steerStreamFork.ts +A frontend/src/utils/suspendedRun.ts +M frontend/src/utils/tableSource.test.ts +M frontend/src/utils/tableSource.ts +M frontend/src/utils/tool-capabilities.ts +A frontend/src/utils/unsavedChanges.test.ts +A frontend/src/utils/unsavedChanges.ts +A frontend/src/utils/weknoraEntityLinks.test.ts +A frontend/src/utils/weknoraEntityLinks.ts +M frontend/src/views/agent/AgentEditorModal.test.mjs +M frontend/src/views/agent/AgentEditorModal.vue +A frontend/src/views/agent/AgentList.pageContext.test.ts +A frontend/src/views/agent/AgentList.test.ts +M frontend/src/views/agent/AgentList.vue +A frontend/src/views/auth/Login.mobile.test.mjs +M frontend/src/views/auth/Login.vue +A frontend/src/views/automation/AutomationDetail.vue +A frontend/src/views/automation/AutomationEditor.vue +A frontend/src/views/automation/AutomationList.vue +A frontend/src/views/automation/AutomationStatusTag.vue +A frontend/src/views/automation/automationInteractions.test.ts +A frontend/src/views/chat/automationConversation.test.ts +A frontend/src/views/chat/backgroundWorkPolling.test.ts +A frontend/src/views/chat/components/AgentStreamDisplay.artifacts.test.mjs +A frontend/src/views/chat/components/AgentStreamDisplay.progress.test.ts +M frontend/src/views/chat/components/AgentStreamDisplay.style.test.mjs +M frontend/src/views/chat/components/AgentStreamDisplay.vue +A frontend/src/views/chat/components/AskUserCard.vue +A frontend/src/views/chat/components/BackgroundWorkChip.test.ts +A frontend/src/views/chat/components/BackgroundWorkChip.vue +A frontend/src/views/chat/components/BackgroundWorkResults.vue +A frontend/src/views/chat/components/CatalogToolResult.test.ts +M frontend/src/views/chat/components/ChatArtifactsDrawer.vue +M frontend/src/views/chat/components/ChatMemoryStep.vue +A frontend/src/views/chat/components/ChildAgentStream.vue +A frontend/src/views/chat/components/ChildAgentTabBar.vue +A frontend/src/views/chat/components/CollaborationTasks.test.ts +A frontend/src/views/chat/components/CollaborationTasks.vue +A frontend/src/views/chat/components/HostApprovalCard.vue +M frontend/src/views/chat/components/McpOAuthCard.vue +A frontend/src/views/chat/components/OpenPageCard.test.ts +A frontend/src/views/chat/components/OpenPageCard.vue +A frontend/src/views/chat/components/PageEditCard.vue +A frontend/src/views/chat/components/PendingPromptDock.vue +A frontend/src/views/chat/components/ProgressUpdates.vue +M frontend/src/views/chat/components/RagPipelineProgress.vue +A frontend/src/views/chat/components/ToolApprovalCard.description.test.mjs +M frontend/src/views/chat/components/ToolApprovalCard.vue +M frontend/src/views/chat/components/ToolResultRenderer.vue +M frontend/src/views/chat/components/agent-interaction-card.less +M frontend/src/views/chat/components/answerToolbarCompletion.test.mjs +M frontend/src/views/chat/components/botmsg.vue +A frontend/src/views/chat/components/hostApproval.test.ts +A frontend/src/views/chat/components/hostApproval.ts +A frontend/src/views/chat/components/tool-results/CatalogValue.vue +A frontend/src/views/chat/components/tool-results/DocMarkdown.vue +A frontend/src/views/chat/components/tool-results/OperationsResult.vue +M frontend/src/views/chat/components/tool-results/ShellExecResult.vue +A frontend/src/views/chat/components/tool-results/WeKnoraDocResult.vue +M frontend/src/views/chat/components/usermsg.vue +M frontend/src/views/chat/index.vue +A frontend/src/views/chat/retrievalSelection.test.ts +M frontend/src/views/chat/steerInteraction.test.mjs +M frontend/src/views/embed/EmbedChatCore.vue +A frontend/src/views/embed/embedHostContext.test.mjs +M frontend/src/views/integrations/McpServerIntegrationSettings.vue +M frontend/src/views/integrations/mcpServerIntegration.test.ts +M frontend/src/views/integrations/mcpServerIntegration.ts +A frontend/src/views/knowledge/ImagePipelineSettings.test.ts +A frontend/src/views/knowledge/ImagePipelineSettings.vue +A frontend/src/views/knowledge/KnowledgeBase.test.ts +M frontend/src/views/knowledge/KnowledgeBase.vue +A frontend/src/views/knowledge/KnowledgeBaseBatchReparse.test.ts +M frontend/src/views/knowledge/KnowledgeBaseEditorModal.test.mjs +M frontend/src/views/knowledge/KnowledgeBaseEditorModal.vue +A frontend/src/views/knowledge/KnowledgeBaseFolderCounts.test.ts +M frontend/src/views/knowledge/KnowledgeBaseList.vue +A frontend/src/views/knowledge/KnowledgeBaseParserHint.test.ts +A frontend/src/views/knowledge/assistantRefresh.test.ts +M frontend/src/views/knowledge/components/DocumentBatchBar.vue +M frontend/src/views/knowledge/components/DocumentCardView.vue +A frontend/src/views/knowledge/components/DocumentFolderEntries.test.ts +M frontend/src/views/knowledge/components/DocumentListView.vue +M frontend/src/views/knowledge/components/FAQEntryManager.vue +M frontend/src/views/knowledge/components/KbFolderTree.test.ts +M frontend/src/views/knowledge/components/KbFolderTree.vue +M frontend/src/views/knowledge/components/KbTypeAvatar.vue +M frontend/src/views/knowledge/components/KnowledgeTagPopover.test.ts +M frontend/src/views/knowledge/components/KnowledgeTagPopover.vue +M frontend/src/views/knowledge/components/UploadConfirmDialog.test.ts +M frontend/src/views/knowledge/components/UploadConfirmDialog.vue +M frontend/src/views/knowledge/components/uploadImageVectorOverride.test.ts +M frontend/src/views/knowledge/folderTree.test.ts +M frontend/src/views/knowledge/folderTree.ts +M frontend/src/views/knowledge/gallery/ImageGallery.test.ts +M frontend/src/views/knowledge/gallery/ImageGallery.vue +A frontend/src/views/knowledge/settings/DataSourceEditorDialog.tempDataSource.test.ts +M frontend/src/views/knowledge/settings/DataSourceEditorDialog.test.ts +M frontend/src/views/knowledge/settings/DataSourceEditorDialog.vue +M frontend/src/views/knowledge/settings/DataSourceSettings.vue +M frontend/src/views/knowledge/settings/DataSourceSyncLogs.vue +A frontend/src/views/knowledge/settings/DataSourceTypeIcon.test.ts +M frontend/src/views/knowledge/settings/DataSourceTypeIcon.vue +A frontend/src/views/knowledge/settings/GraphSettings.test.ts +M frontend/src/views/knowledge/settings/GraphSettings.vue +A frontend/src/views/knowledge/settings/KBChunkingDebug.test.ts +M frontend/src/views/knowledge/settings/KBChunkingDebug.vue +M frontend/src/views/knowledge/settings/KBParserSettings.vue +A frontend/src/views/knowledge/settings/KnowledgeBaseActivityAssistant.test.ts +M frontend/src/views/knowledge/settings/KnowledgeBaseActivitySettings.vue +M frontend/src/views/knowledge/settings/chunkingSamples.ts +M frontend/src/views/knowledge/wiki/WikiBrowser.vue +M frontend/src/views/knowledge/wiki/wikiBacklinkBrowser.test.ts +A frontend/src/views/knowledge/wiki/wikiGraphViewport.test.ts +M frontend/src/views/organization/OrganizationList.vue +A frontend/src/views/organization/OrganizationMemberSearch.test.ts +M frontend/src/views/organization/OrganizationSettingsModal.vue +M frontend/src/views/platform/index.vue +A frontend/src/views/settings/AssistantSettings.test.ts +A frontend/src/views/settings/AssistantSettings.vue +M frontend/src/views/settings/McpSettings.test.ts +M frontend/src/views/settings/McpSettings.vue +M frontend/src/views/settings/ModelSettings.vue +A frontend/src/views/settings/RetrievalSettings.test.ts +M frontend/src/views/settings/RetrievalSettings.vue +A frontend/src/views/settings/RetrievalSettingsAutosave.test.ts +M frontend/src/views/settings/SandboxSettings.vue +M frontend/src/views/settings/Settings.vue +M frontend/src/views/settings/SkillSettings.filters.test.ts +M frontend/src/views/settings/SkillSettings.vue +A frontend/src/views/settings/TenantInfo.test.ts +M frontend/src/views/settings/TenantInfo.vue +A frontend/src/views/settings/TenantMembers.test.ts +M frontend/src/views/settings/TenantMembers.vue +A frontend/src/views/settings/WebSearchSettings.test.ts +M frontend/src/views/settings/WebSearchSettings.vue +A frontend/src/views/settings/components/McpMetadataPanel.test.ts +M frontend/src/views/settings/components/McpMetadataPanel.vue +M frontend/src/views/settings/components/McpServiceDialog.test.ts +M frontend/src/views/settings/components/McpServiceDialog.vue +M frontend/src/views/settings/settingsNavigation.test.ts +M frontend/src/views/system/SystemSettings.vue +A frontend/src/views/system/storageQuota.test.ts +A frontend/src/views/system/storageQuota.ts +M frontend/vite.config.ts +M go.mod +M go.sum +M helm/README.md +M helm/templates/app.yaml +M helm/templates/pvc.yaml +M helm/tests/test_app_storage.py +M helm/values.yaml +M internal/agent/act.go +M internal/agent/act_order_test.go +A internal/agent/act_tool_hint_test.go +A internal/agent/approval/ask_user.go +A internal/agent/approval/ask_user_test.go +A internal/agent/approval/consume_failure_test.go +M internal/agent/approval/gate.go +A internal/agent/approval/gate_host_test.go +M internal/agent/approval/gate_test.go +A internal/agent/approval/grants.go +A internal/agent/approval/mcp_risk.go +A internal/agent/approval/mcp_risk_test.go +A internal/agent/approval/page_action.go +A internal/agent/approval/page_action_test.go +A internal/agent/approval/session_grant_test.go +A internal/agent/background.go +A internal/agent/background_test.go +A internal/agent/collaboration.go +A internal/agent/collaboration/binding.go +A internal/agent/collaboration/continuation_test.go +A internal/agent/collaboration/limits_test.go +A internal/agent/collaboration/parent.go +A internal/agent/collaboration/recovery.go +A internal/agent/collaboration/recovery_test.go +A internal/agent/collaboration/runtime.go +A internal/agent/collaboration/runtime_test.go +A internal/agent/collaboration/status.go +A internal/agent/collaboration/status_test.go +A internal/agent/collaboration/store.go +A internal/agent/collaboration_delivery_test.go +A internal/agent/collaboration_test.go +M internal/agent/compaction/checkpoint_test.go +M internal/agent/compaction/compactor.go +M internal/agent/compaction/fileops.go +A internal/agent/compaction/fileops_retention_test.go +A internal/agent/compaction/length_finish_reason_test.go +A internal/agent/compaction/multimodal_overflow_test.go +M internal/agent/compaction/overflow.go +M internal/agent/compaction/prepare.go +M internal/agent/compaction/serialize.go +M internal/agent/const.go +M internal/agent/const_test.go +M internal/agent/context_debug.go +A internal/agent/context_overflow_test.go +M internal/agent/engine.go +M internal/agent/engine_image_test.go +M internal/agent/engine_test.go +A internal/agent/failed_tool_loop_test.go +M internal/agent/finalize.go +A internal/agent/finalize_test.go +A internal/agent/hitl/broker.go +A internal/agent/hitl/broker_test.go +A internal/agent/hitl/delegation.go +A internal/agent/hitl/delegation_test.go +A internal/agent/hitl/reaper.go +A internal/agent/hitl/resume_test.go +A internal/agent/hitl/store.go +A internal/agent/hitl/suspend_test.go +M internal/agent/observe.go +M internal/agent/observe_test.go +A internal/agent/operations/artifacts_test.go +A internal/agent/operations/builtin.go +A internal/agent/operations/catalog.go +A internal/agent/operations/catalog_test.go +A internal/agent/operations/common_management_test.go +A internal/agent/operations/conversations_test.go +A internal/agent/operations/dispatch.go +A internal/agent/operations/faq_test.go +A internal/agent/operations/infra_test.go +A internal/agent/operations/mcp_metadata_test.go +A internal/agent/operations/parsing_faq_test.go +A internal/agent/operations/projection.go +A internal/agent/operations/request.go +A internal/agent/operations/settings_test.go +A internal/agent/operations/spec.go +A internal/agent/operations/spec_test.go +A internal/agent/operations/system_admin_test.go +A internal/agent/operations/workspace_test.go +A internal/agent/orphan_think_test.go +A internal/agent/page_button_finish_test.go +A internal/agent/policy/policy.go +A internal/agent/policy/policy_test.go +A internal/agent/policy/record.go +M internal/agent/prompt_composition_test.go +M internal/agent/prompts.go +M internal/agent/prompts_shell_test.go +A internal/agent/protocol_artifact_test.go +A internal/agent/resume.go +A internal/agent/resume_mcp_test.go +A internal/agent/resume_test.go +M internal/agent/skills/shell_environment.go +M internal/agent/skills/shell_environment_test.go +M internal/agent/skills/shell_staging.go +M internal/agent/steer.go +A internal/agent/stream_retry_partial_test.go +A internal/agent/suspend.go +A internal/agent/suspend_test.go +M internal/agent/terminal_event_test.go +M internal/agent/think.go +A internal/agent/think_overflow_compaction_test.go +M internal/agent/token/estimator.go +M internal/agent/token/reasoning_artifacts_test.go +M internal/agent/tool_images_test.go +A internal/agent/tools/ask_user.go +A internal/agent/tools/ask_user_test.go +M internal/agent/tools/capabilities.go +A internal/agent/tools/collaboration.go +A internal/agent/tools/collaboration_test.go +A internal/agent/tools/confirmed_tool.go +A internal/agent/tools/confirmed_tool_test.go +M internal/agent/tools/data_analysis.go +A internal/agent/tools/data_analysis_legacy_xls_test.go +M internal/agent/tools/data_analysis_query_test.go +A internal/agent/tools/data_analysis_storage_test.go +A internal/agent/tools/data_analysis_xls.go +A internal/agent/tools/data_analysis_xls_test.go +M internal/agent/tools/data_schema.go +M internal/agent/tools/definitions.go +M internal/agent/tools/exec_context.go +A internal/agent/tools/host_approval.go +A internal/agent/tools/host_approval_test.go +M internal/agent/tools/list_documents.go +A internal/agent/tools/mcp_call_guard.go +A internal/agent/tools/mcp_call_guard_test.go +A internal/agent/tools/mcp_call_retry_test.go +M internal/agent/tools/mcp_catalog.go +M internal/agent/tools/mcp_catalog_integration_test.go +M internal/agent/tools/mcp_catalog_test.go +M internal/agent/tools/mcp_exposure.go +M internal/agent/tools/mcp_exposure_test.go +M internal/agent/tools/mcp_oauth.go +M internal/agent/tools/mcp_oauth_test.go +M internal/agent/tools/mcp_tool.go +M internal/agent/tools/mcp_tool_enabled_test.go +A internal/agent/tools/mcp_tool_grant_test.go +A internal/agent/tools/open_page.go +A internal/agent/tools/open_page_test.go +A internal/agent/tools/operations.go +A internal/agent/tools/operations_common_management_test.go +A internal/agent/tools/operations_faq_test.go +A internal/agent/tools/operations_grant_test.go +A internal/agent/tools/operations_infra_test.go +A internal/agent/tools/operations_model_copy_test.go +A internal/agent/tools/operations_parsing_faq.go +A internal/agent/tools/operations_parsing_faq_test.go +A internal/agent/tools/operations_sync_search.go +A internal/agent/tools/operations_sync_search_test.go +A internal/agent/tools/operations_system_admin_test.go +A internal/agent/tools/operations_test.go +A internal/agent/tools/operations_workspace_test.go +M internal/agent/tools/output_links.go +A internal/agent/tools/page_tools.go +A internal/agent/tools/page_tools_test.go +M internal/agent/tools/param_cast.go +A internal/agent/tools/param_cast_integer_test.go +M internal/agent/tools/persist.go +M internal/agent/tools/persist_test.go +A internal/agent/tools/product_docs.go +A internal/agent/tools/product_docs_test.go +A internal/agent/tools/protocol_artifact.go +A internal/agent/tools/protocol_artifact_test.go +M internal/agent/tools/python_syntax.go +A internal/agent/tools/python_syntax_newlines_test.go +M internal/agent/tools/query_knowledge_graph.go +A internal/agent/tools/query_knowledge_graph_budget_test.go +A internal/agent/tools/query_knowledge_graph_evidence_test.go +M internal/agent/tools/query_knowledge_graph_graph_test.go +M internal/agent/tools/query_knowledge_graph_truncation_test.go +A internal/agent/tools/read_artifact.go +A internal/agent/tools/read_artifact_test.go +M internal/agent/tools/read_document.go +M internal/agent/tools/read_file.go +A internal/agent/tools/read_file_query_limit_test.go +A internal/agent/tools/read_file_query_snippet_test.go +M internal/agent/tools/registry.go +A internal/agent/tools/sandbox_append_size_test.go +M internal/agent/tools/sandbox_edit.go +A internal/agent/tools/sandbox_edit_ambiguity_test.go +M internal/agent/tools/sandbox_write.go +M internal/agent/tools/sanitize_messages.go +A internal/agent/tools/sanitize_messages_multimodal_test.go +M internal/agent/tools/sanitize_messages_test.go +M internal/agent/tools/schema_validity_test.go +M internal/agent/tools/scope_authorization.go +M internal/agent/tools/search_knowledge.go +M internal/agent/tools/search_knowledge_test.go +M internal/agent/tools/shell_exec.go +A internal/agent/tools/shell_exec_async.go +A internal/agent/tools/shell_exec_async_regression_test.go +A internal/agent/tools/shell_exec_async_test.go +M internal/agent/tools/shell_exec_test.go +A internal/agent/tools/shell_job_request.go +M internal/agent/tools/strip_think.go +A internal/agent/tools/testdata/legacy.xls +M internal/agent/tools/think_stream.go +M internal/agent/tools/think_stream_test.go +M internal/agent/tools/tool_policy_coverage_test.go +M internal/agent/tools/web_fetch.go +M internal/agent/tools/web_fetch_test.go +M internal/agent/tools/web_search.go +M internal/agent/tools/wiki_delete_page.go +M internal/agent/tools/wiki_flag_issue.go +M internal/agent/tools/wiki_rename_page.go +M internal/agent/tools/wiki_replace_text.go +M internal/agent/tools/wiki_tools.go +M internal/agent/tools/wiki_update_issue.go +M internal/agent/tools/wiki_write_page.go +A internal/agent/tools/work.go +A internal/agent/tools/work_test.go +M internal/agent/tools/workspace_layout.go +M internal/agent/tools/workspace_layout_test.go +M internal/agent/tools/workspace_reader.go +M internal/application/access/README.md +M internal/application/access/ownership.go +M internal/application/access/ownership_test.go +A internal/application/access/superuser.go +A internal/application/repository/agent_grant_repository.go +A internal/application/repository/agent_grant_repository_test.go +A internal/application/repository/agent_prompt_repository.go +A internal/application/repository/agent_prompt_repository_test.go +M internal/application/repository/chunk.go +A internal/application/repository/chunk_empty_image_migration_test.go +A internal/application/repository/chunk_evidence_test.go +A internal/application/repository/chunk_insert_test.go +M internal/application/repository/chunk_sqlite_test.go +M internal/application/repository/datasource_repo.go +A internal/application/repository/datasource_retention_test.go +A internal/application/repository/graph_search.go +A internal/application/repository/graph_search_test.go +M internal/application/repository/knowledge.go +A internal/application/repository/knowledge_replace.go +A internal/application/repository/knowledge_replace_postgres_test.go +A internal/application/repository/knowledge_replace_test.go +M internal/application/repository/mcp_tool_approval_repository.go +M internal/application/repository/mcp_tool_approval_repository_test.go +M internal/application/repository/message.go +M internal/application/repository/message_artifact.go +A internal/application/repository/message_checkpoint_deletion.go +A internal/application/repository/message_checkpoint_deletion_test.go +M internal/application/repository/organization.go +A internal/application/repository/organization_sqlite_test.go +M internal/application/repository/resource.go +A internal/application/repository/resource_content_hash_test.go +A internal/application/repository/retriever/neo4j/graph_search.go +A internal/application/repository/retriever/neo4j/graph_search_test.go +A internal/application/repository/retriever/postgres/keyword_score_integration_test.go +A internal/application/repository/retriever/postgres/keyword_score_test.go +M internal/application/repository/retriever/postgres/repository.go +M internal/application/repository/retriever/qdrant/repository.go +M internal/application/repository/retriever/qdrant/repository_test.go +M internal/application/repository/retriever/sqlite/repository.go +M internal/application/repository/retriever/sqlite/repository_test.go +A internal/application/repository/sandbox_allocation.go +A internal/application/repository/sandbox_allocation_test.go +M internal/application/repository/session.go +M internal/application/repository/session_fork_test.go +A internal/application/repository/session_kind_test.go +M internal/application/repository/tenant.go +M internal/application/repository/tenant_sandbox_config.go +M internal/application/repository/tenant_sandbox_config_test.go +M internal/application/repository/user.go +A internal/application/repository/user_delete_retiring_test.go +M internal/application/repository/user_tenantless_test.go +M internal/application/repository/web_search_provider.go +A internal/application/repository/web_search_provider_test.go +M internal/application/repository/wiki_page.go +M internal/application/repository/wiki_page_test.go +A internal/application/service/agent_artifact_files.go +A internal/application/service/agent_artifact_files_test.go +A internal/application/service/agent_collaboration.go +A internal/application/service/agent_collaboration_cleanup_test.go +A internal/application/service/agent_collaboration_inherited.go +A internal/application/service/agent_collaboration_inherited_test.go +A internal/application/service/agent_collaboration_mcp_guard.go +A internal/application/service/agent_collaboration_mcp_guard_test.go +A internal/application/service/agent_collaboration_mcp_test.go +A internal/application/service/agent_collaboration_recovery.go +A internal/application/service/agent_collaboration_recovery_test.go +A internal/application/service/agent_collaboration_regression_test.go +A internal/application/service/agent_collaboration_status.go +A internal/application/service/agent_collaboration_status_test.go +A internal/application/service/agent_collaboration_stream_test.go +A internal/application/service/agent_collaboration_test.go +M internal/application/service/agent_history.go +A internal/application/service/agent_history_background_test.go +A internal/application/service/agent_history_deletion_test.go +M internal/application/service/agent_rerank_requirement_test.go +M internal/application/service/agent_service.go +A internal/application/service/agent_service_background_test.go +M internal/application/service/agent_service_test.go +M internal/application/service/agent_share.go +M internal/application/service/agent_share_runtime_test.go +M internal/application/service/artifact_collector_test.go +A internal/application/service/assistant_knowledge_scope_test.go +M internal/application/service/audit_log_retention_test.go +A internal/application/service/automation.go +A internal/application/service/automation_model_test.go +A internal/application/service/automation_regression_test.go +A internal/application/service/automation_runner.go +A internal/application/service/automation_scheduler.go +A internal/application/service/automation_scheduler_timezone_test.go +A internal/application/service/automation_status_test.go +A internal/application/service/automation_test.go +A internal/application/service/background_activity_helpers_test.go +A internal/application/service/background_events.go +A internal/application/service/background_events_test.go +A internal/application/service/background_keepalive.go +A internal/application/service/background_keepalive_test.go +A internal/application/service/background_work.go +M internal/application/service/chat_pipeline/citation_sources_test.go +M internal/application/service/chat_pipeline/common.go +M internal/application/service/chat_pipeline/data_analysis.go +A internal/application/service/chat_pipeline/data_analysis_storage_test.go +M internal/application/service/chat_pipeline/extract_entity.go +M internal/application/service/chat_pipeline/query_expansion.go +M internal/application/service/chat_pipeline/query_expansion_test.go +M internal/application/service/chat_pipeline/query_understand.go +M internal/application/service/chat_pipeline/references_test.go +M internal/application/service/chat_pipeline/rerank.go +M internal/application/service/chat_pipeline/rerank_test.go +M internal/application/service/chat_pipeline/search.go +M internal/application/service/chat_pipeline/search_entity.go +M internal/application/service/chat_pipeline/search_entity_scope_test.go +A internal/application/service/chat_pipeline/search_test.go +A internal/application/service/chat_pipeline/shared_chat_model_test.go +M internal/application/service/custom_agent.go +A internal/application/service/custom_agent_mode_test.go +A internal/application/service/datasource_atomic_replace_test.go +A internal/application/service/datasource_conflict_skip_test.go +A internal/application/service/datasource_feishu_upgrade_test.go +A internal/application/service/datasource_file_header_test.go +A internal/application/service/datasource_filename_ingest_test.go +A internal/application/service/datasource_ingest_ack_helpers_test.go +A internal/application/service/datasource_ingest_ack_test.go +A internal/application/service/datasource_ingest_error.go +A internal/application/service/datasource_ingest_rejection_test.go +A internal/application/service/datasource_oversized_file_test.go +A internal/application/service/datasource_resync_test.go +M internal/application/service/datasource_service.go +M internal/application/service/datasource_service_test.go +M internal/application/service/datasource_sweep_wiring_test.go +M internal/application/service/extract_data_table_orphan_test.go +M internal/application/service/fallback_messages_test.go +M internal/application/service/file/resource_catalog.go +M internal/application/service/file/resource_catalog_test.go +A internal/application/service/file/resource_content_dedup_test.go +A internal/application/service/graph_search.go +A internal/application/service/graph_search_test.go +D internal/application/service/image_action_loop.go +A internal/application/service/image_action_registry.go +M internal/application/service/image_attr_decision.go +A internal/application/service/image_input_validation_test.go +M internal/application/service/image_multimodal.go +M internal/application/service/image_multimodal_attrs_test.go +A internal/application/service/image_multimodal_resolve_test.go +A internal/application/service/image_multimodal_skipretry_test.go +A internal/application/service/image_ocr_error_test.go +M internal/application/service/image_ocr_live_test.go +M internal/application/service/image_ocr_validation_test.go +A internal/application/service/image_param_naming_test.go +A internal/application/service/image_pipeline_default.go +A internal/application/service/image_pipeline_fields_test.go +A internal/application/service/image_pipeline_golden_test.go +A internal/application/service/image_pipeline_naming_test.go +A internal/application/service/image_pipeline_overrides_test.go +A internal/application/service/image_pipeline_preprocess_test.go +A internal/application/service/image_pipeline_rules.go +A internal/application/service/image_pipeline_rules_test.go +A internal/application/service/image_pipeline_smartocr.go +A internal/application/service/image_pipeline_thinking_test.go +M internal/application/service/kb_activity.go +M internal/application/service/kb_activity_test.go +M internal/application/service/knowledge.go +M internal/application/service/knowledge_auto_tag.go +M internal/application/service/knowledge_auto_tag_test.go +M internal/application/service/knowledge_clone_move.go +A internal/application/service/knowledge_clone_rollback_test.go +M internal/application/service/knowledge_content_binding_test.go +M internal/application/service/knowledge_create.go +A internal/application/service/knowledge_datasource_replace.go +A internal/application/service/knowledge_datasource_replace_test.go +M internal/application/service/knowledge_delete.go +M internal/application/service/knowledge_delete_plan.go +A internal/application/service/knowledge_faq_import_enabled_test.go +M internal/application/service/knowledge_housekeeping.go +A internal/application/service/knowledge_housekeeping_queue_scan_test.go +M internal/application/service/knowledge_post_process.go +M internal/application/service/knowledge_post_process_graph_chunks_test.go +M internal/application/service/knowledge_post_process_summary_test.go +M internal/application/service/knowledge_process.go +A internal/application/service/knowledge_process_budget_test.go +M internal/application/service/knowledge_process_config.go +M internal/application/service/knowledge_process_config_test.go +M internal/application/service/knowledge_process_embedding_failure_test.go +M internal/application/service/knowledge_process_index_retry_test.go +A internal/application/service/knowledge_process_inline_image_test.go +M internal/application/service/knowledge_process_parent_child_test.go +A internal/application/service/knowledge_process_questions_test.go +A internal/application/service/knowledge_process_span_retry_test.go +M internal/application/service/knowledge_span_tracker.go +M internal/application/service/knowledge_span_tracker_test.go +M internal/application/service/knowledge_summary_test.go +M internal/application/service/knowledge_util_filetype_test.go +M internal/application/service/knowledgebase.go +M internal/application/service/knowledgebase_delete_datasource_test.go +A internal/application/service/knowledgebase_generated_questions.go +M internal/application/service/knowledgebase_image_config_test.go +M internal/application/service/knowledgebase_search.go +A internal/application/service/knowledgebase_search_embedding_dimension_test.go +M internal/application/service/knowledgebase_search_embedding_kb_test.go +M internal/application/service/knowledgebase_search_fanout.go +M internal/application/service/knowledgebase_search_partial_test.go +M internal/application/service/knowledgebase_search_rerank.go +A internal/application/service/knowledgebase_storage_update_test.go +M internal/application/service/knowledgebase_wiki_cleanup_test.go +A internal/application/service/local_shell_job_drain_test.go +A internal/application/service/local_shell_job_followup_test.go +A internal/application/service/local_shell_job_identity_darwin.go +A internal/application/service/local_shell_job_identity_darwin_test.go +A internal/application/service/local_shell_job_identity_other.go +A internal/application/service/local_shell_job_log.go +A internal/application/service/local_shell_job_log_test.go +A internal/application/service/local_shell_job_recovery.go +A internal/application/service/local_shell_job_recovery_test.go +A internal/application/service/local_shell_job_service.go +A internal/application/service/local_shell_job_service_test.go +M internal/application/service/mcp_service.go +M internal/application/service/mcp_service_test.go +M internal/application/service/mcp_tool_approval_service.go +M internal/application/service/mcp_tool_approval_service_test.go +M internal/application/service/memory/scope.go +A internal/application/service/memory/scope_test.go +M internal/application/service/message.go +M internal/application/service/metric/common.go +A internal/application/service/metric/common_test.go +M internal/application/service/metric/map.go +M internal/application/service/metric/map_test.go +M internal/application/service/model_delete_test.go +A internal/application/service/notification.go +A internal/application/service/notification_test.go +A internal/application/service/page_context_test.go +M internal/application/service/pinned_session_sandbox.go +M internal/application/service/pinned_session_sandbox_test.go +M internal/application/service/resource.go +A internal/application/service/resource_storage.go +A internal/application/service/resource_storage_test.go +M internal/application/service/resource_test.go +M internal/application/service/retriever/composite.go +M internal/application/service/retriever/composite_partial_test.go +M internal/application/service/retriever/keywords_vector_hybrid_indexer.go +A internal/application/service/retriever/keywords_vector_hybrid_indexer_window_test.go +M internal/application/service/sandbox_desktop_service.go +M internal/application/service/sandbox_desktop_service_test.go +A internal/application/service/sandboxalloc/cleanup.go +A internal/application/service/sandboxalloc/cleanup_test.go +A internal/application/service/sandboxalloc/convert.go +A internal/application/service/sandboxalloc/gc.go +A internal/application/service/sandboxalloc/gc_test.go +A internal/application/service/sandboxalloc/multireplica_test.go +A internal/application/service/sandboxalloc/owner.go +A internal/application/service/sandboxalloc/service.go +A internal/application/service/sandboxalloc/service_test.go +M internal/application/service/session.go +A internal/application/service/session_agent_image_test.go +M internal/application/service/session_agent_qa.go +M internal/application/service/session_attachment_staging.go +M internal/application/service/session_attachment_staging_test.go +A internal/application/service/session_delete_background_test.go +M internal/application/service/session_delete_host_test.go +A internal/application/service/session_delete_user_mode_test.go +M internal/application/service/session_fork.go +M internal/application/service/session_fork_test.go +A internal/application/service/session_kind_test.go +M internal/application/service/session_knowledge_qa.go +A internal/application/service/session_model_identity_test.go +M internal/application/service/session_model_requirement_test.go +A internal/application/service/session_owner_source_test.go +M internal/application/service/session_qa_helpers.go +M internal/application/service/session_rewind.go +M internal/application/service/session_rewind_test.go +M internal/application/service/session_sandbox_pin.go +M internal/application/service/session_sandbox_pin_test.go +M internal/application/service/session_sandbox_turn_test.go +A internal/application/service/session_shared_chat_model_test.go +M internal/application/service/session_title.go +A internal/application/service/session_title_generation_test.go +M internal/application/service/session_title_test.go +A internal/application/service/shell_job_followup_test.go +A internal/application/service/shell_job_index.go +A internal/application/service/shell_job_index_test.go +A internal/application/service/shell_job_regression_test.go +A internal/application/service/shell_job_service.go +A internal/application/service/shell_job_service_test.go +M internal/application/service/storagebackend_test.go +A internal/application/service/suspended_run.go +A internal/application/service/suspended_run_test.go +M internal/application/service/system_setting.go +A internal/application/service/system_setting_summary_test.go +M internal/application/service/temporary_document.go +A internal/application/service/temporary_document_csv_limits_test.go +M internal/application/service/temporary_document_parse.go +A internal/application/service/temporary_document_resource_release_test.go +M internal/application/service/temporary_document_test.go +M internal/application/service/tenant.go +A internal/application/service/tenant_model_credentials_test.go +M internal/application/service/tenant_sandbox_config.go +M internal/application/service/tenant_sandbox_config_test.go +M internal/application/service/tenant_skill_catalog.go +M internal/application/service/tenant_skill_install.go +M internal/application/service/tenant_skill_install_test.go +M internal/application/service/tenant_skill_reaper_test.go +M internal/application/service/tenant_skill_service.go +M internal/application/service/tenant_skill_source.go +M internal/application/service/tenant_skill_source_test.go +A internal/application/service/tenant_skill_source_utf8_test.go +M internal/application/service/tenant_skill_stale_sandbox_test.go +M internal/application/service/tenant_skill_transcript_test.go +A internal/application/service/tenant_storage_quota.go +A internal/application/service/tenant_storage_quota_test.go +M internal/application/service/tenant_storagebackend_test.go +M internal/application/service/user.go +A internal/application/service/user_delete_sandbox_test.go +M internal/application/service/user_env_test.go +M internal/application/service/web_search_provider.go +M internal/application/service/wiki_ingest.go +M internal/application/service/wiki_ingest_batch.go +M internal/application/service/wiki_ingest_cancellation_test.go +M internal/application/service/wiki_ingest_cite.go +M internal/application/service/wiki_ingest_cite_resolve_test.go +M internal/application/service/wiki_ingest_test.go +M internal/application/service/wiki_lint.go +M internal/application/service/workspace_checkpointer.go +M internal/application/service/workspace_checkpointer_test.go +M internal/application/service/workspace_git_layout_test.go +M internal/application/service/workspace_reset.go +A internal/automation/instruction.go +A internal/automation/trigger.go +A internal/automation/trigger_test.go +A internal/background/backgroundtest/contract.go +A internal/background/lifecycle.go +A internal/background/lifecycle_test.go +A internal/background/listeners.go +A internal/background/listeners_test.go +A internal/background/memory_inbox.go +A internal/background/memory_registry.go +A internal/background/memory_test.go +A internal/background/run_notices.go +A internal/background/run_notices_test.go +M internal/common/tools.go +A internal/common/truncate_utf8_test.go +M internal/config/config.go +A internal/config/config_read_test.go +A internal/container/background.go +A internal/container/background_shell_desktop.go +A internal/container/background_shell_desktop_test.go +A internal/container/background_shell_stub.go +A internal/container/background_test.go +M internal/container/container.go +A internal/container/gorm_logger.go +A internal/container/gorm_logger_test.go +M internal/container/sandbox.go +M internal/container/sandbox_host.go +M internal/container/sandbox_host_test.go +M internal/container/sandbox_test.go +A internal/database/migration_feishu_resync_test.go +A internal/database/migration_source_test.go +M internal/database/migration_sqlite_agent_allowed_tools_test.go +A internal/database/migration_sqlite_automation_assistant_test.go +A internal/database/migration_sqlite_automation_duration_test.go +A internal/database/migration_sqlite_automation_model_test.go +M internal/database/migration_sqlite_versioned_schema_test.go +M internal/datasource/connector/confluence/client.go +M internal/datasource/connector/confluence/connector.go +A internal/datasource/connector/confluence/pat_test.go +M internal/datasource/connector/confluence/types.go +M internal/datasource/connector/dingtalk/connector.go +A internal/datasource/connector/dingtalk/folder_path_settings_test.go +A internal/datasource/connector/dingtalk/folder_path_test.go +M internal/datasource/connector/dingtalk/settings.go +M internal/datasource/connector/dingtalk/sync_safety_test.go +A internal/datasource/connector/dingtalk/validate_selection_test.go +M internal/datasource/connector/feishu/core/blocks.go +M internal/datasource/connector/feishu/core/blocks_test.go +A internal/datasource/connector/feishu/core/board.go +A internal/datasource/connector/feishu/core/board_test.go +M internal/datasource/connector/feishu/core/client.go +M internal/datasource/connector/feishu/core/engine.go +A internal/datasource/connector/feishu/core/engine_full_test.go +M internal/datasource/connector/feishu/core/markdown.go +A internal/datasource/connector/feishu/core/markdown_bounds_test.go +A internal/datasource/connector/feishu/core/markdown_cell_nested_test.go +A internal/datasource/connector/feishu/core/markdown_nested_test.go +M internal/datasource/connector/feishu/core/markdown_test.go +A internal/datasource/connector/feishu/core/media_regression_test.go +A internal/datasource/connector/feishu/core/mention_user_test.go +A internal/datasource/connector/feishu/core/parse_mode_test.go +M internal/datasource/connector/feishu/core/shared.go +A internal/datasource/connector/feishu/core/token_log_test.go +A internal/datasource/connector/feishu/core/truncate_utf8_test.go +M internal/datasource/connector/feishu/core/types.go +A internal/datasource/connector/feishu/core/wiki_shortcuts.go +M internal/datasource/connector/feishu/drive/connector.go +A internal/datasource/connector/feishu/drive/connector_paths_test.go +M internal/datasource/connector/feishu/drive/drive_blocks_test.go +A internal/datasource/connector/feishu/drive/junk_test.go +A internal/datasource/connector/feishu/drive/paths.go +M internal/datasource/connector/feishu/wiki/connector.go +M internal/datasource/connector/feishu/wiki/connector_golden_test.go +M internal/datasource/connector/feishu/wiki/connector_stream_test.go +M internal/datasource/connector/feishu/wiki/connector_test.go +A internal/datasource/connector/feishu/wiki/parse_mode_sync_test.go +A internal/datasource/connector/feishu/wiki/paths.go +A internal/datasource/connector/feishu/wiki/paths_regression_test.go +A internal/datasource/connector/feishu/wiki/paths_test.go +M internal/datasource/connector/ima/client.go +A internal/datasource/connector/ima/truncate_utf8_test.go +A internal/datasource/connector/notion/attachment_retry_test.go +M internal/datasource/connector/notion/client.go +M internal/datasource/connector/notion/connector.go +M internal/datasource/connector/notion/pagination_guard_test.go +M internal/datasource/connector/rss/article_retry_test.go +M internal/datasource/connector/rss/connector.go +M internal/datasource/connector/rss/item_identity_test.go +M internal/datasource/connector/yuque/client.go +M internal/datasource/connector/yuque/client_test.go +A internal/datasource/connector/yuque/pagination_guard_test.go +A internal/datasource/connector/yuque/truncate_utf8_test.go +M internal/datasource/scheduler.go +A internal/datasource/scheduler_retention_test.go +M internal/datasource/scheduler_test.go +A internal/envfile/envfile.go +A internal/envfile/envfile_test.go +M internal/event/event.go +M internal/event/event_data.go +A internal/handler/agent_grant.go +A internal/handler/agent_prompt_test.go +M internal/handler/audit_log.go +M internal/handler/auth.go +A internal/handler/automation.go +A internal/handler/automation_test.go +M internal/handler/chunk.go +A internal/handler/collaboration_prompt_test.go +M internal/handler/custom_agent.go +A internal/handler/custom_agent_patch_test.go +M internal/handler/datasource.go +M internal/handler/deployment_capabilities.go +M internal/handler/deployment_capabilities_test.go +M internal/handler/dto/datasource.go +M internal/handler/dto/mcp.go +M internal/handler/dto/model.go +M internal/handler/dto/tenant.go +M internal/handler/dto/web_search_provider.go +M internal/handler/embed_channel.go +A internal/handler/embed_channel_update_test.go +M internal/handler/embed_flow_test.go +M internal/handler/embed_session_test.go +M internal/handler/evaluation.go +M internal/handler/faq.go +A internal/handler/faq_batch_patch.go +A internal/handler/faq_batch_patch_test.go +A internal/handler/graph_search.go +A internal/handler/graph_search_test.go +A internal/handler/hybrid_search_body_limit_test.go +M internal/handler/im.go +M internal/handler/initialization.go +M internal/handler/knowledge.go +A internal/handler/knowledge_rebuild_index_test.go +M internal/handler/knowledge_spans_test.go +A internal/handler/knowledge_tag_batch_test.go +M internal/handler/knowledgebase.go +A internal/handler/knowledgebase_body_limit_test.go +A internal/handler/knowledgebase_parser_patch.go +A internal/handler/knowledgebase_parser_patch_test.go +A internal/handler/knowledgebase_patch_test.go +A internal/handler/knowledgebase_settings_access_test.go +M internal/handler/mcp_credentials.go +M internal/handler/mcp_endpoint.go +M internal/handler/mcp_metadata.go +M internal/handler/mcp_oauth.go +M internal/handler/mcp_service.go +A internal/handler/mcp_service_assistant_test.go +M internal/handler/mcp_tool_approval_test.go +M internal/handler/me_env_var.go +M internal/handler/memory.go +M internal/handler/message.go +A internal/handler/message_collaboration_status_test.go +A internal/handler/message_limit_cap_test.go +A internal/handler/message_pending_prompt_test.go +M internal/handler/message_suggestion.go +M internal/handler/model.go +M internal/handler/model_catalog.go +A internal/handler/model_patch_test.go +M internal/handler/organization.go +M internal/handler/sandbox_check.go +A internal/handler/sandbox_check_probe_line_test.go +M internal/handler/sandbox_config.go +M internal/handler/sandbox_config_test.go +M internal/handler/sandbox_skill.go +M internal/handler/sandbox_skill_test.go +A internal/handler/session/agent_stream_approval_test.go +M internal/handler/session/agent_stream_handler.go +M internal/handler/session/agent_stream_handler_test.go +M internal/handler/session/artifact_completion_test.go +M internal/handler/session/artifact_library.go +M internal/handler/session/attachment_processor.go +A internal/handler/session/attachment_processor_test.go +A internal/handler/session/automation_readonly_test.go +A internal/handler/session/background.go +A internal/handler/session/background_http.go +A internal/handler/session/background_http_test.go +A internal/handler/session/background_test.go +M internal/handler/session/continue_stream_resource_urls_test.go +A internal/handler/session/continue_stream_resume_test.go +M internal/handler/session/handler.go +M internal/handler/session/helpers.go +M internal/handler/session/helpers_test.go +A internal/handler/session/kind_test.go +A internal/handler/session/model_identity_test.go +M internal/handler/session/qa.go +A internal/handler/session/qa_turn_lease_test.go +A internal/handler/session/quick_answer_error_test.go +M internal/handler/session/resource_urls.go +M internal/handler/session/resource_urls_test.go +A internal/handler/session/resume.go +A internal/handler/session/resume_context_test.go +A internal/handler/session/resume_settle_test.go +M internal/handler/session/sandbox_desktop_ws.go +M internal/handler/session/sandbox_desktop_ws_test.go +M internal/handler/session/steer.go +M internal/handler/session/steer_live_run_test.go +M internal/handler/session/stream.go +A internal/handler/session/stream_turn_context_test.go +A internal/handler/session/suspended_completion_test.go +M internal/handler/session/title.go +A internal/handler/session/title_model_test.go +M internal/handler/session/types.go +M internal/handler/session/wiki_fixer_scope.go +M internal/handler/session/wiki_fixer_scope_test.go +A internal/handler/settings_operations.go +A internal/handler/settings_operations_test.go +M internal/handler/skill_catalog.go +M internal/handler/skill_catalog_test.go +M internal/handler/skill_handler.go +M internal/handler/storagebackend.go +A internal/handler/swagger_bodies.go +A internal/handler/swagger_response.go +M internal/handler/system.go +A internal/handler/system_operations.go +A internal/handler/system_operations_test.go +A internal/handler/system_storage_quota_test.go +M internal/handler/tag.go +M internal/handler/tenant.go +M internal/handler/tenant_invitation.go +M internal/handler/tenant_invite_link.go +M internal/handler/tenant_member.go +M internal/handler/tenant_secret_disclosure_test.go +A internal/handler/tool_approval_decision_test.go +M internal/handler/upload_limit.go +M internal/handler/user_resource_favorite.go +M internal/handler/vectorstore.go +M internal/handler/web_search.go +M internal/handler/web_search_provider.go +M internal/handler/weknoracloud.go +M internal/handler/wiki_page.go +A internal/handler/wiki_page_list_pagesize_test.go +A internal/handler/workspace_operations.go +A internal/handler/workspace_operations_test.go +M internal/im/content_rewrite_test.go +M internal/im/dingtalk/adapter.go +M internal/im/feishu/adapter.go +M internal/im/feishu/adapter_test.go +A internal/im/feishu/content_disposition_test.go +M internal/im/feishu/factory.go +M internal/im/feishu/longconn.go +M internal/im/feishu/longconn_test.go +M internal/im/full_output_test.go +A internal/im/global_resource_storage_test.go +A internal/im/im_attachment_filename_test.go +M internal/im/im_file_service_test.go +M internal/im/mattermost/adapter.go +M internal/im/mattermost/client.go +A internal/im/mattermost/truncate_utf8_test.go +A internal/im/mattermost/webhook_body_limit_test.go +M internal/im/qqbot/adapter.go +A internal/im/resource_access.go +A internal/im/resource_access_test.go +A internal/im/resource_storage_test.go +M internal/im/service.go +M internal/im/slack/adapter.go +M internal/im/telegram/adapter.go +M internal/im/tool_display.go +A internal/im/webhook_body.go +A internal/im/webhook_body_test.go +M internal/im/wecom/webhook_adapter.go +M internal/im/yunzhijia/adapter.go +A internal/infrastructure/chunker/protected_spans_order_test.go +M internal/infrastructure/chunker/splitter.go +M internal/infrastructure/chunker/strategy.go +M internal/infrastructure/chunker/strategy_test.go +M internal/infrastructure/docparser/anydoc/anydoc.go +M internal/infrastructure/docparser/anydoc/anydoc_test.go +M internal/infrastructure/docparser/anydoc/backend_cgo.go +M internal/infrastructure/docparser/anydoc/backend_stub.go +A internal/infrastructure/docparser/anydoc/pdf_structure_linked_test.go +A internal/infrastructure/docparser/anydoc/resource_limit_test.go +A internal/infrastructure/docparser/anydoc_pptx_vector_test.go +M internal/infrastructure/docparser/anydoc_reader.go +M internal/infrastructure/docparser/anydoc_reader_test.go +M internal/infrastructure/docparser/builtin_converter.go +A internal/infrastructure/docparser/builtin_image_filename_test.go +A internal/infrastructure/docparser/csv_converter.go +A internal/infrastructure/docparser/csv_converter_test.go +A internal/infrastructure/docparser/csv_limits_test.go +M internal/infrastructure/docparser/engine_registry_test.go +M internal/infrastructure/docparser/grpc_parser.go +M internal/infrastructure/docparser/http_parser.go +M internal/infrastructure/docparser/image_resolver.go +M internal/infrastructure/docparser/image_resolver_test.go +M internal/infrastructure/docparser/json_converter.go +M internal/infrastructure/docparser/json_converter_test.go +M internal/infrastructure/docparser/mineru_cloud_converter.go +A internal/infrastructure/docparser/mineru_cloud_download_test.go +A internal/infrastructure/docparser/mineru_cloud_parts.go +A internal/infrastructure/docparser/mineru_cloud_parts_test.go +M internal/infrastructure/docparser/mineru_converter.go +M internal/infrastructure/docparser/mineru_layout.go +M internal/infrastructure/docparser/mineru_v1_client.go +M internal/infrastructure/docparser/mineru_v1_client_test.go +A internal/infrastructure/docparser/text_decode_test.go +M internal/infrastructure/docparser/weknoracloud_http_reader.go +A internal/infrastructure/docparser/zip_limits.go +A internal/infrastructure/docparser/zip_limits_test.go +M internal/infrastructure/web_fetch/fetcher.go +A internal/infrastructure/web_fetch/fetcher_charset_test.go +M internal/infrastructure/web_fetch/fetcher_test.go +M internal/infrastructure/web_search/bing.go +M internal/infrastructure/web_search/bocha.go +M internal/infrastructure/web_search/duckduckgo.go +A internal/infrastructure/web_search/duckduckgo_utf8_test.go +A internal/infrastructure/web_search/error_preview_helpers_test.go +A internal/infrastructure/web_search/error_preview_utf8_test.go +M internal/infrastructure/web_search/keenable.go +M internal/infrastructure/web_search/metaso.go +M internal/infrastructure/web_search/ollama.go +A internal/infrastructure/web_search/response_limit.go +A internal/infrastructure/web_search/response_limit_test.go +M internal/infrastructure/web_search/searxng.go +M internal/infrastructure/web_search/tavily.go +M internal/infrastructure/web_search/zhipu.go +M internal/localsandbox/adapter/adapter.go +M internal/localsandbox/adapter/adapter_test.go +A internal/localsandbox/adapter/approval.go +A internal/localsandbox/adapter/approval_test.go +M internal/localsandbox/adapter/layout.go +M internal/localsandbox/aliases.go +A internal/localsandbox/approval.go +A internal/localsandbox/core/command.go +A internal/localsandbox/core/command_test.go +M internal/localsandbox/core/denial.go +M internal/localsandbox/core/denial_test.go +A internal/localsandbox/core/escalation.go +A internal/localsandbox/core/escalation_test.go +M internal/localsandbox/core/pathguard.go +M internal/localsandbox/core/pathguard_file.go +M internal/localsandbox/core/policy.go +M internal/localsandbox/core/policy_builder.go +M internal/localsandbox/core/policy_builder_test.go +M internal/localsandbox/core/workspace.go +M internal/localsandbox/core/workspace_test.go +M internal/localsandbox/seatbelt/backend.go +M internal/localsandbox/seatbelt/backend_test.go +M internal/localsandbox/seatbelt/compiler.go +M internal/localsandbox/seatbelt/compiler_test.go +M internal/localsandbox/service.go +A internal/localsandbox/service_approval_test.go +M internal/localsandbox/service_test.go +A internal/localsandbox/session_state.go +A internal/localsandbox/session_state_test.go +A internal/localsandbox/start.go +A internal/localsandbox/start_test.go +M internal/logger/logger.go +M internal/logger/logger_test.go +M internal/mcp/client.go +A internal/mcp/client_call_error_test.go +A internal/mcp/client_sse_lifetime_test.go +M internal/mcp/errors.go +A internal/mcp/errors_test.go +A internal/mcp/sse_connection.go +A internal/mcp/sse_connection_test.go +A internal/mcpserver/kb_selectors_validation_test.go +M internal/mcpserver/scope.go +M internal/mcpserver/tools_ask.go +A internal/mcpserver/tools_read_document_test.go +M internal/mcpserver/tools_retrieve.go +A internal/mcpserver/tools_search_documents_test.go +M internal/mcpserver/tools_wiki.go +M internal/middleware/access.go +M internal/middleware/auth.go +M internal/middleware/auth_api_principal_test.go +M internal/middleware/auth_context.go +A internal/middleware/auth_internal_dispatch_test.go +M internal/middleware/embed_auth.go +M internal/middleware/embed_auth_test.go +M internal/middleware/mcp_endpoint_auth.go +M internal/middleware/mcp_endpoint_auth_test.go +M internal/middleware/rbac.go +M internal/modelcontext/README.md +M internal/modelcontext/citations.go +A internal/modelcontext/citations_literal_test.go +M internal/modelcontext/graph_truncation_test.go +M internal/modelcontext/handle_table.go +M internal/modelcontext/image_sources_test.go +M internal/modelcontext/leaks_test.go +M internal/modelcontext/mcp_sources.go +M internal/modelcontext/mcp_sources_test.go +M internal/modelcontext/mcp_test.go +M internal/modelcontext/model_output.go +M internal/modelcontext/omitted_results_test.go +M internal/modelcontext/registry.go +M internal/modelcontext/registry_test.go +A internal/modelcontext/source_text.go +A internal/modelcontext/source_text_test.go +M internal/modelcontext/sources.go +M internal/modelcontext/sources_test.go +M internal/modelcontext/stream.go +M internal/modelcontext/tool_policy.go +M internal/models/api/anthropicmessages/anthropicmessages_test.go +M internal/models/api/anthropicmessages/client.go +M internal/models/api/anthropicmessages/request.go +M internal/models/api/cohererank/client.go +M internal/models/api/cohererank/golden_test.go +M internal/models/api/endpoint.go +M internal/models/api/endpoint_test.go +M internal/models/api/googlegenai/client.go +M internal/models/api/googlegenai/googlegenai_test.go +M internal/models/api/googlegenai/request.go +M internal/models/api/images.go +M internal/models/api/images_test.go +M internal/models/api/json_field_extractor.go +A internal/models/api/json_field_extractor_semantics_test.go +M internal/models/api/openaicompletions/client.go +M internal/models/api/openaicompletions/request.go +A internal/models/api/openaicompletions/session_headers_test.go +A internal/models/api/openaicompletions/stream_tool_index_test.go +M internal/models/api/openairesponses/client.go +A internal/models/api/openairesponses/refusal_test.go +M internal/models/api/openairesponses/request.go +M internal/models/api/options.go +M internal/models/api/prompt_cache.go +M internal/models/api/prompt_cache_test.go +A internal/models/api/response_limit.go +A internal/models/api/response_limit_test.go +M internal/models/api/retry_test.go +A internal/models/api/runtime_notice_test.go +M internal/models/api/sse.go +A internal/models/api/sse_framing_test.go +M internal/models/capabilities.go +M internal/models/chat/ollama.go +A internal/models/chat/ollama_runtime_notice_test.go +M internal/models/embedding/batch.go +A internal/models/embedding/batch_race_test.go +M internal/models/embedding/image_wire_test.go +M internal/models/legacy_keys.go +A internal/models/limiter/heartbeat_test.go +M internal/models/limiter/limiter.go +M internal/models/parity/rerank_test.go +M internal/models/parity/testdata/catalog-baseline.json +M internal/models/providers/generic.go +M internal/models/providers/gpustack.go +M internal/models/providers/litellm.go +M internal/models/rerank/protocol_test.go +M internal/models/runtime/resolve.go +M internal/models/vlm/concurrency_wrapper.go +M internal/models/vlm/langfuse_wrapper.go +A internal/models/vlm/langfuse_wrapper_test.go +M internal/models/vlm/llm_debug.go +M internal/models/vlm/ollama.go +A internal/models/vlm/ollama_test.go +M internal/models/vlm/remote_api.go +A internal/models/vlm/remote_api_max_tokens_test.go +M internal/models/vlm/vlm.go +M internal/models/vlm/weknoracloud.go +A internal/productdocs/library.go +A internal/productdocs/markdown.go +A internal/productdocs/productdocs_test.go +M internal/reranking/passage.go +A internal/reranking/passage_code_test.go +M internal/reranking/passage_test.go +A internal/router/background_routes_test.go +M internal/router/deployment_capabilities.go +A internal/router/operations.go +A internal/router/operations_mcp_metadata_integration_test.go +A internal/router/operations_test.go +M internal/router/rbac.go +M internal/router/router.go +M internal/router/router_api_key_capabilities_test.go +M internal/router/router_files_test.go +M internal/router/router_presigned_test.go +M internal/router/router_static_test.go +M internal/router/routes_agent.go +M internal/router/routes_auth_tenant.go +A internal/router/routes_automation.go +M internal/router/routes_chat.go +A internal/router/routes_graph.go +A internal/router/routes_graph_test.go +M internal/router/routes_infra.go +M internal/router/routes_knowledge.go +M internal/router/static.go +M internal/router/task.go +A internal/router/task_dead_letter_utf8_test.go +M internal/router/task_inspector.go +A internal/sandbox/activity_registry_memory.go +A internal/sandbox/activity_registry_memory_test.go +A internal/sandbox/activity_registry_redis.go +A internal/sandbox/activity_registry_redis_test.go +A internal/sandbox/admission/admission.go +A internal/sandbox/admission/admission_test.go +A internal/sandbox/admission/memory.go +A internal/sandbox/admission/redis.go +A internal/sandbox/admission/redis_integration_test.go +A internal/sandbox/allocation/allocation_test.go +A internal/sandbox/allocation/assignment.go +A internal/sandbox/allocation/gate.go +A internal/sandbox/allocation/machine.go +A internal/sandbox/allocation/mode.go +A internal/sandbox/allocation/owner.go +A internal/sandbox/allocation/retention.go +M internal/sandbox/capabilities.go +A internal/sandbox/command_approval.go +A internal/sandbox/command_approval_test.go +M internal/sandbox/config_sandboxes.go +M internal/sandbox/cube_remote_client.go +M internal/sandbox/cube_remote_client_test.go +M internal/sandbox/docker_integration_test.go +M internal/sandbox/docker_remote_client.go +M internal/sandbox/docker_remote_client_test.go +A internal/sandbox/docker_remote_client_utf8_test.go +M internal/sandbox/e2b_remote_client.go +A internal/sandbox/issue3910_repro_integration_test.go +A internal/sandbox/keepalive.go +A internal/sandbox/keepalive_test.go +M internal/sandbox/remote_errors.go +M internal/sandbox/remote_fake_test.go +M internal/sandbox/remote_sandbox.go +M internal/sandbox/sandbox.go +M internal/sandbox/session_binding.go +M internal/sandbox/session_binding_redis.go +A internal/sandbox/session_binding_redis_activity_test.go +M internal/sandbox/session_binding_redis_test.go +M internal/sandbox/session_binding_test.go +M internal/sandbox/session_file_operation_test.go +A internal/sandbox/session_input_rebind_test.go +M internal/sandbox/session_lifecycle.go +M internal/sandbox/session_lifecycle_test.go +M internal/sandbox/session_manager.go +M internal/sandbox/session_manager_desktop_test.go +M internal/sandbox/session_manager_test.go +A internal/sandbox/shell_job.go +A internal/sandbox/shell_job_integration_test.go +A internal/sandbox/shell_job_scripts.go +A internal/sandbox/shell_job_scripts_test.go +A internal/sandbox/shell_job_test.go +M internal/sandbox/skill_paths.go +M internal/sandbox/tenant_resolver.go +A internal/sandbox/workspace/layout.go +A internal/sandbox/workspace/layout_test.go +A internal/sandbox/workspace/paths.go +A internal/sandbox/workspace/paths_test.go +M internal/sandbox/workspace_layout.go +M internal/sandbox/workspace_path.go +M internal/sourceloc/align.go +A internal/sourceloc/alignment_index_test.go +M internal/storageurl/resolver.go +A internal/storageurl/resolver_test.go +M internal/stream/memory_manager.go +A internal/stream/notice_inbox_redis.go +A internal/stream/notice_inbox_redis_test.go +M internal/stream/redis_live_run_test.go +M internal/stream/redis_manager.go +M internal/types/agent.go +A internal/types/agent_grant.go +A internal/types/agent_grant_test.go +A internal/types/agent_operation.go +A internal/types/agent_operation_acting_via_test.go +A internal/types/agent_prompt.go +A internal/types/ask_user.go +A internal/types/ask_user_test.go +A internal/types/assistant.go +A internal/types/assistant_test.go +M internal/types/audit_log.go +A internal/types/automation.go +M internal/types/chat.go +M internal/types/chat_manage.go +M internal/types/chunk.go +M internal/types/config_redaction.go +M internal/types/config_redaction_sandbox_test.go +M internal/types/const.go +M internal/types/context_clone.go +M internal/types/context_helpers.go +M internal/types/custom_agent.go +M internal/types/datasource.go +M internal/types/docparser.go +M internal/types/embed_channel.go +M internal/types/faq.go +A internal/types/generated_question_retrieval.go +A internal/types/generated_question_retrieval_test.go +A internal/types/graph_search.go +A internal/types/graph_search_test.go +M internal/types/image_actions.go +A internal/types/image_actions_test.go +M internal/types/image_attrs.go +M internal/types/image_attrs_gallery.go +M internal/types/image_attrs_test.go +A internal/types/image_pipeline_slot_test.go +M internal/types/indexing_strategy.go +M internal/types/interfaces/agent.go +A internal/types/interfaces/agent_grant.go +A internal/types/interfaces/agent_prompt.go +A internal/types/interfaces/background.go +A internal/types/interfaces/background_test.go +M internal/types/interfaces/chunk.go +M internal/types/interfaces/datasource.go +M internal/types/interfaces/document_parser.go +A internal/types/interfaces/graph_search.go +M internal/types/interfaces/knowledge.go +M internal/types/interfaces/knowledgebase.go +M internal/types/interfaces/mcp_tool_approval.go +M internal/types/interfaces/resource.go +A internal/types/interfaces/sandbox_allocation.go +M internal/types/interfaces/stream_manager.go +M internal/types/interfaces/task_inspector.go +M internal/types/interfaces/tenant.go +M internal/types/interfaces/web_search_provider.go +M internal/types/interfaces/wiki_page.go +M internal/types/knowledge.go +M internal/types/knowledge_folder.go +M internal/types/knowledge_process.go +M internal/types/knowledgebase.go +M internal/types/knowledgebase_profile.go +M internal/types/mcp.go +M internal/types/mcp_metadata.go +M internal/types/message.go +M internal/types/message_artifact.go +A internal/types/page_action.go +A internal/types/page_action_test.go +M internal/types/principal.go +M internal/types/principal_test.go +M internal/types/qa_request.go +M internal/types/retriever.go +A internal/types/run_mode.go +M internal/types/runtime_task.go +A internal/types/sandbox_allocation.go +A internal/types/sandbox_checkpoint_test.go +M internal/types/search.go +M internal/types/session.go +M internal/types/session_fork.go +A internal/types/session_kind_test.go +A internal/types/system_setting_summary.go +M internal/types/tag.go +M internal/types/task.go +M internal/types/temporary_document.go +M internal/types/tenant.go +M internal/types/tenant_member.go +M internal/types/user.go +M internal/types/vectorstore.go +M internal/types/vectorstore_test.go +M internal/types/web_search_provider.go +M internal/types/wiki_page.go +M internal/utils/import_filetypes.go +M internal/utils/import_filetypes_test.go +M internal/utils/inject.go +M internal/utils/inject_test.go +M internal/utils/security_test.go +A licenses/numpy-BSD-3-Clause.txt +A licenses/onnxruntime-MIT.txt +A licenses/opencv-python-headless-Apache-2.0.txt +A licenses/opencv-python-headless-THIRD-PARTY.txt +A licenses/rapidocr-Apache-2.0.txt +A licenses/rapidocr-MODEL_LICENSES.md +A mcp-server/test_chat_async_preflight.py +M mcp-server/test_chat_sse.py +M mcp-server/weknora_mcp_server.py +A migrations/sqlite/000037_agent_prompts.down.sql +A migrations/sqlite/000037_agent_prompts.up.sql +A migrations/sqlite/000038_tenant_assistant_config.down.sql +A migrations/sqlite/000038_tenant_assistant_config.up.sql +A migrations/sqlite/000039_session_kind.down.sql +A migrations/sqlite/000039_session_kind.up.sql +A migrations/sqlite/000040_feishu_deep_adaptation_resync.down.sql +A migrations/sqlite/000040_feishu_deep_adaptation_resync.up.sql +A migrations/sqlite/000041_agent_collaborations.down.sql +A migrations/sqlite/000041_agent_collaborations.up.sql +A migrations/sqlite/000042_remove_empty_image_chunks.down.sql +A migrations/sqlite/000042_remove_empty_image_chunks.up.sql +A migrations/sqlite/000043_mcp_tool_risk.down.sql +A migrations/sqlite/000043_mcp_tool_risk.up.sql +A migrations/sqlite/000044_agent_grants.down.sql +A migrations/sqlite/000044_agent_grants.up.sql +A migrations/sqlite/000045_automations.down.sql +A migrations/sqlite/000045_automations.up.sql +A migrations/sqlite/000046_session_owner_auth_source.down.sql +A migrations/sqlite/000046_session_owner_auth_source.up.sql +A migrations/sqlite/000047_sandbox_user_allocation.down.sql +A migrations/sqlite/000047_sandbox_user_allocation.up.sql +A migrations/sqlite/000048_automation_execution_duration.down.sql +A migrations/sqlite/000048_automation_execution_duration.up.sql +A migrations/sqlite/000049_automation_model.down.sql +A migrations/sqlite/000049_automation_model.up.sql +A migrations/sqlite/000050_automation_assistant.down.sql +A migrations/sqlite/000050_automation_assistant.up.sql +A migrations/versioned/000119_agent_prompts.down.sql +A migrations/versioned/000119_agent_prompts.up.sql +A migrations/versioned/000120_tenant_assistant_config.down.sql +A migrations/versioned/000120_tenant_assistant_config.up.sql +A migrations/versioned/000121_session_kind.down.sql +A migrations/versioned/000121_session_kind.up.sql +A migrations/versioned/000122_feishu_deep_adaptation_resync.down.sql +A migrations/versioned/000122_feishu_deep_adaptation_resync.up.sql +A migrations/versioned/000123_resource_content_hash_index.down.sql +A migrations/versioned/000123_resource_content_hash_index.up.sql +A migrations/versioned/000124_agent_collaborations.down.sql +A migrations/versioned/000124_agent_collaborations.up.sql +A migrations/versioned/000125_remove_empty_image_chunks.down.sql +A migrations/versioned/000125_remove_empty_image_chunks.up.sql +A migrations/versioned/000126_mcp_tool_risk.down.sql +A migrations/versioned/000126_mcp_tool_risk.up.sql +A migrations/versioned/000127_agent_grants.down.sql +A migrations/versioned/000127_agent_grants.up.sql +A migrations/versioned/000128_automations.down.sql +A migrations/versioned/000128_automations.up.sql +A migrations/versioned/000129_session_owner_auth_source.down.sql +A migrations/versioned/000129_session_owner_auth_source.up.sql +A migrations/versioned/000130_sandbox_user_allocation.down.sql +A migrations/versioned/000130_sandbox_user_allocation.up.sql +A migrations/versioned/000131_automation_execution_duration.down.sql +A migrations/versioned/000131_automation_execution_duration.up.sql +A migrations/versioned/000132_automation_model.down.sql +A migrations/versioned/000132_automation_model.up.sql +A migrations/versioned/000133_automation_assistant.down.sql +A migrations/versioned/000133_automation_assistant.up.sql +M scripts/build-anydoc-lib.sh +M scripts/docker-entrypoint.sh +A scripts/docker-entrypoint_test.sh +M scripts/git-hooks/common.sh +M scripts/start_all.sh +M scripts/test-git-hooks.sh +M third_party/anydoc-go/Cargo.lock +M third_party/anydoc-go/Cargo.toml +M third_party/anydoc-go/README.md +M third_party/anydoc-go/errors.go +M website-docs/.vitepress/config.mts +A website-docs/.vitepress/screenshot-sizes.mjs +M website-docs/.vitepress/theme-config.d.ts +M website-docs/.vitepress/theme/Screenshot.vue +M website-docs/.vitepress/theme/style.css +M website-docs/01-getting-started/02-installation.md +M website-docs/01-getting-started/04-configuration.md +M website-docs/02-architecture/02-backend-design.md +M website-docs/02-architecture/03-document-pipeline.md +M website-docs/02-architecture/04-rag-pipeline.md +M website-docs/03-features/01-tenant-auth.md +M website-docs/03-features/03-document-parsing.md +M website-docs/03-features/05-retrieval-engines.md +M website-docs/03-features/06-models.md +M website-docs/03-features/07-agent.md +M website-docs/03-features/08-mcp.md +M website-docs/03-features/09-knowledge-graph.md +M website-docs/03-features/10-datasource.md +M website-docs/03-features/11-web-search.md +M website-docs/03-features/12-im-integration.md +M website-docs/03-features/14-wiki.md +M website-docs/03-features/16-observability.md +M website-docs/03-features/20-platform-admin.md +M website-docs/03-features/21-file-access.md +M website-docs/03-features/22-skills-sandbox.md +M website-docs/03-features/24-feishu-drive.md +M website-docs/04-api/02-api-agent-mcp.md +M website-docs/04-api/02-api-chat.md +M website-docs/04-api/02-api-chunks.md +M website-docs/04-api/02-api-infra.md +M website-docs/04-api/02-api-knowledge.md +M website-docs/04-api/02-api-org.md +M website-docs/04-api/02-api-sandbox-skills.md +M website-docs/04-api/02-api-tenant.md +M website-docs/05-clients/07-claw-skill.md +M website-docs/06-development/01-dev-guide.md +M website-docs/06-development/04-sandbox-deployment.md +M website-docs/README.md +A website-docs/embed.go +A website-docs/homepage/app/docs/models/layout.tsx +A website-docs/homepage/app/docs/models/page.tsx +M website-docs/homepage/app/interactive.tsx +A website-docs/homepage/app/model-leaderboard.css +A website-docs/homepage/app/model-leaderboard.tsx +M website-docs/homepage/app/page.tsx +A website-docs/public/screenshots/datasource-confluence-pat.png +A website-docs/public/screenshots/kb-document-toolbar-wrapping.png +A website-docs/public/screenshots/sandbox-session-skill-rollout.png +A website-docs/public/screenshots/sandbox-user-skill-rollout.png +M website-docs/scripts/build-site.mjs +M website-docs/scripts/check-site.mjs +A website-docs/scripts/screenshot-sizes.test.mjs +M website-docs/shared/header.css +M website-docs/shared/header.ts diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 491fe801fca..2d7a051673f 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "knowledage-base", - "version": "0.8.3", + "version": "0.9.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "knowledage-base", - "version": "0.8.3", + "version": "0.9.0", "dependencies": { "@microsoft/fetch-event-source": "^2.0.1", "@novnc/novnc": "^1.7.0", diff --git a/frontend/package.json b/frontend/package.json index d0b8f196894..266b44a9437 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "knowledage-base", - "version": "0.8.3", + "version": "0.9.0", "private": true, "type": "module", "scripts": { diff --git a/frontend/src/components/NewUserGuide.test.ts b/frontend/src/components/NewUserGuide.test.ts new file mode 100644 index 00000000000..c7759fa3e45 --- /dev/null +++ b/frontend/src/components/NewUserGuide.test.ts @@ -0,0 +1,147 @@ +import assert from 'node:assert/strict' +import { readFileSync } from 'node:fs' +import test, { type TestContext } from 'node:test' +import { reactive } from 'vue' +import { fixture, flush } from '../test-utils/vueFixture.ts' + +function setup(t: TestContext, options: { + newUser?: boolean + seenAssistant?: boolean + visible?: boolean + entry?: 'sidebar' | 'launcher' | 'palette' + settings?: boolean +} = {}) { + const saved = new Map() + const f = fixture(t, { + getItem: key => saved.get(key) ?? null, + setItem: (key, value) => { saved.set(key, value) }, + removeItem: key => { saved.delete(key) }, + }) + const guides = f.evaluate(readFileSync(new URL('../config/contextualGuides.ts', import.meta.url), 'utf8'), {}) + if (!options.newUser) saved.set(guides.GLOBAL_USER_GUIDE_KEY, '1') + if (options.seenAssistant) saved.set(guides.ASSISTANT_ENTRY_GUIDE_KEY, '1') + const assistant = reactive({ visible: options.visible ?? false, entry: options.entry ?? 'sidebar' }) + const ui = reactive({ + showSettingsModal: options.settings ?? false, + expandSidebar() {}, + openSettings() { this.showSettingsModal = true }, + closeSettings() { this.showSettingsModal = false }, + }) + const dependencies = { + '@/config/contextualGuides': guides, + '@/stores/assistant': { useAssistantStore: () => assistant }, + '@/stores/ui': { useUIStore: () => ui }, + } + const mount = () => f.component(new URL('./NewUserGuide.vue', import.meta.url), dependencies) + return { ...f, mount, assistant, ui, guides, saved, dependencies } +} + +test('upgrading shows only the assistant entry and waits before showing page tours', async t => { + const f = setup(t) + const { vm } = f.mount() + const page = f.component(new URL('./ContextualGuide.vue', import.meta.url), f.dependencies, { + tour: 'kbList', when: true, + }) + assert.equal(f.guides.isGlobalUserGuideDone(), false) + t.mock.timers.tick(700) + await flush() + assert.equal(vm.active, true) + assert.equal(vm.assistantOnly, true) + assert.deepEqual(Array.from(vm.steps, (step: any) => step.key), ['assistant']) + assert.equal(vm.steps[0].target, '[data-guide="assistant-entry"]') + assert.equal(vm.steps[0].interact, true) + assert.equal(page.vm.active, false) + + f.assistant.visible = true + await flush() + assert.equal(vm.active, false, 'opening the highlighted entry dismisses the overlay') + assert.equal(f.guides.isGlobalUserGuideDone(), true) + t.mock.timers.tick(400) + await flush() + t.mock.timers.tick(500) + await flush() + assert.equal(page.vm.active, true, 'the existing page tour runs after the entry guide') +}) + +test('acknowledging the assistant entry is remembered across remounts', async t => { + const f = setup(t) + const first = f.mount() + t.mock.timers.tick(700) + first.vm.onFinish() + first.close() + assert.equal(f.assistant.visible, false, 'dismissal does not open the assistant') + const second = f.mount() + t.mock.timers.tick(2000) + await flush() + assert.equal(second.vm.active, false) + assert.equal(f.guides.isGlobalUserGuideDone(), true) +}) + +test('new users see the assistant in the existing full tour without a second introduction', async t => { + const f = setup(t, { newUser: true }) + const first = f.mount() + t.mock.timers.tick(700) + assert.equal(first.vm.active, true) + assert.equal(first.vm.assistantOnly, false) + const keys = Array.from(first.vm.steps, (step: any) => step.key) + assert.deepEqual(keys, ['welcome', 'assistant', 'knowledge', 'agents', 'chat', 'settings', 'models', 'done']) + f.assistant.visible = true + await flush() + assert.deepEqual(Array.from(first.vm.steps, (step: any) => step.key), keys, + 'opening the assistant must not shift the current tour step') + first.vm.onFinish() + first.close() + f.assistant.visible = false + const next = f.mount() + t.mock.timers.tick(2000) + await flush() + assert.equal(next.vm.active, false) +}) + +test('entry introduction waits for settings to close and supports the floating launcher', async t => { + const f = setup(t, { settings: true, entry: 'launcher' }) + const { vm } = f.mount() + t.mock.timers.tick(2000) + assert.equal(vm.active, false) + f.ui.showSettingsModal = false + await flush() + t.mock.timers.tick(700) + assert.equal(vm.active, true) + assert.equal(vm.steps[0].placement, 'left') +}) + +test('an already open assistant or deliberately hidden entry does not block other tours', async t => { + const f = setup(t, { visible: true }) + const first = f.mount() + t.mock.timers.tick(700) + assert.equal(first.vm.active, false) + assert.equal(f.guides.isGlobalUserGuideDone(), true) + first.close() + f.saved.delete(f.guides.ASSISTANT_ENTRY_GUIDE_KEY) + f.assistant.visible = false + f.assistant.entry = 'palette' + await flush() + const second = f.mount() + t.mock.timers.tick(700) + assert.equal(second.vm.active, false) + assert.equal(f.guides.isGlobalUserGuideDone(), true) +}) + +test('manual replay cancels the scheduled upgrade prompt and unmount cancels pending work', async t => { + const f = setup(t) + const first = f.mount() + f.guides.openNewUserGuide() + assert.equal(first.vm.active, true) + assert.equal(first.vm.assistantOnly, false) + assert.ok(first.vm.steps.some((step: any) => step.key === 'assistant')) + t.mock.timers.tick(1000) + await flush() + assert.equal(first.vm.assistantOnly, false) + first.close() + + const pending = f.mount() + pending.close() + t.mock.timers.tick(1000) + assert.equal(pending.vm.active, false) + assert.equal(f.saved.has(f.guides.ASSISTANT_ENTRY_GUIDE_KEY), false) +}) diff --git a/frontend/src/components/NewUserGuide.vue b/frontend/src/components/NewUserGuide.vue index d7370672edd..61425157b96 100644 --- a/frontend/src/components/NewUserGuide.vue +++ b/frontend/src/components/NewUserGuide.vue @@ -1,20 +1,40 @@ + diff --git a/misc/release-v0.9.0-video/release-film/README.md b/misc/release-v0.9.0-video/release-film/README.md new file mode 100644 index 00000000000..b8790a8aedd --- /dev/null +++ b/misc/release-v0.9.0-video/release-film/README.md @@ -0,0 +1,102 @@ +# WeKnora v0.9.0 — release film + +165 seconds · 1920 × 1080 · 60 fps · H.264 / AAC · English narration + embedded subtitles · no music. +Approved by the user on 2026-10-28. The published-release step remains separate. + +## Original reference + +The September intro film provides the visual reference. Its original HTML, +rendering and audio sources are available in `misc/intro-video/`. + +The source history includes `7e82ee33d` (intro-video source), `c23b8a1d1` +(first-frame, motion and 60 fps polish), and `2020c1922` (the later soundtrack). +`reference.css` and `foundation.js` adapt that project's typography, UI styles, +HTML stream renderer, easing functions and icons. The new film preserves the +serif editorial headings, paper backgrounds, navy/gold title cards, restrained +camera movement and separate chapter exit/entry. The assistant uses the current +`AssistantPanel.vue`, `AssistantCreateDialog.vue`, `AssistantAccessPicker.vue`, +`CollaborationTasks.vue`, `ToolApprovalCard.vue` and `ShellExecResult.vue` as UI references. +Creation prompt assembly follows `assistant.prompts` in `frontend/src/i18n/locales/en-US.ts`. +The appended scenes reference the local-browser guide, `ImageGallery.vue`, +`GalleryViewer.vue`, the current `WikiBrowser.vue` grouped graph and Markdown +renderer, `ChatCitationFloat.vue`, `ChatReferenceSourceView.vue` and `PdfSourceViewer.vue`. + +The old soundtrack is not reused. The current mix combines a stock synthetic English narrator with synchronized typing, without background music. + +## Story and provenance + +| Time | Scene | +| --- | --- | +| 0–22 s | Four-capability cover; highlight the new entry beside the logo; open the right sidebar; type a v0.9.0 question; search and read the product docs; stream the answer without opening or highlighting a citation | +| 22–47 s | Open Agents → Create with assistant; type in the native request dialog; carry the expanded request into the Assistant; discover knowledge, model, MCP and Skill resources; review and create the agent | +| 47–65 s | Delegate agenda, sign-up and preparation checks to Atlas, Iris and Nova; show progress, completion and synchronization; combine their findings into a sourced briefing | +| 65–87 s | Open Automations → New automation; type in the assistant-creation dialog; carry the task, time zone and access instructions into the Assistant; review, save, run now and show the brief | +| 87–101 s | Choose Ask first; request a rename; inspect a compact before/after approval card; approve the operation; animate the name change in the knowledge-base card list | +| 101–113 s | Type a deliverable request; use the Skill and background sandbox command; open the Markdown run sheet | +| 113–127 s | Enable the connected local browser; type a form-filling request; fill title, time, capacity and notes; keep the event unpublished for review; mirror the exact authored page, focus and pointer in a compact floating preview; pause from that window | +| 127–137 s | Browse hand-drawn document images in the native gallery; type a search; filter and open a poster with its description, OCR and source | +| 137–150 s | Explore the current grouped Wiki graph; focus Reading club; open the page in the reader with formatted paragraphs, table and related links | +| 150–161 s | Ask about registration; hover a citation to preview its excerpt; open the original document at the highlighted supporting passage | +| 161–165 s | Brand close and GitHub address | + +Version answers are based on the current release baseline's +`website-docs/07-releases/v0.9.0.md`, Assistant, automation and permissions guides. +The reading-club dates, agenda, registration rules and preparation tasks come +from the three fictional documents in `../../release-v0.9.0-demo/`. +Reading Club Coordinator, Atlas/Iris/Nova, Event workspace MCP, brief-writer and +their animated interactions are illustrative. The `events.example` form, vector posters, charts and Wiki nodes are authored fictional examples, consistent with the reading-club story. They are not a captured live run +or a claim about latency. Real screenshot test evidence remains separate. + +Assistant chapters retain the taller sidebar on the right and explanatory text on the left. Creation starts from the actual page entry and dialog. Later chapters use full-width product layouts, adapting the original film’s browser and knowledge scenes. Original +product greens are limited to native controls and the Assistant glyph. No +Better Knowledge chapter, floating starter button, private identity, screenshot, +recording or old movie clip is used. The only bitmaps are the official wordmark +variants recovered with the original project. Product glyphs are SVG paths; +Inter is distributed under `../assets/INTER-LICENSE.txt`. + +## Rendering and checks + +Use Node 24+, Python 3.12 with NumPy, Chrome and FFmpeg. The local narrator uses MLX on Apple Silicon; its pinned Python dependencies are in `requirements-voice.txt`. The Mac executable paths are +configured in `render.mjs` and `check.mjs`. + +From `misc/release-v0.9.0-video`, activate the retained voice environment so the audio commands use their installed dependencies: + +```bash +source .venv-voice/bin/activate +``` + +To recreate that environment, use Python 3.12 and install `release-film/requirements-voice.txt`. Then run the local source server separately: + +```bash +python3 -m http.server 3110 --bind 127.0.0.1 --directory release-film +``` + +Then generate stills and the exact character/audio timeline, check layout and +render the film: + +```bash +python3 release-film/narration.py +node release-film/render.mjs stills +node release-film/check.mjs +node release-film/render.mjs video +python3 release-film/sfx.py +python3 release-film/mix.py +ffmpeg -v error -y -i out/release-film/video-silent.mp4 -i out/release-film/soundtrack.wav -map 0:v -map 1:a -c:v copy -c:a aac -b:a 192k -ar 48000 -t 165 -movflags +faststart out/release-film/weknora-v0.9.0-narrated-en.mp4 +python3 release-film/validate.py +cp out/release-film/weknora-v0.9.0-narrated-en.mp4 out/release-film/weknora-v0.9.0-en.mp4 +``` + +The renderer uses an empty browser context, blocks external requests and renders +the authored page. It does not access a real app or browser profile. The UI and +typing audio share 715 character events, aligned to 60 fps. `check.mjs` verifies +each character's arrival frame and checks layout at 660 sampled times, including +input/footer collisions, approval field boundaries, subtitle safe areas, browser/preview state equality and the knowledge-base rename. The eleven inputs also have +partial, ready-to-send and submitted-state checks. Browser form fields and gallery +search retain their text after entry; chat and creation inputs clear after submission. Click locations are measured +from their actual target elements, as in the original film. + +`sfx.py` synthesizes crisp, short key contacts with reduced bass thump and a 38 ms tail. The typing stem has no samples outside keypress tails. `narration.py` generates 28 conversational English lines locally with the stock `af_heart` voice from [Kokoro-82M](https://huggingface.co/hexgrad/Kokoro-82M), using the [MLX conversion](https://huggingface.co/mlx-community/Kokoro-82M-bf16) and [MLX Audio](https://github.com/Blaizzy/mlx-audio). The model is Apache-2.0; no individual voice is cloned. The generated audio uses model revision `a71e4d38b236d968966a2002c4c895dbd12b1c3c`. The script uses fictional public-facing material only. Model word durations drive 34 subtitle cues, written to `narration.js` and the matching SRT. Speed stays close to normal (0.98–1.073); pauses fit the existing scene timing. + +`mix.py` normalizes speech and ducks typing beneath it. The 48 kHz stereo master measures -18.02 LUFS integrated, -5.01 dBTP and 5.6 LU loudness range before AAC encoding. `mix-checks.json` records levels and checks that each spoken line fits its scene slot. There is no music, chime, ambient bed or transition sound. Narration and typing stems remain separate for future edits. + +English subtitles are embedded in the reserved space below the product windows and also delivered as a separate SRT. The poster is the complete branded first frame. `narration-plan.json` is the editable narration script; the generated captions should be regenerated from it instead of edited independently. diff --git a/misc/release-v0.9.0-video/release-film/assets/inter-latin.woff2 b/misc/release-v0.9.0-video/release-film/assets/inter-latin.woff2 new file mode 100644 index 00000000000..07d3c53aef1 Binary files /dev/null and b/misc/release-v0.9.0-video/release-film/assets/inter-latin.woff2 differ diff --git a/misc/release-v0.9.0-video/release-film/assets/logo-dark.png b/misc/release-v0.9.0-video/release-film/assets/logo-dark.png new file mode 100644 index 00000000000..2dfdfc1ab2a Binary files /dev/null and b/misc/release-v0.9.0-video/release-film/assets/logo-dark.png differ diff --git a/misc/release-v0.9.0-video/release-film/assets/logo-light.png b/misc/release-v0.9.0-video/release-film/assets/logo-light.png new file mode 100644 index 00000000000..81aa0d02875 Binary files /dev/null and b/misc/release-v0.9.0-video/release-film/assets/logo-light.png differ diff --git a/misc/release-v0.9.0-video/release-film/check.mjs b/misc/release-v0.9.0-video/release-film/check.mjs new file mode 100644 index 00000000000..2e5ee9a6b8a --- /dev/null +++ b/misc/release-v0.9.0-video/release-film/check.mjs @@ -0,0 +1,80 @@ +// Focused media regression checks: clipped controls, input/caret collisions, +// approval field alignment and exactly synchronized character events. +import {chromium} from 'playwright-core'; +import {writeFile,mkdir} from 'node:fs/promises'; +import {fileURLToPath} from 'node:url'; +const out=fileURLToPath(new URL('../out/release-film/',import.meta.url)); +await mkdir(out,{recursive:true}); +const browser=await chromium.launch({executablePath:'/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'}); +const page=await browser.newPage({viewport:{width:1920,height:1080}}); +await page.goto('http://127.0.0.1:3110/?render');await page.waitForFunction(()=>window.film?.ready); +const pageErrors=[];page.on('pageerror',e=>pageErrors.push(e.message)); +const report=await page.evaluate(()=>{ + const errors=[],events=window.film.keyEvents; + function visible(el){for(let n=el;n&&n!==document.body;n=n.parentElement){const s=getComputedStyle(n);if(s.display==='none'||s.visibility==='hidden'||+s.opacity<.15)return false}return true} + const keyChecks=[]; + for(const i of window.film.interactions){ + const a=window.film.scenes.find(s=>s.key===i.scene).a; + for(let n=0;n1890||pr.y<30||pr.bottom>1050)errors.push({t,type:'panelBounds',id:panel.id}); + const ph=panel.querySelector('.ph'),bar=panel.querySelector('.bar'); + if(ph.getBoundingClientRect().bottom>bar.getBoundingClientRect().top+1)errors.push({t,type:'inputFooterCollision',id:panel.id}); + for(const el of panel.querySelectorAll('.approval,.inbox,.assistant-header,.source-popover')){ + if(!visible(el))continue;const r=el.getBoundingClientRect(); + if(el.scrollWidth>el.clientWidth+1)errors.push({t,type:'horizontalOverflow',class:el.className}); + if(r.leftpr.right+1)errors.push({t,type:'controlOutsidePanel',class:el.className}); + } + for(const dt of panel.querySelectorAll('.approval dt')){ + if(!visible(dt))continue;const dd=dt.nextElementSibling;const range=document.createRange();range.selectNodeContents(dt); + if(range.getBoundingClientRect().right>dd.getBoundingClientRect().left-7)errors.push({t,type:'approvalFieldCollision',label:dt.textContent}); + } + } + for(const el of document.querySelectorAll('.create-dialog,.wide-app,.browser-task,#browserWindow,.browser-live,.rename-list')){ + if(!visible(el))continue;const r=el.getBoundingClientRect(); + if(r.left<30||r.right>1890||r.top<30||r.bottom>1050)errors.push({t,type:'windowBounds',id:el.id}); + } + for(const el of document.querySelectorAll('.dialog-textarea,.image-info,.wiki-markdown,.source-paper,.browser-chat')){ + if(!visible(el))continue; + if(el.scrollHeight>el.clientHeight+1)errors.push({t,type:'verticalOverflow',class:el.className,id:el.id,overflow:el.scrollHeight-el.clientHeight}); + if(el.scrollWidth>el.clientWidth+1)errors.push({t,type:'horizontalOverflow',class:el.className,id:el.id}); + } + for(const el of document.querySelectorAll('.editorial')){ + if(visible(el)&&el.getBoundingClientRect().bottom>925)errors.push({t,type:'editorialOverflow',id:el.id}); + } + const subtitle=document.getElementById('subtitle'); + if(visible(subtitle)){ + const r=subtitle.getBoundingClientRect(); + if(r.top<1025||r.bottom>1070||r.left<75||r.right>1845||subtitle.scrollWidth>subtitle.clientWidth+1)errors.push({t,type:'subtitleBounds',text:subtitle.textContent}); + if(/^[.,!?]/.test(subtitle.textContent))errors.push({t,type:'subtitlePunctuation',text:subtitle.textContent}); + } + if(t>=117.5&&t<127){ + const original=document.getElementById('browserWindow'),mirror=document.querySelector('#browserMirror .browser-mirror'); + if(!mirror||original.textContent!==mirror.textContent)errors.push({t,type:'browserPreviewMismatch'}); + for(const kind of ['.form-field','.pointer','.ripple']){ + const a=[...original.querySelectorAll(kind)],b=[...mirror.querySelectorAll(kind)]; + if(a.some((el,n)=>el.getAttribute('class')!==b[n]?.getAttribute('class')||el.getAttribute('style')!==b[n]?.getAttribute('style')))errors.push({t,type:'browserPreviewStateMismatch',kind}); + } + const floating=document.getElementById('browserLive'); + if(floating.closest('.browser-chat')||floating.getBoundingClientRect().width>400)errors.push({t,type:'browserPreviewNotFloating'}); + } + if(t>=98&&t<101&&getComputedStyle(document.getElementById('kbNewName')).opacity<.99)errors.push({t,type:'renameNotVisible'}); + } + for(const at of [94,98.2]){ + window.film.seek(at);const old=document.getElementById('kbOldName'),updated=document.getElementById('kbNewName'); + if((at<98?old:updated).textContent!==(at<98?'Weekend reading club':'Reading club workspace'))errors.push({t:at,type:'renameText'}); + } + return {sampledFrames:window.film.duration*4,characterEvents:events.length,characterAlignmentErrors:keyChecks,layoutErrors:errors,images:[...new Set([...document.images].map(i=>i.getAttribute('src')))]}; +}); +report.pageErrors=pageErrors; +await writeFile(out+'layout-checks.json',JSON.stringify(report,null,2)); +await browser.close();console.log(JSON.stringify(report,null,2)); +if(report.layoutErrors.length||report.characterAlignmentErrors.length||pageErrors.length)process.exitCode=1; diff --git a/misc/release-v0.9.0-video/release-film/film.css b/misc/release-v0.9.0-video/release-film/film.css new file mode 100644 index 00000000000..dd03b0df93a --- /dev/null +++ b/misc/release-v0.9.0-video/release-film/film.css @@ -0,0 +1,83 @@ +@font-face{font-family:Inter;src:url(assets/inter-latin.woff2)} +html,body{width:100%;height:100%;overflow:hidden;background:var(--paper2)} +#stage{position:absolute;transform-origin:0 0} +#chapters{position:absolute;inset:0} +.chapter{position:absolute;inset:0;display:none} +.editorial{position:absolute;left:120px;top:193px;width:690px;color:var(--ink)} +.editorial .eyebrow{font-size:18px;letter-spacing:.15em} +.editorial h1{font:500 68px/1.09 var(--serif);letter-spacing:-.035em;margin:26px 0 28px} +.editorial .lede{font-size:26px;line-height:1.55;color:var(--soft);max-width:655px;margin:0} +.explain{margin-top:54px;border-top:1px solid var(--rule);padding-top:28px} +.explain h2{font:500 32px/1.25 var(--serif);letter-spacing:-.01em;margin:0 0 14px} +.explain p{font-size:23px;line-height:1.55;color:var(--soft);margin:0;max-width:640px} +.explain .note{font:16px/1.6 var(--mono);color:var(--mute);margin-top:22px} +.identity{display:flex;align-items:center;gap:10px;font-size:19px;color:var(--soft);margin-top:24px}.identity svg{color:var(--gold);width:22px;height:22px} +.chapter-foot{position:absolute;left:120px;bottom:73px;display:flex;align-items:center;gap:22px;font-size:16px;color:var(--mute)} +.chapter-foot img{width:150px}.chapter-foot span{border-left:1px solid var(--rule);padding-left:22px} +.assistant{position:absolute;left:940px;top:100px;width:860px;height:880px;background:#fff;border:1px solid #e5e5e5;border-radius:16px;box-shadow:0 36px 75px -32px rgba(16,31,56,.28),0 0 0 1px rgba(16,31,56,.035);overflow:hidden;transform-origin:50% 50%;color:var(--t1)} +.assistant-header{height:76px;border-bottom:1px solid #e8e8e8;display:flex;align-items:center;padding:0 26px;gap:13px;font-size:25px;font-weight:600;background:#fff;position:relative;z-index:3} +.assistant-header>.i{color:var(--g);font-size:29px}.assistant-header .help{font-size:20px;color:#999;margin-left:1px} +.assistant-actions{margin-left:auto;display:flex;gap:21px;color:#888;font-size:22px;align-items:center;font-weight:400} +.transcript{position:absolute;left:30px;right:30px;top:96px;bottom:191px;overflow:hidden;mask-image:linear-gradient(transparent,#000 9px,#000 calc(100% - 12px),transparent)} +.transcript>.inner{padding:8px 6px 22px;will-change:transform} +.assistant .umsg{margin:0 0 24px}.assistant .umsg div{max-width:700px;font-size:23px;line-height:1.48;padding:16px 20px;background:#f2f3f5} +.assistant .sum{font-size:18px;margin:15px 0 18px;gap:9px}.assistant .sum .i{font-size:21px} +.assistant .step{gap:15px;padding-bottom:19px}.assistant .step .st{font-size:21px;line-height:1.42}.assistant .step .st small{font-size:18px;line-height:1.4;margin-top:4px}.assistant .step .si,.assistant .step .si svg{width:25px;height:25px} +.assistant .step .si{margin-top:2px}.assistant .step.run .si{color:#6c7f92}.assistant .step.run .si:after{border-color:#e7ebef;border-top-color:#71869a} +.assistant .step:before{left:12px;top:31px;bottom:3px;background:#e6e7e8} +.assistant .ans{font-size:23px;line-height:1.53;margin-top:12px}.assistant .ans p{margin:0 0 13px}.assistant .ans h3{font-size:24px;margin:22px 0 7px;font-weight:600;line-height:1.35}.assistant .ans ul{padding-left:22px;margin:8px 0 16px}.assistant .ans li{margin:6px 0} +.assistant .cite{font-size:16px;padding:3px 10px;margin:7px 6px 0 0;color:#5f6670}.assistant .cite svg{width:16px;height:16px} +.assistant .inbox{left:24px;right:24px;width:auto;margin-left:0;bottom:23px;height:140px;padding:19px 20px;border-radius:13px;box-shadow:none;z-index:5} +.assistant .inbox .ph{font-size:23px;line-height:1.5;min-height:65px;white-space:normal;color:#9b9b9b;padding-right:3px}.assistant .inbox .ph.typing{color:var(--t1)} +.assistant .inbox .bar{left:20px;right:20px;bottom:12px;gap:14px;font-size:18px;color:#818181}.assistant .inbox .bar>.i{font-size:23px;width:23px;height:23px} +.assistant .inbox .send{gap:15px}.assistant .inbox .send i{width:37px;height:37px;border-radius:50%;background:#f1f2f2;color:#999;font-style:normal}.assistant .inbox .send i.on{background:var(--g);color:#fff}.assistant .inbox .send .i{width:24px;height:24px}.assistant .inbox .model{font-size:17px;color:#8c8c8c}.assistant .caret{background:#666;height:1em} +.access-trigger{display:inline-flex;align-items:center;gap:6px}.access-trigger .i{font-size:20px}.context-chip{position:absolute;bottom:173px;left:29px;display:flex;align-items:center;gap:8px;color:#737373;font-size:15px}.context-chip .i{font-size:17px} +.welcome{position:absolute;top:231px;left:48px;right:48px;text-align:center}.welcome>.i{width:47px;height:47px;color:var(--g)}.welcome h2{font-size:34px;font-weight:600;margin:23px 0 14px}.welcome p{font-size:23px;line-height:1.5;color:#888;margin:auto;max-width:630px} +.pointer{position:absolute;z-index:12;width:29px;height:33px;filter:drop-shadow(0 2px 2px #0003);pointer-events:none} +.ripple{position:absolute;z-index:11;border:2px solid var(--gold);background:#b8863b0b;border-radius:50%;width:55px;height:55px;margin:-27.5px;pointer-events:none} +.approval{position:absolute;bottom:190px;left:24px;right:24px;background:white;border:1px solid #dededc;border-radius:13px;box-shadow:0 -18px 35px 18px #ffffff;z-index:4;padding:22px 24px 20px} +.approval h3{margin:0 0 17px;font-size:24px;font-weight:600;line-height:1.38}.approval h3 .i{color:var(--gold);margin-right:8px;vertical-align:-3px}.approval dl{display:grid;grid-template-columns:180px 1fr;gap:11px 16px;margin:0 0 22px;font-size:20px;line-height:1.3}.approval dt{color:#888}.approval dd{margin:0;color:#333;min-width:0;overflow-wrap:break-word} +.approval footer{display:flex;gap:12px;align-items:center;border-top:1px solid #eee;padding-top:17px}.approval footer small{font-size:15px;color:#999;margin-right:auto}.btn{border:1px solid #ddd;padding:10px 18px;border-radius:7px;background:white;font:500 19px/1.25 var(--sans);color:#555;display:inline-flex;align-items:center;gap:8px}.btn.primary{background:var(--g);border-color:var(--g);color:white}.btn .i{font-size:19px}.btn .enter{margin-left:5px;opacity:.6} +.native-card{border:1px solid #e5e5e5;border-radius:10px;padding:20px 22px;margin:15px 0;background:#fff}.native-card .card-title{display:flex;align-items:center;gap:12px;font-size:23px;font-weight:600;line-height:1.35}.native-card .card-title .i{color:#737f8c;flex-shrink:0}.native-card .card-meta{font-size:18px;color:#888;margin-top:10px;line-height:1.5}.native-card .tags{display:flex;gap:7px;margin-top:16px;flex-wrap:wrap}.native-card .tags span{font-size:16px;line-height:1.4;padding:5px 9px;border:1px solid #e9e9e9;border-radius:5px;color:#777;background:#fcfcfc} +.resource-inline{margin:8px 0 8px 39px;padding:12px 15px;background:#f8f9fa;border-radius:7px;border:1px solid #eceef0;font-size:18px;color:#576573;line-height:1.5} +.resource-inline b{font-weight:550;color:#343f48} +.child-task{padding:12px 0 14px;position:relative;display:grid;grid-template-columns:30px 1fr;gap:12px;font-size:21px}.child-task>.i{width:25px;height:25px;margin-top:2px;color:var(--agent)}.child-task .child-head{display:flex;align-items:center;gap:10px}.child-task .name{font-weight:550}.child-task .state{font-size:17px;color:#969696;margin-left:auto}.child-task .activity{font-size:18px;color:#777;margin-top:6px;line-height:1.4}.child-task .track{height:2px;background:#f0f0f0;margin-top:12px;max-width:370px;overflow:hidden}.child-task .track i{display:block;height:2px;background:var(--agent);transform-origin:left}.child-task.done .state{color:var(--agent)}.child-task .quote{font-size:18px;line-height:1.45;color:#626b74;border-left:2px solid #e4e7e9;padding-left:14px;margin-top:12px} +.task-compact{display:flex;align-items:center;gap:10px;font-size:18px;color:#777;margin:8px 0}.task-compact .i{font-size:21px}.task-compact span{margin-left:auto;color:#91989d;font-size:16px} +.access-menu{position:absolute;z-index:8;left:55px;bottom:91px;background:white;border:1px solid #e4e4e4;box-shadow:0 14px 44px #101f3826;border-radius:12px;width:490px;padding:13px}.access-menu .label{font-size:16px;color:#999;padding:5px 12px 12px}.access-option{display:flex;gap:15px;padding:13px;border-radius:8px}.access-option.selected{background:#f4f5f4}.access-option .i{font-size:23px;color:#777;margin-top:4px}.access-option b{font-size:20px;font-weight:550;line-height:1.4}.access-option small{display:block;font-size:17px;line-height:1.4;color:#8c8c8c;margin-top:3px}.access-option .checkmark{margin-left:auto;color:var(--g)} +.schedule-detail{display:grid;grid-template-columns:170px 1fr;gap:14px 12px;font-size:20px;line-height:1.45;margin:18px 0 20px}.schedule-detail dt{color:#888}.schedule-detail dd{margin:0}.day-row{display:flex;gap:7px;margin:13px 0 18px}.day-row span{display:flex;width:36px;height:33px;border-radius:5px;align-items:center;justify-content:center;font-size:16px;background:#f4f5f4;color:#adb0ad}.day-row span.on{background:#ecf8f1;color:#418060;border:1px solid #d5eddf}.inline-actions{display:flex;gap:12px;align-items:center;margin-top:17px}.running-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#8195a8;margin-right:7px}.work-chip{display:inline-flex;align-items:center;gap:9px;font-size:17px;color:#747d85;background:#f5f6f7;border:1px solid #eceef0;border-radius:18px;padding:7px 13px;margin:7px 0 17px}.work-chip .i{font-size:18px} +.shell{font:17px/1.6 var(--mono);color:#616970;border:1px solid #e5e7e9;border-radius:8px;margin:10px 0 14px;padding:13px 16px;background:#f9fafb}.shell .command{color:#384652;margin-bottom:8px}.shell .meta{font:15px/1.6 var(--sans);color:#999}.shell .out{white-space:pre-wrap;margin-top:12px;font-size:16px;color:#68727b} +.file-result{display:flex;align-items:center;gap:15px;padding:16px 18px;background:#fafafa;border:1px solid #e7e7e7;border-radius:10px;margin:15px 0}.file-result>.i{font-size:32px;color:#6681a3}.file-result b{font-weight:550;font-size:21px}.file-result small{font-size:17px;color:#999;display:block;margin-top:5px}.file-result .chev{font-size:20px;margin-left:auto;color:#999} +.preview-paper{margin-top:13px;border:1px solid #e4e6e9;border-radius:9px;padding:21px 25px;background:#fff;box-shadow:0 10px 20px -15px #152a4a36;font-size:19px;line-height:1.6;color:#4c5660}.preview-paper h3{font:600 24px var(--sans);margin:0 0 12px;color:#222}.preview-paper p{margin:6px 0}.preview-paper b{font-weight:550} +.opening-app{position:absolute;left:120px;top:100px;width:1680px;height:880px;background:white;border:1px solid #e1e1e1;border-radius:16px;box-shadow:0 36px 75px -32px #101f3847;overflow:hidden}.opening-app .side{height:100%;padding-top:22px}.opening-app .side .lg{padding:0 3px;gap:11px}.opening-app .side .lg img{width:148px;height:auto}.opening-app .side .lg span{gap:8px}.opening-app .side .lg .entry{width:30px;height:30px;padding:3px;border-radius:6px;color:var(--g);display:flex}.opening-app .side .lg .entry .i{width:24px;height:24px}.opening-app .side .me{display:none}.opening-app .main{position:absolute;left:250px;top:0;bottom:0;right:0;padding:40px}.opening-app h2{font-size:30px;margin:0 0 8px;font-weight:600}.opening-app .desc{font-size:18px;color:#999}.opening-app .page-tabs{display:flex;gap:30px;font-size:18px;color:#888;margin-top:32px;padding-bottom:17px;border-bottom:1px solid #e9e9e9}.opening-app .page-tabs span:first-child{color:var(--g)}.kb-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:25px}.kb-grid .native-card{min-height:170px;margin:0;padding:22px}.kb-grid .card-title{font-size:20px}.kb-grid .card-meta{font-size:16px}.entry-ring{position:absolute;left:175px;top:22px;width:34px;height:34px;border:2px solid var(--gold);border-radius:8px} +#opening,#closing{pointer-events:none;color:#f6f1e8}.brand-lockup{position:absolute;left:0;right:0;top:305px;text-align:center}.brand-lockup img{width:780px;display:block;margin:0 auto 40px}.brand-lockup h1{font:500 58px/1.2 var(--serif);letter-spacing:-.02em;margin:26px 0;color:#f6f1e8}.brand-lockup .eyebrow{font-size:18px;color:#d9a94f}.brand-lockup p{font:23px var(--mono);color:#d3dae5;margin:42px 0 28px}#closing .brand-lockup{top:310px}#closing .brand-lockup img{width:700px}#closing .brand-lockup h1{font-size:53px} +#progress{position:absolute;left:0;right:0;bottom:0;height:3px;background:#b8863b18}#progress span{display:block;height:3px;transform-origin:left;background:#b8863b66} +#controls{position:fixed;left:14px;bottom:7px;display:flex;gap:12px;align-items:center;padding:7px 12px;background:white;border:1px solid #ddd;border-radius:8px;font:13px Inter}#controls input{width:310px}#controls button{font:inherit} +.source-popover{position:absolute;left:26px;right:26px;bottom:254px;background:#fff;border:1px solid #e2e2e2;border-radius:12px;padding:22px 25px;box-shadow:0 18px 48px -12px #101f3840;z-index:7;font-size:22px;line-height:1.5;color:#555}.source-popover h3{display:flex;gap:10px;align-items:center;margin:0 0 8px;font-size:23px;color:#333;font-weight:600}.source-popover h3 .i{color:var(--g)}.source-popover small{display:block;font-size:16px;color:#999;margin-bottom:13px}.source-popover mark{background:#f7edd5;color:inherit;padding:1px 0} +/* Native entry dialogs and the taller Assistant preserve the accepted film. */ +.assistant{top:72px;height:936px} +.approval{left:30px;right:30px;padding:18px 20px 16px;border-radius:10px;border-color:#e5e7e6;box-shadow:0 -12px 26px 10px #ffffff} +.approval-label{display:flex;align-items:center;gap:7px;font-size:15px;color:#7b7d7b;margin-bottom:12px}.approval-label .i{width:17px;height:17px;color:#9a7a43} +.approval h3{font-size:21px;line-height:1.4;margin-bottom:17px;font-weight:550}.approval dl{grid-template-columns:150px 1fr;gap:9px 16px;font-size:18px;line-height:1.4;margin-bottom:17px}.approval dt{color:#8b8d8b}.approval dd{color:#444} +.approval footer{padding-top:13px;gap:9px}.approval footer small{font-size:14px}.approval .btn{font-size:16px;padding:8px 13px;border-radius:6px;font-weight:500;line-height:1.2}.approval .primary{background:#09ad58;border-color:#09ad58} +.visual-flow{display:flex;align-items:center;gap:17px;margin-top:29px}.visual-flow>span{display:flex;align-items:center;gap:9px;font-size:17px;color:#596e85;white-space:nowrap}.visual-flow .i{width:28px;height:28px;color:#a78955}.visual-flow b{font-weight:450}.visual-flow>i{font-size:18px;color:#b5b9be;font-style:normal} +.creation-page{position:absolute;left:120px;top:72px;width:1680px;height:936px;border:1px solid #e4e5e5;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 36px 75px -32px #101f3847;color:var(--t1)} +.compact-nav{position:absolute;left:0;top:0;bottom:0;width:66px;border-right:1px solid #e9e9e9;background:#fafafa;display:flex;align-items:center;flex-direction:column;padding-top:22px;gap:17px}.compact-nav>img{display:none}.compact-nav>span{display:flex;align-items:center;justify-content:center;width:38px;height:35px;border-radius:7px;color:#505453}.compact-nav .i{width:22px;height:22px}.compact-nav>span.active{background:#eef7f1;color:var(--g)} +.creation-main{padding:44px 48px;position:absolute;left:66px;right:0;top:0;bottom:0}.creation-page-heading{display:flex;align-items:center;justify-content:space-between}.creation-page-heading h2{margin:0;font-size:32px;display:flex;gap:12px;align-items:center;font-weight:600}.creation-page-heading .i{width:29px;height:29px}.creation-main>p{font-size:20px;color:#999;margin:12px 0 36px}.entry-action{display:flex;align-items:center;gap:9px;font-size:18px;padding:9px 12px;border-radius:7px}.entry-action .i{width:21px;height:21px;color:var(--g)}.creation-tabs{display:flex;gap:30px;padding:0 0 18px;border-bottom:1px solid #eee;color:#414541;font-size:18px}.creation-tabs span{color:#999}.creation-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:20px}.creation-grid .native-card{min-height:228px}.new-automation-card{width:470px;height:180px;border:1px dashed #ddd;border-radius:12px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;font-size:20px;color:#6e736e}.new-automation-card>.i{width:28px;height:28px}.new-automation-card b{font-weight:500}.new-automation-card span{font-size:16px;color:#a1a4a1} +.modal-dim{position:absolute;inset:0;background:#0004;opacity:0}.create-dialog{position:absolute;left:50%;top:50%;width:660px;border-radius:13px;border:1px solid #e4e4e4;background:white;overflow:hidden;box-shadow:0 24px 80px #0002;opacity:0;transform:translate(-50%,-50%)} +.create-dialog header{padding:26px 30px 0;display:flex;align-items:center;gap:10px;font-size:23px}.create-dialog header b{font-weight:550}.create-dialog header>.i:first-child{color:var(--g);width:24px;height:24px}.create-dialog header>.i:last-child{margin-left:auto;color:#999;width:21px;height:21px} +.dialog-body{padding:14px 30px 28px}.dialog-body p{font-size:18px;line-height:1.5;color:#858985;margin:0 0 24px}.dialog-body label{display:block;font-size:18px;margin-bottom:11px;color:#555}.dialog-textarea{min-height:150px;padding:14px 16px;border:1px solid #ddd;border-radius:8px;font-size:21px;line-height:1.52;color:#aaa}.dialog-textarea.filled{color:#303630;border-color:#9bc9ac}.dialog-textarea .caret{display:inline-block;width:1px;height:1em;background:#555;vertical-align:-2px;margin-left:2px} +.create-dialog footer{display:flex;justify-content:flex-end;gap:12px;padding:18px 30px;border-top:1px solid #eee}.create-dialog .btn{font-size:17px;padding:10px 14px;line-height:1.2}.create-dialog .btn.primary{background:#07b75b;border-color:#07b75b}.create-dialog .disabled{opacity:.5} +#createU div,#automateU div{font-size:20px;line-height:1.5} +#opening .brand-lockup{top:157px}#opening .brand-lockup img{width:650px;margin-bottom:26px}#opening .brand-lockup h1{font-size:52px;margin:25px 0 56px}.cover-capabilities{display:grid;grid-template-columns:repeat(4,1fr);gap:0;width:1480px;margin:auto;text-align:left;border-top:1px solid #fff2;padding-top:32px}.cover-capabilities>div{padding:0 32px;min-height:150px;border-right:1px solid #fff2;display:flex;flex-direction:column}.cover-capabilities>div:last-child{border:0}.cover-capabilities>div>span{font:16px var(--mono);color:#d9a94f;margin-bottom:17px}.cover-capabilities b{font:500 28px/1.2 var(--sans);min-height:68px;color:#f2eee7}.cover-capabilities small{font-size:17px;color:#a7b2c4;margin-top:17px} +#createEditorial,#automateEditorial{z-index:2}#createPanel,#automatePanel{z-index:3}.handoff-cover{position:absolute;left:0;top:0;bottom:0;width:940px;background:linear-gradient(180deg,#fdfcfa 0%,#f5f3ee 100%);z-index:1}.creation-page{z-index:0}#s-create .chapter-foot,#s-automate .chapter-foot{z-index:2} +/* The approved write updates the resource in its original card list. */ +.rename-list{position:absolute;left:120px;top:566px;width:700px;height:360px;border:1px solid #dfe3e1;border-radius:12px;background:#fff;box-shadow:0 18px 45px -25px #101f383b;overflow:hidden;color:#414c45;visibility:hidden;transform-origin:center} +.rename-list>header{height:55px;display:flex;align-items:center;gap:9px;padding:0 22px;border-bottom:1px solid #eceeed;font-size:21px;font-weight:550}.rename-list>header>.i{width:24px;height:24px;color:#7a8c80}.rename-list>header>span{display:flex;align-items:center;gap:6px;margin-left:auto;font-size:14px;color:#8b998e;font-weight:400}.rename-list>header>span .i{width:16px;height:16px} +.rename-tabs{display:flex;align-items:center;gap:23px;height:47px;padding:0 22px;font-size:14px;color:#949c96}.rename-tabs b{font-weight:500;color:#4f6a58}.rename-tabs>.i{margin-left:auto;width:17px;height:17px}.rename-cards{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:0 20px}.rename-cards>div{height:195px;border:1px solid #e1e5e2;border-radius:9px;padding:17px 18px;background:#fff}.kb-card-icon{display:flex;justify-content:space-between;align-items:center;color:#86968c;margin-bottom:13px}.kb-card-icon>.i{width:25px;height:25px}.kb-card-icon>span{font-size:20px;color:#9aa49e;line-height:16px}.rename-name{position:relative;height:25px;white-space:nowrap}.rename-name>b{position:absolute;left:0;top:0;font-size:20px;font-weight:550;line-height:1.2}.rename-secondary>b{font-size:20px;font-weight:550;line-height:1.2}.rename-cards p{font-size:16px;line-height:1.5;color:#929a94;margin:10px 0 15px}.rename-cards footer{display:flex;align-items:center;gap:5px;font-size:12px;color:#97a098}.rename-cards footer>.i{width:13px;height:13px}.rename-cards footer>span{margin-left:auto;border:1px solid #e8ece8;border-radius:4px;padding:2px 6px;font-size:11px}.rename-confirm{display:flex;align-items:center;gap:7px;font-size:14px;color:#698675;padding:14px 23px}.rename-confirm .i{width:16px;height:16px} + +/* Let result and approval cards keep a readable measure inside the sidebar. */ +.assistant .approval{left:auto;right:30px;width:680px;max-width:calc(100% - 60px)} +.assistant .native-card,.assistant .shell,.assistant .file-result,.assistant .preview-paper{max-width:640px} + +/* Captions sit in the reserved safe area, outside every product window. */ +#subtitle{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);width:max-content;max-width:1740px;background:#142235e8;color:#fff;font:500 25px/1.25 Inter,sans-serif;padding:4px 16px;border-radius:5px;z-index:30;text-align:center;white-space:nowrap;letter-spacing:.005em;box-shadow:0 2px 6px #13213710} diff --git a/misc/release-v0.9.0-video/release-film/film.js b/misc/release-v0.9.0-video/release-film/film.js new file mode 100644 index 00000000000..5754ed8cb83 --- /dev/null +++ b/misc/release-v0.9.0-video/release-film/film.js @@ -0,0 +1,358 @@ +import {$,cl,lin,eo,eio,P,PI,mix,show,stream,setHTML,IC,I} from './foundation.js'; +import {productIcons} from './icons.js'; +import {captions} from './narration.js'; +export {captions}; +import {extraScenes,extraInputs,mountExtraScenes,renderExtraScene} from './knowledge-scenes.js'; + +// The original intro-film typography, HTML UI, timed reveals and camera language +// are reused here. All scenes below are newly authored for the v0.9.0 baseline. +Object.assign(IC,{ + assistant:`${productIcons.assistant}`, + clock:'', + automation:`${productIcons.automation}`, + shield:'', + plus:'', close:'', + up:'', + help:'', + pin:'', + chip:'', + plug:'', + play:'', eye:'', +}); + +export const duration=165; +export const scenes=[ + {a:0,b:22,key:'intro',label:'01 — WEKNORA ASSISTANT',title:'Ask about WeKnora.
Work with your page.',lede:'Get product answers, then act on the knowledge and tools already in your workspace.'}, + {a:22,b:47,key:'create',label:'02 — CREATE AN AGENT',title:'Your request.
A configured agent.',lede:'Start from the Agents page. Describe the job; the Assistant connects the resources.'}, + {a:47,b:65,key:'collaborate',label:'03 — MULTI-AGENT COLLABORATION',title:'One request.
A team at work.',lede:'Split the task, follow each agent and bring the findings together.'}, + {a:65,b:87,key:'automate',label:'04 — AUTOMATIONS',title:'A task today.
A routine tomorrow.',lede:'Start with a request and a time. Let the Assistant build the recurring task.'}, + {a:87,b:101,key:'approve',label:'05 — EXECUTION PERMISSIONS',title:'Review the change.
Then let it run.',lede:'Choose how the assistant can act. Every operation stays within your own access.'}, + {a:101,b:113,key:'background',label:'06 — BACKGROUND TASKS',title:'Keep the
work moving.',lede:'Run longer commands in the sandbox. Follow progress and open the finished file.'}, + ...extraScenes, + {a:161,b:165,key:'close',title:'WeKnora v0.9.0'}, +]; +export const interactions=[ + {scene:'intro',start:5.7,end:7.8,send:8.15,prompt:"What's new in WeKnora v0.9.0? What can the Assistant help me do?"}, + {scene:'create',start:1.7,end:4.4,send:4.75,prompt:'Create a reading-club coordinator using my existing knowledge, model, MCP tools and skills'}, + {scene:'collaborate',start:.7,end:3.4,send:3.75,prompt:'Prepare the reading-club briefing. Split the agenda, sign-up rules and preparation checks across agents.'}, + {scene:'automate',start:1.7,end:4.4,send:4.75,prompt:'Every weekday at 9 AM, check the reading-club plan and send me a preparation brief'}, + {scene:'approve',start:1.9,end:4.5,send:4.85,prompt:'Rename Weekend reading club to Reading club workspace. Ask me before changing it.'}, + {scene:'background',start:.65,end:2.8,send:3.15,prompt:'Build a Markdown run sheet from the reading-club documents.'}, + ...extraInputs, +]; +// Character events are the single source of truth for both the picture and audio. +// Small pauses at word boundaries retain the rhythm of typing without a uniform buzz. +export const keyEvents=[]; +for(const input of interactions){ + const weights=[...input.prompt].map((c,k)=>(c===' '?1.45:/[,.?]/.test(c)?2.1:.82+(k*7%11)*.035)); + const total=weights.reduce((a,b)=>a+b,0);let sum=0; + input.chars=weights.map((w,k)=>{sum+=w;return {at:Math.round((input.start+(input.end-input.start)*sum/total)*60)/60,char:input.prompt[k]}}); + const offset=scenes.find(s=>s.key===input.scene).a; + for(const c of input.chars)keyEvents.push({t:+(offset+c.at).toFixed(6),char:c.char,scene:input.scene}); +} + + +const esc=s=>String(s).replaceAll('&','&').replaceAll('<','<').replaceAll('>','>'); +const cite=title=>`${I('book')}${title}`; +const user=(key,prompt)=>`
${prompt}
`; +const step=(key,n,ic,title,desc='')=>`
${I(ic)}
${title}${desc?`${desc}`:''}
`; +const cursorSVG=''; +const welcome=key=>`
${I('assistant')}

How can I help?

Ask about WeKnora, or get help with the page you are on.

`; +const composer=key=>`
${I('plus')}${I('shield')}Ask first ${I('chevd')}deepseek-v4-flash${I('up')}
`; +const approval=(key,title,fields)=>`
${I('shield')}Approval required

${title}

${fields.map(([k,v])=>`
${k}
${v}
`).join('')}
Waiting for your decisionRejectApprove & run
`; +const nativeCard=(ic,title,meta,tags=[])=>`
${I(ic)}${title}
${meta}
${tags.length?`
${tags.map(x=>`${x}`).join('')}
`:''}
`; +const content={}; + +const VERSION_ANSWER=`

Here’s what’s new in WeKnora v0.9.0.

WeKnora Assistant

Ask about releases, features, setup and troubleshooting. The Assistant can also use your current page to create agents, manage knowledge and configure tasks.

Multi-agent collaboration

Delegate work to named agents, follow their progress and combine their results in one conversation.

Automations

Schedule work in plain language or set it up manually. The Assistant runs the task as you and notifies you about results or approvals.

Execution permissions

Choose Read only, Ask first or Auto. Resource permissions still apply; sensitive operations can require confirmation.

Background tasks

Keep longer sandbox commands running and return to their results when they finish.

${cite('v0.9.0 release notes')}${cite('WeKnora Assistant')}

`; +content.intro=user('intro',interactions[0].prompt)+`
${I('bulb')}I’ll check the release notes and Assistant guide.
`+ +step('intro',0,'search','Search product docs','“v0.9.0 release notes and WeKnora Assistant”')+ +step('intro',1,'fileq','Read product doc','v0.9.0 release notes · Features and upgrade notes')+ +step('intro',2,'fileq','Read product doc','WeKnora Assistant · Capabilities and user identity')+ +step('intro',3,'check','Documentation checked')+`
`; + +const RESOURCES=[ + ['search','Find knowledge bases','Weekend reading club · 3 documents'], + ['chip','List available models','deepseek-v4-flash · Chat model'], + ['plug','List MCP services','Event workspace · read_event'], + ['skill','List installed skills','brief-writer · Briefing structure and citations'], +]; +// The expanded requests match assistant.prompts in frontend/src/locales/en-US.ts. +const assembled={ + create:`Create an agent for this request: ${interactions[1].prompt}. Check available models, knowledge bases, MCP services and skills; choose suitable resources. Ask only for necessary missing information, follow the current access policy, and open its editor after creation.`, + automate:`Create a scheduled task: ${interactions[3].prompt}. Use timezone Asia/Shanghai unless specified otherwise. Write self-contained instructions, validate the schedule and show upcoming run times. Follow current access rules without increasing execution permissions, then open the created task.`, +}; +content.create=user('create',assembled.create)+`
${I('bulb')}I’ll check the existing resources before configuring it.
`+ +RESOURCES.map(([ic,title,desc],n)=>step('create',n,ic,title,`${desc}`)).join('')+step('create',4,'shield','Create agent','Configuration approved')+`
`; +const CREATE_ANSWER=`

Created Reading Club Coordinator.

It can use the event documents, read the event page through MCP and follow the installed brief-writing skill.

${nativeCard('agent','Reading Club Coordinator','Prepare sourced briefings, check arrangements and suggest next steps.',['Weekend reading club','deepseek-v4-flash','Event workspace','brief-writer'])}

You can open the agent to review or adjust its configuration.

`; + +const agents=[ + {name:'Atlas',role:'Agenda',icon:'book',color:'#6d83a0',a:4.6,b:8.0,c:9.0,activity:'Reading the event guide',done:'Agenda checked',quote:'Nov 7, 14:00–16:00. Four reader talks, discussion and a shared reading list.'}, + {name:'Iris',role:'Sign-up',icon:'search',color:'#a88952',a:5.0,b:9.0,c:10.0,activity:'Checking sign-up rules',done:'Participation rules checked',quote:'20 free places. Register by Nov 5, 18:00. Bring a book and a short recommendation.'}, + {name:'Nova',role:'Preparation',icon:'tool',color:'#8c799e',a:5.4,b:10.0,c:10.8,activity:'Reviewing the preparation plan',done:'Open preparation tasks checked',quote:'Check registration on Nov 5, then the room, timer and reading-list template on Nov 6.'}, +]; +const BRIEF=`

Weekend reading club — briefing

Saturday, Nov 7 · 14:00–16:00 · Online

Bring a book and a two-minute recommendation. Registration closes Nov 5 at 18:00; there are 20 free places.

Before the event

Nov 5: confirm registrations and remaining places.
Nov 6: check the meeting room, timer and reading-list template.

The event guide and sign-up notes are ready. These two preparation checks are next.

${cite('Event guide')}${cite('Sign-up notes')}${cite('Preparation plan')}

`; +content.collaborate=user('collaborate',interactions[2].prompt)+`
${I('bulb')}I’ll split the checks and combine the findings.
`+agents.map((a,n)=>`
${I(a.icon)}
${a.name} · ${a.role}
${a.quote}
`).join('')+`
`; + +const AUTO_CARD=`
${I('automation')}Reading club briefing
Every weekday at 09:00 · Asia/Shanghai
${['M','T','W','T','F','S','S'].map((v,n)=>`${v}`).join('')}
New conversation · Ask first
Notify on completion and when approval is needed
${I('play')}Run now${I('edit')} Edit in Automations
`; +content.automate=user('automate',assembled.automate)+`
${I('bulb')}I’ll use your event plan and local time zone.
`+step('automate',0,'search','Find operations','Create automation')+step('automate',1,'kb','Check knowledge base','Weekend reading club · Preparation plan')+step('automate',2,'shield','Create automation','Schedule reviewed and approved')+`

Created Reading club briefing.

${AUTO_CARD}
${I('automation')}Reading club briefing · Running now
Checking the preparation plan
`; +const AUTOMATION_RESULT=`

Your preparation brief

The event guide and sign-up notes are ready.

  • Nov 5: check registrations and remaining places.
  • Nov 6: test the room, timer and reading-list template.

The briefing will run again on the next weekday at 09:00.

${cite('Preparation plan')}`; + +content.approve=user('approve',interactions[4].prompt)+`
${I('bulb')}I found the knowledge base. Here is the proposed change.
`+step('approve',0,'kb','Find knowledge base','Weekend reading club · 3 documents')+step('approve',1,'shield','Update knowledge base','Name change · Awaiting review')+step('approve',2,'check','Update completed')+`
`; +const APPROVED_RESULT=`

Renamed the knowledge base to Reading club workspace.

${nativeCard('kb','Reading club workspace','Event guide, sign-up notes and the preparation plan.',['3 documents'])}`; + +content.background=user('background',interactions[5].prompt)+`
${I('bulb')}I’ll read the documents and build the run sheet.
`+step('background',0,'skill','Read Skill','brief-writer · Markdown run sheet')+step('background',1,'term','Run sandbox command','Build the document in the background')+`
1 background task · Building run sheet
$ python build_run_sheet.py
/workspace · Running in background
${I('file')}
reading-club-run-sheet.mdMarkdown · Open preview
${I('chev','i chev')}

Reading club — run sheet

Nov 7 · Online · 14:00–16:00

14:00 — Welcome and discussion rules
14:10 — Four reader talks
14:50 — Group discussion
15:30 — Build the shared reading list

`; + +const extras={ + create:approval('create','Create “Reading Club Coordinator”',[ + ['Knowledge base','Weekend reading club'],['Model','deepseek-v4-flash'],['MCP services','Event workspace'],['Skills','brief-writer']]), + automate:approval('automate','Create “Reading club briefing”',[ + ['Schedule','Weekdays at 09:00'],['Time zone','Asia/Shanghai'],['Conversation','New conversation · Ask first'],['Notifications','Completion and approval requests']]), + approve:approval('approve','Rename knowledge base',[ + ['From','Weekend reading club'],['To','Reading club workspace']])+`
Execution permissions
${[['eye','Read only','Read and analyze without changing data.'],['shield','Ask first','Ask before operations that change data.'],['edit','Auto','Allow ordinary changes; sensitive actions may ask.']].map(([i,n,d],k)=>`
${I(i)}
${n}${d}
${k===1?I('check','i checkmark'):''}
`).join('')}
`, +}; +const CONTEXT={intro:'',create:'Agents',collaborate:'Weekend reading club',automate:'Automations',approve:'Weekend reading club',background:'Reading club workspace'}; +const productive=scenes.filter(s=>s.key!=='close'&&!s.wide); +$('chapters').innerHTML=productive.map((s,n)=>`
${s.label}

${s.title}

${s.lede}

v0.9.0
${I('assistant')}WeKnora Assistant${I('help','i help')}${I('chat')}${I('hist')}${I('pin')}${I('close')}
${content[s.key]}
${s.key==='intro'?welcome(s.key):''}${CONTEXT[s.key]?`
${I('panel')}Current page · ${CONTEXT[s.key]}
`:''}${composer(s.key)}${extras[s.key]||''}
${cursorSVG}
`).join(''); + +// The same navigation proportions as the original film, with the new v0.9.0 entry. +const opening=document.createElement('div');opening.id='openingApp';opening.className='opening-app'; +opening.innerHTML=`
${I('assistant')}${I('panel')}
${[['chat','New Chat'],['kb','Knowledge Base'],['art','Artifacts'],['agent','Agents'],['automation','Automations'],['box','Toolbox'],['share','Shared Spaces']].map(([ic,n])=>``).join('')}
Conversations
No conversations yet

Knowledge Base

Your documents, organized for answers and actions.
AllDocumentsWikiFAQ
${nativeCard('kb','Weekend reading club','Event guide, sign-up and preparation.',['3 documents'])}${nativeCard('kb','Product guides','Release notes and setup guides.',['Documents'])}${nativeCard('kb','Team handbook','Shared ways of working.',['Wiki'])}
${cursorSVG}
`; +$('s-intro').insertBefore(opening,$('introPanel')); + +// Reproduce the actual page entry and AssistantCreateDialog, then hand the +// expanded request to the sidebar. The dialog itself remains product UI. +for(const key of ['create','automate']){ + const isAgent=key==='create',label=isAgent?'Agents':'Automations'; + const page=document.createElement('div');page.className='creation-page';page.id=key+'Page'; + page.innerHTML=`
${['panel','search','assistant','chat','kb','art','agent','automation','box'].map(ic=>`${I(ic)}`).join('')}

${I(isAgent?'agent':'automation')}${label}

${I(isAgent?'assistant':'plus')}${isAgent?'Create with assistant':'New automation'}

${isAgent?'Build agents for your knowledge and workflows.':'Let the WeKnora Assistant run scheduled tasks as you.'}

${isAgent?`
All My agentsShared spaces
${nativeCard('chat','Quick Answer','Find answers in your knowledge bases.',['Built-in'])}${nativeCard('agent','Smart Reasoning','Work through complex tasks with tools.',['Built-in'])}${nativeCard('book','Reading Assistant','Find books, compare ideas and build a reading list.',['My agent'])}
`:`
${I('plus')}New automationYou can also ask the WeKnora Assistant to create it
`}
${I('assistant')}${isAgent?'Describe your agent':'Create a task with the assistant'}${I('close')}

${isAgent?'Describe who it serves and what it should do. The assistant will choose resources and create it.':'Describe what to do and when to run it. The assistant will turn it into an automation.'}

Configure manually${I('assistant')}Continue with assistant
${cursorSVG}
`; + $('s-'+key).insertBefore(page,$(`${key}Panel`)); + const cover=document.createElement('div');cover.className='handoff-cover';cover.id=key+'HandoffCover'; + $('s-'+key).insertBefore(cover,$(`${key}Panel`)); +} +// Keep the actual resource visible while approval changes it. +const renameList=document.createElement('div');renameList.id='renameList';renameList.className='rename-list'; +renameList.innerHTML=`
${I('kb')}Knowledge Base
AllMy knowledge basesShared spaces${I('search')}
${I('kb')}···
Weekend reading clubReading club workspace

Event guide, sign-up notes
and preparation plans.

${I('file')}3 documentsDocument
${I('kb')}···
Product guides

Release notes and setup
guides for the team.

${I('file')}Documents
${I('check')}Knowledge base updated
`; +$('s-approve').appendChild(renameList); +mountExtraScenes({I,cursorSVG,interactions}); + +function reveal(el,s,a,d=.4){const p=P(s,a,d);el.style.display=p<=0?'none':'';show(el,p,10);} +function revealStep(key,n,s,a,done){const el=$(`${key}Step${n}`);reveal(el,s,a,.45);el.classList.toggle('run',s>=a&&sx.scene===key),sent=s>=i.send; + if(key==='create'||key==='automate'){ + const handoff=s>=4.95&&s<5.65; + setHTML($(`${key}In`),handoff?esc(i.prompt):'Ask a question or describe a task…'); + $(`${key}In`).className='ph'+(handoff?' typing':''); + $(`${key}Send`).className=handoff?'on':''; + setHTML($(`${key}Send`),s>=5.65&&ss+1e-7>=c.at).length;const value=i.prompt.slice(0,count); + const el=$(`${key}In`);el.className='ph'+(count?' typing':'');el.dataset.chars=count; + const caret=count&&!sent&&(s':''; + setHTML(el,value?esc(value)+caret:'Ask a question or describe a task…'); + $(`${key}Send`).className=count?'on':''; + setHTML($(`${key}Send`),sent&&s=at-.65&&s0&&q<1?.7*(1-q):0;rip.style.transform=`scale(${.35+1.1*eo(q)})`; +} +function dock(key,s,start,end){ + const el=$(`${key}Approval`),on=s>=start&&s${title}

${body}

${visuals[key]?`
${visuals[key].map(([ic,text])=>`${I(ic)}${text}`).join('→')}
`:''}${note&&!visuals[key]?`
${note}
`:''}${identity?`
${I('shield')}Acts as you, with your permissions.
`:''}`); +} + +function creationFlow(key,s){ + const i=interactions.find(x=>x.scene===key),page=$(`${key}Page`),modal=$(`${key}Dialog`),p=PI(s,4.85,.5),opening=P(s,1.15,.35),closing=P(s,4.75,.2); + page.style.opacity=1;page.style.visibility=s<5.35?'visible':'hidden'; + $(`${key}Dim`).style.opacity=opening*(1-closing); + modal.style.opacity=opening*(1-closing);modal.style.transform=`translate(-50%, -50%) scale(${1-.035*closing})`; + const count=s>=i.send?0:i.chars.filter(c=>s+1e-7>=c.at).length,el=$(`${key}DialogInput`); + el.dataset.chars=count;setHTML(el,count?esc(i.prompt.slice(0,count))+'':'Describe the task…');el.classList.toggle('filled',count>0); + $(`${key}Continue`).classList.toggle('disabled',count===0); + const panel=$(`${key}Panel`);panel.style.opacity=1;panel.style.visibility=p>0?'visible':'hidden';panel.dataset.entering=String(p<1);panel.style.transform=`translateX(${1000*(1-p)}px)`; + $(`${key}HandoffCover`).style.transform=`translateX(${-950*(1-p)}px)`; + $(`${key}Editorial`).style.opacity=P(s,5.2,.35);$('s-'+key).querySelector('.chapter-foot').style.opacity=P(s,5.2,.35); + pointer(key+'Entry',s<2?$(`${key}Entry`):$(`${key}Continue`),s,s<2?1.15:4.75,page); +} +// Reuse the original film's smooth transcript-following behavior. A direct seek +// resets the follow position; sequential export follows at a damped 9 Hz rate. +let current=0,previous=-1; +function scroll(key){ + const col=$(`${key}Transcript`),inner=$(`${key}Inner`),target=Math.max(0,inner.scrollHeight-col.clientHeight),dt=current-previous; + const y=dt>0&&dt<.1&&inner._y!=null?inner._y+(target-inner._y)*(1-Math.exp(-dt*9)):target; + inner._y=y;inner.style.transform=`translateY(${-y}px)`; +} + +function renderIntro(s){ + const transition=PI(s,4.6,.85),open=P(s,3.65,.8),brand=1-P(s,2.45,.5); + $('opening').style.opacity=brand;$('opening').style.display=brand>0?'block':'none'; + $('opening').firstElementChild.style.transform=`scale(${1+.025*lin(s,0,2.7)})`; + $('openingApp').style.opacity=1-transition;$('openingApp').style.transform=`translateX(${-35*transition}px)`; + $('introPanel').style.opacity=open;$('introPanel').style.transform=`translateX(${(1-open)*120}px)`; + $('introEditorial').style.opacity=transition;$('introEditorial').style.transform=`translateX(${-25*(1-transition)}px)`; + $('s-intro').querySelector('.chapter-foot').style.opacity=transition; + $('entryRing').style.opacity=P(s,2.8,.35)*(1-P(s,4.05,.3)); + pointer('entry',$('assistantEntry'),s,3.65,$('openingApp')); + $('introWelcome').style.display=s<8.15?'block':'none'; + reveal($('introU'),s,8.15);reveal($('introSum'),s,8.55); + [8.9,10.0,10.9,11.8].forEach((a,n)=>revealStep('intro',n,s,a,a+.8)); + stream($('introAns'),VERSION_ANSWER,s,12.15,105,false); + input('intro',s,20.6); + pointer('intro',$('introSend'),s,8.15); + if(s<8.9)explanation('intro','A new entry, right beside the logo.','Open the Assistant without leaving your current page.'); + else if(s<12.15)explanation('intro','Search first. Read the source.','The Assistant searches bundled product docs, then reads the release notes and the relevant guide.','PRODUCT DOCS → RELEASE NOTES → ASSISTANT GUIDE'); + else explanation('intro','The product, explained in context.','Get a sourced overview of v0.9.0—from Assistant and agent collaboration to automations, permissions and background tasks.','RELEASES · FEATURES · SETUP · TROUBLESHOOTING',true); + scroll('intro'); +} +function renderCreate(s){ + const entryTime=s;s-=1.7; + reveal($('createU'),s,3.95);reveal($('createSum'),s,4.3); + [4.7,5.8,6.9,8.0,15.4].forEach((a,n)=>revealStep('create',n,s,a,n===4?16:a+1)); + RESOURCES.forEach((_,n)=>{$(`resource${n}`).style.opacity=P(s,5.35+n*1.1,.35)}); + dock('create',s,10.1,15.4); + stream($('createAns'),CREATE_ANSWER,s,16.05,100,false); + input('create',entryTime,22.6); + pointer('create',$('createApprove'),s,15.05); + if(s<4.7)explanation('create','Describe it once. Carry the context.','The request arrives with resource checks and your current access rules. The Assistant takes it from here.'); + else if(s<10.1)explanation('create','Use resources you already have.','The Assistant checks available knowledge bases, models, MCP services and installed skills before putting them together.','KNOWLEDGE → MODEL → MCP → SKILL'); + else if(s<16.05)explanation('create','Review the assembled configuration.','See the selected resources before the agent is created. Ask first keeps the write operation pending until you approve.', '',true); + else explanation('create','A configured agent, ready to use.','The reading-club coordinator has its knowledge and tools attached. Open the agent whenever you want to refine it.'); + scroll('create'); + creationFlow('create',entryTime); +} +function renderCollaborate(s){ + reveal($('collaborateU'),s,3.75);reveal($('collaborateSum'),s,4.1); + const collapse=PI(s,10.95,.65);$('team').style.display='block';$('team').style.maxHeight='none';$('team').style.opacity=1-collapse; + agents.forEach((a,n)=>{ + reveal($(`agent${n}`),s,a.a);const done=s>=a.b,synced=s>=a.c; + $(`agent${n}`).classList.toggle('done',done); + $(`agent${n}State`).textContent=synced?'Synced to main chat':done?'Completed':'Running'; + $(`agent${n}Activity`).textContent=done?a.done:a.activity; + $(`agent${n}Progress`).style.transform=`scaleX(${lin(s,a.a+.3,a.b)})`; + $(`agent${n}Quote`).style.display=done?'block':'none'; + }); + const teamHeight=$('team').scrollHeight;$('team').style.maxHeight=teamHeight*(1-collapse)+'px';$('team').style.overflow='hidden'; + setHTML($('teamCompact'),agents.map(a=>`
${I(a.icon)}${a.name} · ${a.role}Completed · Synced ${I('check')}
`).join('')); + $('teamCompact').style.display=collapse>0?'block':'none';$('teamCompact').style.opacity=collapse; + stream($('collaborateAns'),BRIEF,s,11.55,92,false); + input('collaborate',s,16.8);pointer('collaborate',$('collaborateSend'),s,3.75); + if(s<5.4)explanation('collaborate','Split the work by responsibility.','Atlas checks the agenda. Iris checks sign-up rules. Nova reviews the preparation plan.'); + else if(s<11.55)explanation('collaborate','Watch each agent work.','Named tasks show what is running, what has finished and which findings have returned to the main conversation.','ATLAS · AGENDA IRIS · SIGN-UP NOVA · PREPARATION'); + else explanation('collaborate','An answer you can act on.','The combined briefing includes the event time, registration deadline and the next preparation tasks, with links to the source documents.'); + scroll('collaborate'); +} +function renderAutomate(s){ + const entryTime=s;s-=2; + reveal($('automateU'),s,3.65);reveal($('automateSum'),s,4.0); + [4.35,5.25,10.5].forEach((a,n)=>revealStep('automate',n,s,a,a+.7)); + dock('automate',s,6.3,10.5);reveal($('automationSaved'),s,10.65); + reveal($('automationRun'),s,13.0); + setHTML($('automationStatus'),s<14.5?'Checking the preparation plan':I('check')+'Completed · Result ready'); + stream($('automateAns'),AUTOMATION_RESULT,s,14.5,96,false); + input('automate',entryTime,20.0); + if(s<11.5)pointer('automate',$('automateApprove'),s,10.15); + else pointer('automate',$('runNow'),s,12.8); + if(s<6.3)explanation('automate','The request carries the essentials.','Your task, local time zone and access rules reach the Assistant together. It checks the plan before scheduling.'); + else if(s<10.65)explanation('automate','Make the schedule explicit.','Weekdays at 09:00, in Asia/Shanghai. Review the conversation mode, permissions and notifications before saving.'); + else if(s<14.5)explanation('automate','Save it. Try a run.','Run the task now to verify the result. You can edit the instruction and schedule later in Automations.'); + else explanation('automate','A useful brief, every morning.','Results and approval requests reach you through notifications. Each run keeps its conversation and history.','WEEKDAYS · 09:00 · ASIA/SHANGHAI',true); + scroll('automate'); + creationFlow('automate',entryTime); +} +function renderApprove(s){ + $('accessMenu').style.display=s>=.3&&s<1.75?'block':'none';show($('accessMenu'),P(s,.3,.35),14); + reveal($('approveU'),s,4.85);reveal($('approveSum'),s,5.2); + [5.5,6.15,10.0].forEach((a,n)=>revealStep('approve',n,s,a,n===1?9.6:a+.55)); + const status=$('approveStep1').querySelector('small');status.textContent=s<9.6?'Name change · Awaiting review':'Name change · Approved'; + dock('approve',s,6.25,9.95); + stream($('approveAns'),APPROVED_RESULT,s,10.6,100,false); + input('approve',s,12.8); + if(s<1.9)pointer('approve',$('accessOption1'),s,1.45); + else if(s<6.25)pointer('approve',$('approveSend'),s,4.85); + else pointer('approve',$('approveApprove'),s,9.6); + if(s<4.85)explanation('approve','Read only. Ask first. Auto.','Choose the execution level for the task. Auto can allow ordinary writes; sensitive operations can still require confirmation.'); + else if(s<9.95)explanation('approve','See exactly what will change.','The approval names the resource and shows the current and proposed values. The operation waits for your decision.','FROM: WEEKEND READING CLUB\nTO: READING CLUB WORKSPACE',true); + else explanation('approve','Confirm, execute, verify.','The timeline records the approval and completed operation. The updated knowledge base is available immediately.', '',true); + scroll('approve'); + const list=P(s,6.6,.65),change=P(s,10.15,.45),done=P(s,10.65,.35); + $('renameList').style.opacity=list;$('renameList').style.transform=`translateY(${28*(1-list)}px)`;$('renameList').style.visibility=list>0?'visible':'hidden'; + $('approveExplain').style.display=s<6.6?'':'none'; + $('kbOldName').style.opacity=1-change;$('kbOldName').style.transform=`translateY(${-14*change}px)`; + $('kbNewName').style.opacity=change;$('kbNewName').style.transform=`translateY(${14*(1-change)}px)`; + $('renameTarget').style.borderColor=s>=9.95&&s<11.65?'#bd9b62':'#e1e5e2'; + $('renameTarget').style.boxShadow=`0 0 0 ${2*P(s,9.95,.25)*(1-P(s,11.35,.6))}px #b8863b18`; + setHTML($('renameSaveState'),s<9.95?'Awaiting approval':s<10.65?'Updating name…':I('check')+'Saved'); + show($('renameConfirm'),done,9); +} + +function renderBackground(s){ + reveal($('backgroundU'),s,3.15);reveal($('backgroundSum'),s,3.5); + [3.85,4.6].forEach((a,n)=>revealStep('background',n,s,a,n===1?7.8:4.45)); + reveal($('backgroundStatus'),s,4.9);reveal($('shell'),s,5.2); + setHTML($('backgroundStatus'),s<7.8?'1 background task · Building run sheet':I('check')+'Background task completed'); + $('shellMeta').textContent=s<7.8?'/workspace · Running in background':'/workspace · Exit code 0 · Completed'; + const lines=[['Read event guide',5.55],['Read sign-up notes',5.95],['Read preparation plan',6.35],['Build Markdown run sheet',6.9],['Saved reading-club-run-sheet.md',7.8]]; + $('shellOut').textContent=lines.filter(([,a])=>s>=a).map(([l])=>'✓ '+l).join('\n'); + stream($('backgroundAns'),'

Done. The run sheet includes the event agenda and preparation checks.

',s,8.05,95,false); + reveal($('artifact'),s,8.7);reveal($('artifactPreview'),s,9.6); + input('background',s,9.3); + pointer('background',s<8.7?$('backgroundSend'):$('openArtifact'),s,s<8.7?3.15:9.45); + if(s<4.9)explanation('background','From documents to a deliverable.','Use a skill and the sandbox to turn knowledge into a file you can keep.'); + else if(s<8.05)explanation('background','Follow the task without blocking the chat.','Background status, command output and completion remain attached to the conversation.'); + else explanation('background','Open the finished file.','The run sheet gives the host a clear sequence for the event. Preview the artifact and return to the conversation.','READING-CLUB-RUN-SHEET.MD'); + scroll('background'); +} +const functions={intro:renderIntro,create:renderCreate,collaborate:renderCollaborate,automate:renderAutomate,approve:renderApprove,background:renderBackground}; + +export function seek(time){ + const t=cl(time,0,duration);current=t; + document.documentElement.style.setProperty('--rot',`${(t*250)%360}deg`); + if(t>=22)$('opening').style.display='none'; + for(const scene of scenes.filter(s=>s.key!=='close')){ + const root=$('s-'+scene.key),active=t>=scene.a&&tshow(el,P(s,.15+n*.08,.65),16)); + // Push toward the active task, then return before the chapter hand-off. + const push=PI(s,4.2,1.15)*(1-PI(s,scene.b-scene.a-2,1.15)); + $(`${scene.key}Panel`).style.transform=`scale(${1+.025*push})`; + } + functions[scene.key](s); + const phases={intro:[0,8.9,12.15],create:[0,6.4,11.8,17.75],collaborate:[0,5.4,11.55],automate:[0,8.3,12.65,16.5],approve:[0,4.85,9.95],background:[0,4.9,8.05]}[scene.key]; + const phase=phases.filter(a=>s>=a).at(-1),next=phases.find(a=>a>s)??1000; + const ep=Math.min(P(s,phase+.02,.42),1-lin(s,next-.14,next)); + show($(`${scene.key}Explain`),ep,10); + } + const ending=t>=161; $('closing').style.display=ending?'block':'none'; + if(ending){const p=P(t,161,.65);$('closing').style.opacity=p;$('closing').firstElementChild.style.transform=`translateY(${(1-p)*14}px) scale(${.98+.02*p})`;} + const caption=captions.find(([a,b])=>t>=a&&t{$('stage').style.transform=`scale(${Math.min(innerWidth/1920,innerHeight/1080)})`;};addEventListener('resize',resize);resize(); +$('time').oninput=()=>{play=false;seek(Number($('time').value))}; +$('play').onclick=()=>{play=!play;started=performance.now()/1000-current;}; +$('replay').onclick=()=>{play=true;started=performance.now()/1000;}; +function tick(){if(play){seek(Math.min(duration,performance.now()/1000-started));if(current>=duration)play=false}requestAnimationFrame(tick)} +seek(Number(qs.get('t')||0));requestAnimationFrame(tick); diff --git a/misc/release-v0.9.0-video/release-film/foundation.js b/misc/release-v0.9.0-video/release-film/foundation.js new file mode 100644 index 00000000000..c37f9f7b35a --- /dev/null +++ b/misc/release-v0.9.0-video/release-film/foundation.js @@ -0,0 +1,60 @@ +// Original WeKnora intro-film HTML utilities and icon paths. + +const $=id=>document.getElementById(id); +const cl=(x,a=0,b=1)=>Math.min(b,Math.max(a,x)); +const lin=(t,a,b)=>cl((t-a)/(b-a)); +const eo=x=>1-Math.pow(1-x,3); +const eio=x=>x<.5?4*x*x*x:1-Math.pow(-2*x+2,3)/2; +const P=(t,a,d=.6)=>eo(lin(t,a,a+d)); +const PI=(t,a,d=.6)=>eio(lin(t,a,a+d)); +const mix=(a,b,p)=>a+(b-a)*p; +function show(el,p,dy=18,dx=0){if(!el)return;el.style.opacity=p;el.style.transform=`translate(${(1-p)*dx}px,${(1-p)*dy}px)`;el.style.visibility=p<=0.001?'hidden':'visible'} +function typed(str,t,a,cps=32){return str.slice(0,Math.floor(cl((t-a)*cps,0,str.length)))} +const tplCache=new Map(); +function tpl(html){let r=tplCache.get(html);if(!r){r=document.createElement('div');r.innerHTML=html;tplCache.set(html,r)}return r} +function hlen(html){return tpl(html).textContent.length} +function trunc(html,n){const c=tpl(html).cloneNode(true);let left=n;(function w(node){for(const ch of [...node.childNodes]){if(left<=0){node.removeChild(ch);continue}if(ch.nodeType===3){if(ch.data.length>left){ch.data=ch.data.slice(0,left);left=0}else left-=ch.data.length}else w(ch)}})(c);return c.innerHTML} +function stream(el,html,t,a,cps=90,caret=true){const L=hlen(html),n=Math.floor(cl((t-a)*cps,0,L));const key=n+'|'+html.length;if(el._k===key)return;el._k=key;el.innerHTML=trunc(html,n)+(caret&&n>0&&n':'');} +function setHTML(el,h){if(el._h!==h){el._h=h;el.innerHTML=h}} + + +const IC={ + bulb:'', + search:'', + kb:'', + file:'', + fileq:'', + check:'', + tool:'', + mem:'', + term:'', + web:'', + skill:'', + chat:'', + agent:'', + box:'', + share:'', + art:'', + clip:'', + at:'', + send:'', + book:'', + panel:'', + folder:'', + desk:'', + lock:'', + concept:'', + tag:'', + chev:'', chevd:'', + edit:'', hist:'', + graph:'', + trash:'', + api:'', widget:'', + pause:'', stop:'', + sync:'', + rank:'', +}; +const I=(k,cls='i')=>`${IC[k]}`; + + +export {$,cl,lin,eo,eio,P,PI,mix,show,typed,trunc,stream,setHTML,IC,I}; diff --git a/misc/release-v0.9.0-video/release-film/icons.js b/misc/release-v0.9.0-video/release-film/icons.js new file mode 100644 index 00000000000..a0c3d3d676a --- /dev/null +++ b/misc/release-v0.9.0-video/release-film/icons.js @@ -0,0 +1 @@ +export const productIcons={"assistant": "\n \n \n \n", "knowledge": "\n \n", "automation": "\n \n \n \n \n", "toolbox": "\n \n \n \n \n", "artifacts": "\n \n \n \n \n"}; diff --git a/misc/release-v0.9.0-video/release-film/index.html b/misc/release-v0.9.0-video/release-film/index.html new file mode 100644 index 00000000000..a496d5039d8 --- /dev/null +++ b/misc/release-v0.9.0-video/release-film/index.html @@ -0,0 +1,9 @@ + + +WeKnora v0.9.0 — Your WeKnora assistant + +
+
V0.9.0

Your WeKnora assistant.

01WeKnora
Assistant
Ask, create and configure
02Multi-agent
collaboration
Split work. Combine results.
03AutomationsSchedule recurring work
04Execution
permissions
Review before it runs
+

Ask. Create. Work together.

github.com/Tencent/WeKnora

OPEN SOURCE · SELF-HOSTED
+
+ diff --git a/misc/release-v0.9.0-video/release-film/knowledge-scenes.css b/misc/release-v0.9.0-video/release-film/knowledge-scenes.css new file mode 100644 index 00000000000..0a52c459f1f --- /dev/null +++ b/misc/release-v0.9.0-video/release-film/knowledge-scenes.css @@ -0,0 +1,24 @@ +/* The original film's full-width chapters return for the knowledge tools. */ +.wide-heading{position:absolute;left:120px;top:49px;right:380px}.wide-heading .eyebrow{font-size:17px;letter-spacing:.14em}.wide-heading h1{font:500 56px/1.1 var(--serif);letter-spacing:-.025em;color:var(--ink);margin:16px 0 10px}.wide-heading p{font-size:22px;line-height:1.4;color:var(--soft);margin:0}.wide-brand{position:absolute;right:120px;top:69px;display:flex;align-items:center;gap:16px}.wide-brand img{width:139px}.wide-brand>span{font-size:14px;color:var(--mute);border-left:1px solid var(--rule);padding-left:16px} +.wide-app{position:absolute;left:120px;top:238px;width:1680px;height:772px;border:1px solid #e2e4e5;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 30px 65px -32px #101f3854;color:#343b3b}.wide-app .compact-nav{width:62px;gap:19px}.wide-app .compact-nav .i{width:21px;height:21px}.wide-app .pointer{z-index:30}.knowledge-head{position:absolute;top:0;left:62px;right:0;height:73px;display:flex;align-items:center;gap:22px;padding:0 31px;border-bottom:1px solid #eee;font-size:20px}.knowledge-head>b{font-weight:550;display:flex;gap:14px;align-items:center;white-space:pre}.knowledge-head>b>span{color:#b5b9b6}.knowledge-head>.i{color:#999;width:20px;height:20px}.knowledge-tabs{display:flex;gap:3px;background:#f7f7f7;border-radius:7px;padding:4px}.knowledge-tabs>span{display:flex;align-items:center;gap:7px;font-size:17px;padding:7px 11px;color:#777;border-radius:6px}.knowledge-tabs .active{background:white;box-shadow:0 1px 4px #0000000d;color:var(--g)}.knowledge-tabs .i{width:19px;height:19px}.wide-chapter .caret{display:inline-block;width:1px;height:1em;background:#59625e;margin-left:2px;vertical-align:-2px} +.browser-window{position:absolute;left:120px;top:238px;width:1020px;height:772px;background:#fff;border:1px solid #dddfe1;border-radius:14px;overflow:hidden;box-shadow:0 30px 65px -32px #101f3854}.browser-tabs{height:42px;background:#e9e9ec;display:flex;align-items:center;padding:0 17px;gap:8px;color:#666}.browser-tabs>i{width:10px;height:10px;border-radius:50%;background:#c5c7cc}.browser-tabs>span{height:34px;align-self:flex-end;display:flex;align-items:center;gap:9px;background:#f7f8fa;padding:0 16px;margin-left:15px;border-radius:9px 9px 0 0;width:260px;font-size:14px}.browser-tabs .i{width:15px;height:15px}.browser-tabs b{font-weight:400;margin-left:auto;font-size:18px}.browser-address{height:45px;background:#f7f8fa;display:flex;align-items:center;gap:16px;padding:0 20px;font-size:17px;color:#6f747a}.browser-address>.i{width:17px;height:17px}.browser-address>span{display:flex;gap:10px;align-items:center;border-radius:18px;background:#eaecf0;flex:1;padding:7px 16px;font-size:14px}.browser-address>span .i{width:14px;height:14px}.browser-control-banner{height:37px;display:flex;align-items:center;gap:9px;padding:0 24px;border-bottom:1px solid #ddd;font-size:13px;color:#73787e;background:#fff}.browser-control-banner>.i{width:16px;height:16px}.browser-control-banner>span{margin-left:auto;border:1px solid #d5d9dd;border-radius:4px;padding:2px 8px} +.event-form{padding:29px 52px;background:#fffefb;position:absolute;top:124px;bottom:0;left:0;right:0}.event-brand{font:13px var(--mono);letter-spacing:.13em;color:#4a5d62;display:flex;justify-content:space-between}.event-brand>span{color:#b1a28b;font-size:11px}.event-form h2{font:500 42px/1.04 var(--serif);letter-spacing:-.02em;color:#203652;margin:22px 0 26px}.event-fields label{display:block;font-size:14px;color:#81817b;margin-bottom:7px}.form-field{height:42px;border:1px solid #deded7;border-radius:6px;padding:10px 13px;background:white;font-size:17px;color:#b0b0aa;line-height:1.3}.form-field.typing,.form-field.filled{color:#44514f}.form-field.field-active{border-color:#b39a6e;box-shadow:0 0 0 2px #b39a6e10}.form-row{display:grid;grid-template-columns:2fr 1fr;gap:22px;margin:18px 0}.form-field.multiline{min-height:84px;font-size:17px;line-height:1.55}.event-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:20px;font-size:13px;color:#9a9d94}.event-bottom b{font-size:14px;font-weight:450;background:#253e42;color:white;padding:10px 16px;border-radius:5px} +.browser-task{position:absolute;left:1164px;top:238px;width:636px;height:772px;border:1px solid #e1e4e3;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 30px 65px -32px #101f3854}.browser-task>header{display:flex;align-items:center;gap:11px;height:64px;border-bottom:1px solid #eee;padding:0 25px;font-size:20px;font-weight:550;color:#373e3a}.browser-task>header>.i{color:var(--g);width:24px;height:24px}.browser-task>header>span{display:flex;gap:20px;margin-left:auto;color:#999;font-size:19px}.browser-chat{position:absolute;left:26px;right:26px;top:85px;bottom:172px;overflow:hidden}.browser-chat .umsg{margin-bottom:20px}.browser-chat .umsg>div{font-size:18px;line-height:1.5;padding:12px 15px}.browser-chat .step{padding-bottom:15px;gap:12px}.browser-chat .step .st{font-size:18px}.browser-chat .step .st small{font-size:15px}.browser-chat .step .si,.browser-chat .step .si .i{width:22px;height:22px}.browser-chat .step:before{left:10px;top:28px}.browser-chat .step.run .si{color:#6e8298}.browser-chat .step.run .si:after{border-color:#e7ebef;border-top-color:#71869a}.browser-chat .ans{font-size:18px;line-height:1.5;margin-top:17px}/* Native BrowserTaskPreview is a compact floating window, not a chat card. */ +.browser-live{position:absolute;left:1430px;top:510px;width:390px;background:white;border:1px solid #dadee0;border-radius:12px;overflow:hidden;z-index:11;box-shadow:0 20px 48px -8px #1825202d,0 3px 9px #18252012;transform-origin:85% 100%} +.browser-live>header{height:38px;display:flex;align-items:center;gap:8px;padding:0 12px;font-size:14px;color:#717975;background:#fff} +.browser-live>header>.i{width:16px;height:16px}.browser-live>header>b{font-weight:500;color:#505c55}.browser-live>header>span{display:flex;margin-left:auto;color:#939c96} +.live-preview{position:relative;width:388px;height:246.49px;overflow:hidden;border-block:1px solid #e7e9e7;background:#faf9f5} +.live-preview>.browser-mirror{left:0;top:0;transform:translateY(-47.16862745px) scale(.3803921569);transform-origin:0 0;box-shadow:none;border:0;border-radius:0;pointer-events:none} +.browser-live>footer{display:flex;gap:7px;align-items:center;height:42px;padding:0 10px;font-size:13px;color:#79847c;background:#fff} +.browser-live>footer>span{display:flex;gap:5px;align-items:center}.browser-live .live-status{margin-right:auto}.live-status>i{width:6px;height:6px;border-radius:50%;background:#23af77}.is-paused .live-status>i{background:#b48b4d} +.browser-live .preview-control{border:1px solid #dce1dc;border-radius:6px;padding:4px 7px;color:#5e6962}.browser-live .i{width:14px;height:14px} +.browser-chat .step{padding-bottom:10px}.browser-chat .step .st{font-size:17px;line-height:1.3}.browser-chat .step .st small{font-size:14px;line-height:1.4;margin-top:3px}.browser-chat .ans{font-size:17px;line-height:1.5;margin-top:13px;max-width:510px} + +.task-input{position:absolute;left:24px;right:24px;bottom:21px;border:1px solid #dedfdf;border-radius:11px;height:138px;background:white;padding:15px 17px;font-size:19px;color:#9c9f9c}.task-input>div{min-height:64px;line-height:1.5}.task-input>div.typing{color:#3d4540}.task-input>footer{display:flex;align-items:center;justify-content:space-between;position:absolute;bottom:12px;left:17px;right:17px;font-size:14px}.task-input>footer>span{display:flex;align-items:center;gap:8px}.task-input>footer .i{width:19px;height:19px}.task-input>footer>b{display:flex;align-items:center;justify-content:center;background:#f0f2f1;border-radius:50%;width:31px;height:31px;font-weight:400;color:#839089}.toggle-on{background:#1fb571;width:25px;height:14px;border-radius:10px;display:inline-block;position:relative}.toggle-on:after{content:'';position:absolute;width:10px;height:10px;background:white;border-radius:50%;right:2px;top:2px} +.gallery-content{position:absolute;left:62px;right:0;top:73px;bottom:0;padding:25px 30px}.gallery-tools{display:flex;align-items:center;gap:19px;height:44px;margin-bottom:25px;font-size:16px;color:#838a84}.gallery-tools>b{font-weight:550;font-size:19px;color:#4d574f}.gallery-tools small{font-size:14px;color:#a1a5a0;font-weight:400;margin-left:13px}.gallery-tools>span{display:flex;align-items:center;gap:6px;border:1px solid #e4e5e4;border-radius:6px;padding:8px 10px;font-size:15px}.gallery-tools .i{width:18px;height:18px}.gallery-search{margin-left:auto;width:340px;display:flex;align-items:center;gap:10px;height:37px;border:1px solid #e0e4df;border-radius:6px;padding:7px 11px;color:#a0a59f;font-size:16px}.gallery-search .typing{color:#505a51}.masonry{position:relative;height:590px;overflow:hidden}.gallery-tile{position:absolute;display:inline-block;width:100%;overflow:hidden;border-radius:9px;border:1px solid #e3e4df;margin-bottom:18px;background:#fff;vertical-align:top;box-shadow:0 2px 5px #00000003}.knowledge-art{display:block;width:100%;height:auto}.gallery-tile>div{padding:13px 12px}.gallery-tile b{display:block;font-size:15px;font-weight:500;color:#5c655d;line-height:1.3}.gallery-tile span{display:flex;gap:5px;align-items:center;font-size:12px;color:#9ca29b;margin-top:9px}.gallery-tile span .i{width:13px;height:13px} +.gallery-viewer{position:absolute;inset:0;background:#101213;z-index:10;display:grid;grid-template-columns:1fr 370px;opacity:0;visibility:hidden}.image-stage{position:relative;min-width:0}.image-stage>header{position:absolute;left:22px;right:22px;top:21px;display:flex;justify-content:space-between;font-size:13px;color:#a4a8a9;align-items:center}.image-stage>header>span:last-child{display:flex;align-items:center;white-space:pre;gap:3px}.image-stage>header .i{width:17px;height:17px}.large-art{position:absolute;left:50%;top:72px;margin-left:-253px;width:506px;transform-origin:50% 50%;box-shadow:0 8px 50px #0003}.image-thumbs{position:absolute;left:0;right:0;bottom:18px;display:flex;justify-content:center;align-items:center;gap:12px;height:53px}.image-thumbs>span{display:flex;align-items:center;height:53px;width:62px;padding:3px;background:#242728;border:1px solid #474a4a;border-radius:4px;overflow:hidden}.image-thumbs>span.active{border-color:#58ab80}.image-thumbs .knowledge-art{max-height:100%;height:100%;object-fit:contain}.image-info{background:#fff;padding:23px 25px;position:relative}.image-info h3{margin:0 0 15px;font-size:17px;color:#4e5650;font-weight:550;border-left:3px solid var(--g);padding-left:10px}.image-info>p{font-size:17px;line-height:1.65;color:#737a74;margin:0 0 25px;padding-bottom:24px;border-bottom:1px solid #eee}.image-basic{position:absolute;left:25px;right:25px;bottom:35px}.image-basic dl{font-size:14px;display:grid;grid-template-columns:132px 1fr;gap:13px 5px;margin:20px 0 0;line-height:1.4}.image-basic dt{color:#a2a6a1}.image-basic dd{margin:0;color:#717a72}.image-basic dd .i{width:13px;height:13px;color:var(--g)} +.wiki-canvas{position:absolute;left:62px;right:0;top:73px;bottom:0;overflow:hidden;background:#fff}.graph-drawing{position:absolute;left:5px;right:5px;top:35px;width:calc(100% - 10px);height:calc(100% - 70px)}.wiki-search{position:absolute;left:26px;top:22px;display:flex;align-items:center;gap:9px;font-size:15px;color:#a4aaa6;z-index:2;border:1px solid #e0e3e1;background:#fff;border-radius:5px;box-shadow:0 2px 6px #0000000c;padding:10px 12px;width:263px}.wiki-search>.i{width:16px;height:16px}.wiki-search>.i:last-child{margin-left:auto}.wiki-legend{position:absolute;right:22px;top:22px;border:1px solid #e6e8e6;border-radius:7px;background:#fff;padding:14px 16px;box-shadow:0 3px 9px #00000010;color:#8b928d;width:159px}.wiki-legend>span{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.5;margin:0 0 8px}.wiki-legend i{width:8px;height:8px;border-radius:50%}.wiki-legend .i{width:13px;height:13px}.wiki-legend hr{height:0;border:0;border-top:1px solid #eee;margin:12px 0}.wiki-legend small{font-size:12px;color:#6f7771}.wiki-focus{position:absolute;bottom:25px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #dfe5e0;border-radius:8px;box-shadow:0 4px 16px #0001;font-size:15px;padding:12px 17px;color:#67746a;white-space:nowrap;z-index:3;margin-left:-195px}.wiki-focus>.i{width:16px;height:16px}.wiki-focus>span{border-left:1px solid #e4e7e4;padding-left:17px;margin-left:7px;font-size:13px;color:#929b94}.graph-hint{position:absolute;bottom:25px;left:27px;font-size:12px;color:#a5ada6}.wiki-node.selected>circle{stroke:#dce8e0;stroke-width:6}.wiki-reader{position:absolute;right:0;top:73px;bottom:0;width:550px;border-left:1px solid #e1e5e2;background:#fff;box-shadow:-7px 0 25px #00000005;z-index:6}.wiki-reader>header{height:93px;display:flex;align-items:flex-start;justify-content:space-between;padding:22px 25px 15px;border-bottom:1px solid #eee}.wiki-reader>header b{font-weight:550;font-size:22px;color:#3b493f}.wiki-reader>header span{display:flex;gap:10px;margin-top:8px;font-size:12px;color:#559773}.wiki-reader>header i{font-style:normal;color:#a0aaa2}.wiki-reader>header>.i{width:19px;height:19px;color:#a0aaa2}.wiki-markdown{padding:24px 28px;color:#59665c;font-size:17px;line-height:1.55}.wiki-markdown h1{font-size:25px;line-height:1.3;font-weight:600;margin:0 0 13px;color:#273c2f}.wiki-markdown h2{font-size:19px;margin:22px 0 9px;font-weight:550;color:#405446}.wiki-markdown p{margin:8px 0 14px}.wiki-markdown blockquote{border-left:3px solid #d9e3da;padding:7px 13px;color:#8b968d;background:#f7f9f7;margin:16px 0;font-size:16px}.wiki-markdown table{border-collapse:collapse;width:100%;font-size:15px;line-height:1.4}.wiki-markdown th,.wiki-markdown td{padding:8px 11px;border:1px solid #e2e7e3;text-align:left}.wiki-markdown th{font-weight:500;background:#f7f9f7;width:103px;color:#78867c}.wiki-markdown ol{margin:0;padding-left:23px;font-size:16px}.wiki-markdown li{margin:4px 0}.wiki-markdown a{color:#1d9b64;border-bottom:1px solid #b9dfcc;display:inline-block;margin-right:14px;font-size:15px} +.citation-top{position:absolute;left:62px;right:0;top:0;height:64px;border-bottom:1px solid #eee;padding:0 29px;display:flex;justify-content:space-between;align-items:center;font-size:18px;color:#7e8a82}.citation-top span{display:flex;gap:20px;color:#a2aaa4}.citation-conversation{position:absolute;left:440px;top:64px;bottom:0;width:720px}.citation-messages{padding:28px 20px;font-size:21px}.citation-messages .umsg{margin-bottom:24px}.citation-messages .umsg>div{font-size:21px;line-height:1.55}.citation-messages .step{margin:15px 0 22px}.citation-messages .ans{font-size:23px;line-height:1.65}.citation-number{display:inline-flex;align-items:center;justify-content:center;vertical-align:2px;background:#edf5ef;color:#229967;border-radius:4px;width:23px;height:24px;font-size:14px;border:1px solid #d7e7dc;margin-left:3px}.citation-source-label{margin-top:25px;border-top:1px solid #eee;padding-top:17px;font-size:16px;color:#9aa19b;display:flex;gap:8px;align-items:center}.citation-source-label .i{width:18px;height:18px}.citation-pop{position:absolute;left:35px;right:30px;top:330px;border:1px solid #e0e4e0;border-radius:9px;background:white;padding:17px 20px;box-shadow:0 16px 45px #152a4a26;font-size:17px;z-index:3;opacity:0;visibility:hidden}.citation-pop header{display:flex;gap:8px;align-items:center;font-size:17px;font-weight:500;color:#59685d}.citation-pop header .i{color:var(--g);width:19px;height:19px}.citation-pop p{font-size:18px;line-height:1.6;color:#7c857e;margin:13px 0}.citation-pop footer{display:flex;justify-content:space-between;border-top:1px solid #eee;padding-top:11px;font-size:13px;color:#a3aaa3}.citation-pop footer>.i{width:17px;height:17px}.citation-conversation .task-input{font-size:21px}.citation-conversation .task-input footer{font-size:15px} +.source-viewer{position:absolute;right:0;top:64px;bottom:0;width:797px;background:#f4f5f4;border-left:1px solid #e1e5e1;visibility:hidden;z-index:4;overflow:hidden}.source-viewer>header{height:75px;border-bottom:1px solid #e0e4e0;display:flex;gap:12px;align-items:center;padding:0 25px;background:#fff}.source-viewer>header>.i{width:28px;height:28px;color:#a9854f}.source-viewer>header b{font-size:17px;font-weight:550;color:#5a655d}.source-viewer>header small{display:block;margin-top:5px;font-size:12px;color:#7d9483}.source-viewer>header>span{margin-left:auto;color:#a0aaa3;font-size:19px}.source-paper{position:absolute;top:94px;left:44px;right:44px;height:567px;background:white;box-shadow:0 1px 5px #0001;padding:34px 42px;color:#576475;font-family:Georgia,serif;font-size:17px;line-height:1.7}.source-brand{font:11px Inter;letter-spacing:.16em;color:#a7a397;border-bottom:1px solid #e8e6e1;padding-bottom:15px}.source-paper h1{font:500 36px/1.2 Georgia;margin:24px 0 13px;color:#24364e}.source-intro{font-style:italic;color:#92979c;font-size:16px}.source-paper h2{font:500 23px Georgia;margin:24px 0 10px;color:#41526b}.source-paper p{margin:8px 0 13px}.source-paper mark{background:rgba(244,212,117,var(--highlight,0));box-shadow:0 0 0 3px rgba(244,212,117,var(--highlight,0));color:inherit;line-height:1.85}.source-page-number{position:absolute;bottom:19px;left:0;right:0;text-align:center;font:12px Inter;color:#afb0aa}.source-viewer>footer{position:absolute;bottom:0;left:0;right:0;height:38px;background:#fff;border-top:1px solid #e1e5e1;padding:10px 28px;font-size:13px;color:#8c978f}.source-viewer>footer>span{float:right} +/* Product headings remain readable at normal video playback size. */ +#wikiReader .wiki-markdown{font-size:16px;line-height:1.5;padding-top:20px}#wikiReader .wiki-markdown h2{margin-top:18px} diff --git a/misc/release-v0.9.0-video/release-film/knowledge-scenes.js b/misc/release-v0.9.0-video/release-film/knowledge-scenes.js new file mode 100644 index 00000000000..56c3f343ec5 --- /dev/null +++ b/misc/release-v0.9.0-video/release-film/knowledge-scenes.js @@ -0,0 +1,155 @@ +import {$,P,PI,lin,show,stream,setHTML,IC} from './foundation.js'; + +// These follow the current BrowserSkill, gallery, WikiBrowser and source-viewer +// components. All documents, drawings, forms and graph nodes are fictional. +export const extraScenes=[ + {a:113,b:127,key:'browser',wide:true,label:'07 — BROWSER SKILL',title:'Put the browser to work.',sub:'Fill the page from your knowledge. Keep the final review in your hands.'}, + {a:127,b:137,key:'gallery',wide:true,label:'08 — KNOWLEDGE GALLERY',title:'Find the picture in your knowledge.',sub:'Browse extracted images. Search their descriptions and text. Open the source.'}, + {a:137,b:150,key:'wiki',wide:true,label:'09 — WIKI GRAPH',title:'See how the ideas connect.',sub:'Explore topic groups, focus the graph and read the page without losing your place.'}, + {a:150,b:161,key:'citation',wide:true,label:'10 — SOURCE CITATIONS',title:'From an answer to its evidence.',sub:'Preview a citation, then open the original at the passage that supports it.'}, +]; +export const extraInputs=[ + {scene:'browser',start:.65,end:2.7,send:3.0,prompt:'Fill the event form from the reading-club plan. Leave it open for my review.'}, + {scene:'browser',id:'browser-title',start:5.0,end:5.95,send:6.15,retain:true,prompt:'Weekend reading club'}, + {scene:'browser',id:'browser-notes',start:6.55,end:8.65,send:8.9,retain:true,prompt:'Bring a book and a two-minute recommendation. Register by Nov 5 at 18:00.'}, + {scene:'gallery',start:1.05,end:2.35,send:2.65,retain:true,prompt:'reading club'}, + {scene:'citation',start:.7,end:2.25,send:2.55,prompt:'When does registration close, and what should I bring?'}, +]; +const esc=s=>String(s).replaceAll('&','&').replaceAll('<','<').replaceAll('>','>'); +const art=(kind,large=false)=>{ + const W=480,H=kind==='poster'?560:kind==='cover'?520:kind==='chart'?320:360; + const palettes={poster:['#f4e5cf','#203652','#b78547'],cover:['#24364c','#f5e9d6','#b59a6e'],chart:['#e8edf0','#405d72','#9baebb'],diagram:['#f0ece1','#797261','#c6b58c'],note:['#eee4e2','#825b57','#bd9691'],agenda:['#ecede7','#536257','#93a189']}; + const [bg,fg,acc]=palettes[kind]||palettes.agenda; + let content=''; + if(kind==='poster')content=`WEEKEND / VOL. 07Readingtogether.NOV 7 · 14:00–16:00 · ONLINEBring a book. Share a new perspective.`; + else if(kind==='cover')content=`THE READING CLUBA sharedreading list.Ideas to take into the next week.`; + else if(kind==='chart')content=`Reader interests${[.56,.84,.68,.39].map((v,i)=>`${['Fiction','Ideas','History','Poetry'][i]}`).join('')}`; + else if(kind==='diagram')content=`From book to discussion${['READ','SHARE','CONNECT'].map((t,i)=>`${t}${i<2?``:''}`).join('')}A conversation starts with a page.`; + else if(kind==='note')content=`Bring your perspective.01 Pick a passage02 Ask a question03 Listen for a new ideaREADING CLUB · DISCUSSION NOTES`; + else content=`The afternoon at a glance${[['14:00','Welcome'],['14:10','Reader talks'],['14:50','Open discussion'],['15:30','Shared reading list']].map(([t,n],i)=>`${t}${n}`).join('')}`; + return `${content}`; +}; +const galleryItems=[['poster','Reading club poster','Event guide.pdf'],['chart','Reader interests','Event guide.pdf'],['cover','Shared reading list','Event guide.pdf'],['agenda','Event agenda','Event guide.pdf'],['diagram','Discussion guide','Preparation plan.pdf'],['note','Discussion notes','Preparation plan.pdf'],['diagram','Ask a good question','Preparation plan.pdf'],['agenda','Preparation checklist','Preparation plan.pdf'],['chart','Previous sessions','Event guide.pdf'],['note','Notes from the host','Preparation plan.pdf'],['cover','Books to revisit','Event guide.pdf'],['poster','Next month’s session','Event guide.pdf']]; +const graphGroups=[ + {name:'Reading club',x:340,y:310,rx:265,ry:224,color:'#a28b58',nodes:[[-103,-118,'Event guide','summary'],[112,-99,'Registration','concept'],[-23,-29,'Reading club','entity'],[-142,66,'Agenda','synthesis'],[112,88,'Preparation','concept'],[-6,155,'Reading list','summary']]}, + {name:'Ways of reading',x:898,y:220,rx:226,ry:168,color:'#6b8e9e',nodes:[[-101,-69,'Reading notes','summary'],[58,-84,'Close reading','concept'],[-6,12,'Discussion','entity'],[118,61,'Compare ideas','comparison'],[-116,86,'Good questions','concept']]}, + {name:'Community',x:1130,y:498,rx:223,ry:155,color:'#8c799e',nodes:[[-92,-48,'Hosting guide','summary'],[98,-71,'Facilitator','entity'],[2,21,'Participation','concept'],[-108,79,'Shared notes','synthesis'],[128,81,'New members','entity']]}, +]; +const colors={summary:'#0052d9',entity:'#2ba471',concept:'#e37318',synthesis:'#0594fa',comparison:'#d54941'}; +let I,cursor; +function nav(active){return `
${['panel','search','assistant','chat','kb','art','agent','automation','box'].map(ic=>`${I(ic)}`).join('')}
`;} +function kbHeader(tab){return `
Knowledge Base › Weekend reading club
${[['file','Documents'],['book','Wiki'],['graph','Graph'],['image','Gallery']].map(([ic,t])=>`${I(ic)}${t}`).join('')}
${I('help')}
`;} +function mouse(key){return `
${cursor}
`;} +function graph(){return `${graphGroups.map((g,k)=>`${g.nodes.map((n,i)=>i?``:'').join('')}${g.nodes.slice(1).map((n,i)=>``).join('')}${g.nodes.map(([x,y,t,type],n)=>`${t}`).join('')}${g.name} ›`).join('')}`;} + +export function mountExtraScenes(helpers){ + I=helpers.I;cursor=helpers.cursorSVG; + IC.expand=''; + IC.image=''; + const html={}; + html.browser=`
${I('web')}Event draft ×
← → ${I('sync')}${I('lock')}events.example/reading-club/edit${I('plus')}
${I('web')}BrowserSkill is controlling this browser Cancel
FIELDNOTES EVENTS / DRAFT

A good afternoon,
planned together.

Choose a date
Add capacity
Your changes are a draft.Publish event
${mouse('browserPage')}
${I('agent')}Smart Reasoning${I('hist')}${I('close')}
${extraInputs[0].prompt}
${I('skill')}
Read Browser SkillUse the connected local browser
${I('web')}
Open event draftIndependent browser task window
${I('edit')}
Fill from the event guideTitle, schedule and preparation notes
${I('web')}Local browser ${I('up')}
${mouse('browser')}`; + html.gallery=`
${nav('kb')}${kbHeader('Gallery')}${mouse('gallery')}
`; + html.wiki=`
${nav('kb')}${kbHeader('Graph')}
${graph()}
${Object.entries(colors).map(([k,c])=>`${k[0].toUpperCase()+k.slice(1)}`).join('')}
${I('graph')}Fit view${I('eye')}Hide unlinked
16 / 16 nodes
Reading club ${I('chevd')}Back to full graph Esc
Drag to pan · Scroll to zoom
Reading clubEntity v3
${I('close')}

Weekend reading club

A shared afternoon to discover books, compare ideas and build a reading list together.

Bring one book and a two-minute recommendation.

At a glance

WhenNov 7, 14:00–16:00
WhereOnline
Places20 · Free registration

How the afternoon works

  1. Four short reader talks
  2. Open discussion and questions
  3. A shared reading list to take away

Related knowledge

Event guideRegistrationPreparation

${mouse('wiki')}
`; + html.citation=`
${nav('chat')}
Reading club questions${I('share')}${I('hist')}
${extraInputs.at(-1).prompt}
${I('search')}
Search knowledgeWeekend reading club · Sign-up notes
${I('book')}Sign-up notes.pdf

Registration closes on November 5 at 18:00. Each participant should bring a book and prepare a two-minute recommendation.

Page 1 · Open source ${I('chev')}
${I('kb')}Weekend reading club${I('up')}
${I('file')}
Sign-up notes.pdfLocating cited passage…
${I('close')}
WEEKEND READING CLUB

Sign-up notes

Everything you need to join our next reading afternoon.

Registration

There are 20 free places for the online event. Sign up with your name and the book you plan to share.

Registration closes on November 5 at 18:00.
Each participant should bring a book and prepare
a two-minute recommendation.

Before the session

Check your meeting link and bring a passage you would like to discuss. We will collect recommendations in a shared reading list.

1
‹ 1 / 1 ›− 100% +
${mouse('citation')}
`; + for(const scene of extraScenes){ + const root=document.createElement('section');root.id='s-'+scene.key;root.className='chapter wide-chapter'; + root.innerHTML=`
${scene.label}

${scene.title}

${scene.sub}

v0.9.0
${html[scene.key]}`; + $('chapters').appendChild(root); + } +} + +function type(id,input,s,placeholder=''){ + const sent=s>=input.send,count=sent&&!input.retain?0:input.chars.filter(c=>s+1e-7>=c.at).length; + const el=$(id);el.dataset.chars=count; + const caret=count>0&&s':''; + setHTML(el,count?esc(input.prompt.slice(0,count))+caret:placeholder);el.classList.toggle('typing',count>0); +} +function reveal(id,s,a,d=.35){const el=$(id),p=P(s,a,d);el.style.display=p>0?'':'none';show(el,p,10);} +function point(key,id,s,at,root){ + const cur=$(key+'Cursor'),rip=$(key+'Click'),visible=s>=at-.6&&s0&&q<1?.65*(1-q):0;rip.style.transform=`scale(${.4+q})`; +} + +export function renderExtraScene(key,s,{interactions}){ + const root=$('s-'+key);show(root.querySelector('.wide-heading'),P(s,.12,.6),12); + const inputs=interactions.filter(i=>i.scene===key); + if(key==='browser'){ + type('browserIn',inputs[0],s,'Describe a browser task…');type('browser-titleIn',inputs[1],s,'Name your event');type('browser-notesIn',inputs[2],s,'Add preparation notes'); + reveal('browserUser',s,3);[3.25,4,4.65].forEach((a,n)=>{reveal('browserStep'+n,s,a);$('browserStep'+n).classList.toggle('run',s>=a&&s=6.1?'Nov 7 · 14:00–16:00':'Choose a date';$('eventDate').classList.toggle('filled',s>=6.1); + $('eventCapacity').textContent=s>=6.35?'20 people':'Add capacity';$('eventCapacity').classList.toggle('filled',s>=6.35); + reveal('browserLive',s,4.5,.55);stream($('browserAnswer'),'

Draft filled. The browser is open for your review.
Nothing has been published.

',s,9.4,85,false); + const paused=s>=11.55;$('browserState').textContent=paused?'Paused':'Running'; + setHTML($('browserPause'),I(paused?'play':'pause')+(paused?'Resume':'Pause')); + $('eventDraftState').textContent=s>=9.2?'Ready for your review · Not published':'Your changes are a draft.'; + $('browser-titleIn').classList.toggle('field-active',s>=5&&s<6.1);$('browser-notesIn').classList.toggle('field-active',s>=6.55&&s<8.9); + const msg=$('browserUser'),compact=PI(s,4.05,.45);msg.style.maxHeight=(1-compact)*150+'px';msg.style.opacity=1-compact;msg.style.overflow='hidden';msg.style.marginBottom=(1-compact)*20+'px'; + const complete=PI(s,9.05,.4); + for(let n=0;n<3;n++){ + const row=$('browserStep'+n),detail=row.querySelector('small'); + detail.style.maxHeight=24*(1-complete)+'px';detail.style.opacity=1-complete;detail.style.overflow='hidden'; + row.style.paddingBottom=10-3*complete+'px'; + } + // The floating preview mirrors the exact authored browser, including focus, + // typing and pointer state. It is outside the conversation's document flow. + const phases=[[4.55,'browser-titleIn'],[6.1,'eventDate'],[6.35,'eventCapacity'],[6.55,'browser-notesIn']]; + const active=phases.findLastIndex(([at])=>s>=at),page=$('browserWindow'),pc=$('browserPageCursor'),click=$('browserPageClick'); + pc.style.opacity=s>=4.3&&s<9.15?1:0;click.style.opacity=0; + if(active>=0){ + const [at,id]=phases[active],before=phases[Math.max(0,active-1)][1]; + const base=page.getBoundingClientRect(),scale=base.width/page.offsetWidth; + const location=id=>{const r=$(id).getBoundingClientRect();return [(r.left-base.left)/scale+56,(r.top-base.top)/scale+23]}; + const [x,y]=location(id),[px,py]=location(before),p=PI(s,at,.22); + pc.style.left=px+(x-px)*p+'px';pc.style.top=py+(y-py)*p+'px'; + const q=lin(s,at+.22,at+.62);click.style.left=x+'px';click.style.top=y+'px';click.style.opacity=q>0&&q<1?.4*(1-q):0;click.style.transform=`scale(${.4+q})`; + } + setHTML($('browserMirror'),page.outerHTML.replace(/ id="[^"]*"/g,'').replace(/ data-typewriter="[^"]*"/g,'').replace('class="browser-window"','class="browser-window browser-mirror"')); + $('browserLive').classList.toggle('is-paused',paused); + point('browser',s<4?'browserSend':'browserPause',s,s<4?3:11.5,root); + } + if(key==='gallery'){ + type('galleryIn',inputs[0],s,'Search descriptions and text…'); + const filtered=PI(s,2.7,.65),open=PI(s,4.5,.65); + $('galleryCount').textContent=filtered>.5?'4 images found':'12 images'; + const chosen=[0,2,3,4],heights={poster:560,cover:520,chart:320,diagram:360,note:360,agenda:360}; + galleryItems.forEach(([kind],n)=>{ + const el=$('galleryTile'+n),c=n%6,row=Math.floor(n/6),index=chosen.indexOf(n),baseWidth=244.6,targetWidth=374.5; + const baseTop=row?(heights[galleryItems[c][0]]/480*baseWidth+86):0; + const x=c*(baseWidth+18),y=baseTop,p=index<0?0:filtered; + el.style.left=(x+(index*(targetWidth+20)-x)*p)+'px';el.style.top=(y*(1-p))+'px'; + el.style.width=(baseWidth+(targetWidth-baseWidth)*p)+'px';el.style.opacity=index<0?1-filtered:1; + el.style.transform=`scale(${index<0?1-.05*filtered:1})`; + }); + $('galleryViewer').style.opacity=open;$('galleryViewer').style.visibility=open>0?'visible':'hidden';$('galleryViewer').style.transform=`translateY(${24*(1-open)}px)`; + $('galleryLargeArt').style.transform=`scale(${.96+.04*open+.012*lin(s,5.3,9.5)})`; + point('gallery','galleryTile0',s,4.45,$('galleryApp')); + } + if(key==='wiki'){ + const focus=PI(s,4.35,.95),read=PI(s,8.45,.65); + graphGroups.forEach((g,k)=>{ + const el=$('graphGroup'+k);$('wikiGroupLabel'+k).style.opacity=1-focus; + el.style.opacity=k===0?P(s,.4,.85):P(s,.6+k*.15,.85)*(1-focus); + if(k===0){const scale=1+.4*focus-.12*read,x=230*focus-135*read,y=5*focus;el.style.transform=`translate(${x}px,${y}px) scale(${scale})`;} + }); + $('wikiFocus').style.opacity=focus;$('wikiFocus').style.transform=`translateY(${10*(1-focus)}px)`; + $('wikiNodeCount').textContent=focus>.5?'6 / 16 nodes':'16 / 16 nodes'; + $('wikiReader').style.opacity=read;$('wikiReader').style.transform=`translateX(${580*(1-read)}px)`; + $('wikiReader').style.visibility=read>0?'visible':'hidden';$('wikiNode0-2').classList.toggle('selected',read>0); + point('wiki',s<6?'wikiGroupLabel0':'wikiNode0-2',s,s<6?4.3:8.4,$('wikiApp')); + } + if(key==='citation'){ + type('citationIn',inputs[0],s,'Ask about your knowledge…');reveal('citationUser',s,2.55);reveal('citationSearch',s,2.9); + stream($('citationAnswer'),`

Registration closes November 5 at 18:00. Bring a book and prepare a two-minute recommendation. 1

${I('file')}Sign-up notes.pdf · Page 1
`,s,3.55,92,false); + const pop=P(s,5.2,.25)*(1-P(s,6.4,.2)),open=PI(s,6.55,.65); + $('citationPop').style.opacity=pop;$('citationPop').style.visibility=pop>0?'visible':'hidden'; + $('citationConversation').style.left=440-340*open+'px'; + $('sourceViewer').style.opacity=open;$('sourceViewer').style.transform=`translateX(${800*(1-open)}px)`;$('sourceViewer').style.visibility=open>0?'visible':'hidden'; + $('sourceLocated').textContent=s>=7.35?'Located cited passage · Page 1':'Locating cited passage…'; + $('sourcePassage').style.setProperty('--highlight',P(s,7.35,.5)); + if(s<4)point('citation','citationSend',s,2.55,$('citationApp')); + else if($('citationRef'))point('citation','citationRef',s,s<5.65?5.2:6.5,$('citationApp')); + } +} diff --git a/misc/release-v0.9.0-video/release-film/mix.py b/misc/release-v0.9.0-video/release-film/mix.py new file mode 100644 index 00000000000..b6c2c6c968a --- /dev/null +++ b/misc/release-v0.9.0-video/release-film/mix.py @@ -0,0 +1,40 @@ +"""Normalize the English narration and duck synchronized typing underneath it.""" +import json +from pathlib import Path +import subprocess + +OUT = Path(__file__).resolve().parent.parent / "out/release-film" +FFMPEG = "/opt/homebrew/bin/ffmpeg" +voice = OUT / "narration-raw.wav" +analysis = subprocess.run([FFMPEG, "-hide_banner", "-i", str(voice), "-af", + "loudnorm=I=-18:TP=-2:LRA=7:print_format=json", "-f", "null", "-"], + capture_output=True, text=True, check=True).stderr +measure = json.JSONDecoder().raw_decode(analysis[analysis.rfind("{"):])[0] +normalizer = ("loudnorm=I=-18:TP=-2:LRA=7:linear=true" + f":measured_I={measure['input_i']}:measured_TP={measure['input_tp']}" + f":measured_LRA={measure['input_lra']}:measured_thresh={measure['input_thresh']}" + f":offset={measure['target_offset']}") +subprocess.run([FFMPEG, "-v", "error", "-y", "-i", str(voice), "-af", normalizer, + "-ar", "48000", "-ac", "2", str(OUT / "narration.wav")], check=True) +graph = ("[0:a]asplit=2[voice][detector];[1:a]volume=0.55[keys];" + "[keys][detector]sidechaincompress=threshold=0.012:ratio=8:attack=5:release=110:makeup=1[quietkeys];" + "[voice][quietkeys]amix=inputs=2:duration=longest:normalize=0,alimiter=limit=0.94:level=false:latency=true[mix]") +subprocess.run([FFMPEG, "-v", "error", "-y", "-i", str(OUT / "narration.wav"), + "-i", str(OUT / "typing.wav"), "-filter_complex", graph, "-map", "[mix]", + "-ar", "48000", "-ac", "2", "-t", "165", str(OUT / "soundtrack.wav")], check=True) +analysis = subprocess.run([FFMPEG, "-hide_banner", "-i", str(OUT / "soundtrack.wav"), + "-af", "loudnorm=I=-18:TP=-2:LRA=7:print_format=json", "-f", "null", "-"], + capture_output=True, text=True, check=True).stderr +result = json.JSONDecoder().raw_decode(analysis[analysis.rfind("{"):])[0] +timing = json.loads((OUT / "narration-timing.json").read_text()) +assert all(c['start'] + c['duration'] <= c['end'] for c in timing['clips']) +assert float(result['input_tp']) < -1 +(OUT / "mix-checks.json").write_text(json.dumps({ + "duration": 165, "music": False, "narration": True, "stockSyntheticVoice": timing['voice'], + "speechClips": len(timing['clips']), "captionCues": len(timing['captions']), + "narrationWithinSceneSlots": True, "typingGain": .55, + "ducking": "8:1, 5ms attack, 110ms release, keyed by narration", + "integratedLufs": float(result['input_i']), "truePeakDbTP": float(result['input_tp']), + "loudnessRangeLu": float(result['input_lra']), "sampleRate": 48000, "channels": 2, +}, indent=2)) +print(json.dumps(result, indent=2)) diff --git a/misc/release-v0.9.0-video/release-film/narration-plan.json b/misc/release-v0.9.0-video/release-film/narration-plan.json new file mode 100644 index 00000000000..3fca705fd1e --- /dev/null +++ b/misc/release-v0.9.0-video/release-film/narration-plan.json @@ -0,0 +1,145 @@ +[ + { + "start": 0.25, + "end": 5.5, + "text": "Meet WeKnora v0.9.0. Your assistant is right beside the logo.", + "spoken": "Meet Wee Nora, zero point nine. Your assistant is right beside the logo." + }, + { + "start": 5.95, + "end": 11.65, + "text": "Ask what's new, or how something works. It checks the product docs before answering." + }, + { + "start": 12.25, + "end": 21.5, + "text": "Get a practical overview of the release, and help with the page you're on. The Assistant works with your identity and permissions." + }, + { + "start": 22.35, + "end": 27.5, + "text": "Need an agent? Start here, and describe the job." + }, + { + "start": 28.0, + "end": 33.5, + "text": "It finds the knowledge, models, MCP tools, and skills already available.", + "spoken": "It finds the knowledge, models, M C P tools, and skills already available." + }, + { + "start": 34.15, + "end": 39.45, + "text": "Review how they fit together, then approve the agent's creation." + }, + { + "start": 40.0, + "end": 46.25, + "text": "Now your coordinator is ready, with the right knowledge and tools connected." + }, + { + "start": 47.35, + "end": 52.05, + "text": "For a bigger task, let several agents share the work." + }, + { + "start": 52.7, + "end": 58.15, + "text": "Atlas checks the agenda. Iris reviews sign-ups. Nova handles preparation." + }, + { + "start": 58.9, + "end": 64.35, + "text": "Their results return to one conversation, as a briefing you can actually use." + }, + { + "start": 65.35, + "end": 70.4, + "text": "For recurring work, describe the task and when it should run." + }, + { + "start": 70.85, + "end": 77.1, + "text": "The Assistant adds your time zone and access rules. Check the schedule before saving." + }, + { + "start": 77.7, + "end": 86.2, + "text": "Try a run now. Get the preparation brief, then let the schedule handle the next one." + }, + { + "start": 87.35, + "end": 91.55, + "text": "Choose read only, ask first, or auto." + }, + { + "start": 92.0, + "end": 96.5, + "text": "For a change, check the exact resource and proposed update." + }, + { + "start": 96.95, + "end": 100.65, + "text": "Approve it. The name updates in your knowledge base." + }, + { + "start": 101.35, + "end": 108.4, + "text": "Longer tasks can keep running in the background, with progress right in the conversation." + }, + { + "start": 108.9, + "end": 112.6, + "text": "When it's ready, open the finished run sheet." + }, + { + "start": 113.35, + "end": 118.15, + "text": "Browser Skill takes the work into your connected browser." + }, + { + "start": 118.7, + "end": 126.2, + "text": "Fill the event form from your knowledge. Watch it happen, then review the draft before publishing." + }, + { + "start": 127.35, + "end": 131.45, + "text": "Looking for an image? Search your documents visually." + }, + { + "start": 131.8, + "end": 136.4, + "text": "See its description, extracted text, and the source document." + }, + { + "start": 137.35, + "end": 141.35, + "text": "Wiki Graph groups connected ideas by topic." + }, + { + "start": 141.75, + "end": 145.7, + "text": "Focus on a group to explore the connections." + }, + { + "start": 146.1, + "end": 149.65, + "text": "Then open a page and read it in context." + }, + { + "start": 150.35, + "end": 155.15, + "text": "And every sourced answer gives you a way to check the evidence." + }, + { + "start": 155.6, + "end": 160.35, + "text": "Preview the citation, then jump straight to the supporting passage." + }, + { + "start": 161.25, + "end": 164.8, + "text": "WeKnora. Ask. Create. Work together.", + "spoken": "Wee Nora. Ask. Create. Work together." + } +] diff --git a/misc/release-v0.9.0-video/release-film/narration.js b/misc/release-v0.9.0-video/release-film/narration.js new file mode 100644 index 00000000000..6a43d84f4a4 --- /dev/null +++ b/misc/release-v0.9.0-video/release-film/narration.js @@ -0,0 +1,173 @@ +// Generated from narration.py and model word durations. +export const captions = [ + [ + 0.495, + 2.77, + "Meet WeKnora, v0.9.0." + ], + [ + 2.77, + 5.43, + "Your assistant is right beside the logo." + ], + [ + 6.22, + 8.57, + "Ask what's new, or how something works." + ], + [ + 8.57, + 11.38, + "It checks the product docs before answering." + ], + [ + 12.47, + 16.645, + "Get a practical overview of the release, and help with the page you're on." + ], + [ + 16.645, + 19.905, + "The Assistant works with your identity and permissions." + ], + [ + 22.595, + 25.855, + "Need an agent? Start here, and describe the job." + ], + [ + 28.195, + 33.43, + "It finds the knowledge, models, MCP tools, and skills already available." + ], + [ + 34.395, + 38.355, + "Review how they fit together, then approve the agent's creation." + ], + [ + 40.27, + 44.805, + "Now your coordinator is ready, with the right knowledge and tools connected." + ], + [ + 47.57, + 50.905, + "For a bigger task, let several agents share the work." + ], + [ + 52.92, + 55.983, + "Atlas checks the agenda. Iris reviews sign-ups." + ], + [ + 55.983, + 58.055, + "Nova handles preparation." + ], + [ + 59.12, + 64.28, + "Their results return to one conversation, as a briefing you can actually use." + ], + [ + 65.57, + 69.205, + "For recurring work, describe the task and when it should run." + ], + [ + 71.045, + 74.207, + "The Assistant adds your time zone and access rules." + ], + [ + 74.207, + 76.505, + "Check the schedule before saving." + ], + [ + 77.92, + 83.43, + "Try a run now. Get the preparation brief, then let the schedule handle the next one." + ], + [ + 87.595, + 90.355, + "Choose read only, ask first, or auto." + ], + [ + 92.22, + 96.28, + "For a change, check the exact resource and proposed update." + ], + [ + 97.17, + 100.38, + "Approve it. The name updates in your knowledge base." + ], + [ + 101.62, + 107.08, + "Longer tasks can keep running in the background, with progress right in the conversation." + ], + [ + 109.12, + 111.93, + "When it's ready, open the finished run sheet." + ], + [ + 113.57, + 117.205, + "Browser Skill takes the work into your connected browser." + ], + [ + 118.945, + 121.157, + "Fill the event form from your knowledge." + ], + [ + 121.157, + 124.805, + "Watch it happen, then review the draft before publishing." + ], + [ + 127.595, + 130.88, + "Looking for an image? Search your documents visually." + ], + [ + 132.045, + 135.98, + "See its description, extracted text, and the source document." + ], + [ + 137.595, + 140.705, + "Wiki Graph groups connected ideas by topic." + ], + [ + 141.995, + 144.93, + "Focus on a group to explore the connections." + ], + [ + 146.32, + 149.155, + "Then open a page and read it in context." + ], + [ + 150.57, + 154.355, + "And every sourced answer gives you a way to check the evidence." + ], + [ + 155.795, + 159.905, + "Preview the citation, then jump straight to the supporting passage." + ], + [ + 161.495, + 164.43, + "WeKnora. Ask. Create. Work together." + ] +]; diff --git a/misc/release-v0.9.0-video/release-film/narration.py b/misc/release-v0.9.0-video/release-film/narration.py new file mode 100644 index 00000000000..8006f82267e --- /dev/null +++ b/misc/release-v0.9.0-video/release-film/narration.py @@ -0,0 +1,112 @@ +"""Local English narration, model-timed captions and a reproducible speech bed. + +Kokoro af_heart is a stock synthetic voice; no person's voice is cloned. +Only the public, fictional film script is sent to the local model. +""" +import hashlib +import json +import os +from pathlib import Path +import re +import tempfile + +import espeakng_loader +import numpy as np +import soundfile as sf + +ROOT = Path(__file__).resolve().parent +OUT = ROOT.parent / "out/release-film" +CACHE = OUT / "narration" +CACHE.mkdir(parents=True, exist_ok=True) +os.environ.setdefault("HF_HOME", str(ROOT.parent / "media/hf-cache")) +# espeak's wheel contains a build-machine default. Give it a short directory +# containing espeak-ng-data, rather than the deeply nested workspace path. +data_root = Path(tempfile.gettempdir()) / "weknora-voice-espeak" +data_root.mkdir(exist_ok=True) +data_link = data_root / "espeak-ng-data" +if not data_link.exists(): + data_link.symlink_to(espeakng_loader.get_data_path(), target_is_directory=True) +os.environ["PHONEMIZER_ESPEAK_LIBRARY"] = espeakng_loader.get_library_path() +os.environ["PHONEMIZER_ESPEAK_DATA_PATH"] = str(data_root) +from misaki import espeak +espeak.EspeakWrapper.set_data_path(str(data_root)) +from mlx_audio.tts.utils import load_model + +MODEL = "mlx-community/Kokoro-82M-bf16" +VOICE = "af_heart" +RATE = 24000 +plan = json.loads((ROOT / "narration-plan.json").read_text()) +model = load_model(MODEL) +pipeline = model._get_pipeline("a") +bed = np.zeros(165 * RATE, dtype=np.float32) +captions, report = [], [] + +for index, item in enumerate(plan): + spoken = item.get("spoken", item["text"]) + available = item["end"] - item["start"] - .08 + speed = .98 + for attempt in range(3): + signature = hashlib.sha256(f"{MODEL}|{VOICE}|{speed}|{spoken}".encode()).hexdigest()[:16] + wav, metadata = CACHE / f"{index + 1:02d}-{signature}.wav", CACHE / f"{index + 1:02d}-{signature}.json" + if wav.exists() and metadata.exists(): + samples, rate = sf.read(wav, dtype="float32") + assert rate == RATE + tokens = json.loads(metadata.read_text()) + else: + parts, tokens, offset = [], [], 0 + for result in pipeline(spoken, voice=VOICE, speed=speed): + audio = np.array(result.audio).reshape(-1) + parts.append(audio) + for token in result.tokens: + if token.start_ts is not None and token.end_ts is not None: + tokens.append({"text": token.text, "space": token.whitespace, + "start": offset + token.start_ts, "end": offset + token.end_ts}) + offset += len(audio) / RATE + samples = np.concatenate(parts) + sf.write(wav, samples, RATE, subtype="FLOAT") + metadata.write_text(json.dumps(tokens, indent=2)) + seconds = len(samples) / RATE + if seconds <= available: + break + speed = round(speed * seconds / available * 1.015, 3) + if speed > 1.18: + raise ValueError(f"Line {index + 1} needs a shorter script: {seconds:.2f}s in {available:.2f}s") + assert seconds <= available, (index, seconds, available) + start = round(item["start"] * RATE) + bed[start:start + len(samples)] += samples + + # Retain model word timing; punctuation groups make calm, readable captions. + groups, group = [], [] + for token in tokens: + group.append(token) + text = "".join(t["text"] + t["space"] for t in group).strip() + if (len(text) >= 110 and token["space"]) or (token["text"] in ".!?" and len(text) >= 27): + groups.append(group) + group = [] + if group: + if groups and len("".join(t["text"] for t in group)) < 12: + groups[-1].extend(group) + else: + groups.append(group) + for group in groups: + text = "".join(t["text"] + t["space"] for t in group).strip() + text = re.sub(r"Wee\s+Nora", "WeKnora", text) + text = text.replace("zero point nine", "v0.9.0").replace("M C P", "MCP") + a = item["start"] + max(0, group[0]["start"] - .055) + b = min(item["end"], item["start"] + group[-1]["end"] + .13) + if captions and captions[-1][1] > a: + captions[-1][1] = round(a, 3) + captions.append([round(a, 3), round(b, 3), text]) + report.append({**item, "speed": speed, "duration": seconds, "file": wav.name, + "peakDbFS": round(float(20 * np.log10(max(np.max(np.abs(samples)), 1e-9))), 2), + "words": tokens}) + print(f"{index + 1:02d}/{len(plan)} {seconds:.2f}s / {available:.2f}s · speed {speed} · {item['text']}", flush=True) + +sf.write(OUT / "narration-raw.wav", bed, RATE, subtype="FLOAT") +(OUT / "narration-timing.json").write_text(json.dumps({"model": MODEL, "voice": VOICE, "rate": RATE, "duration": 165, "clips": report, "captions": captions}, indent=2)) +(ROOT / "narration.js").write_text("// Generated from narration.py and model word durations.\nexport const captions = " + json.dumps(captions, indent=2) + ";\n") +def stamp(t): + ms = round(t * 1000) + return f"{ms // 3600000:02}:{ms // 60000 % 60:02}:{ms // 1000 % 60:02},{ms % 1000:03}" +(OUT / "weknora-v0.9.0-en.srt").write_text("\n\n".join(f"{i+1}\n{stamp(a)} --> {stamp(b)}\n{text}" for i, (a, b, text) in enumerate(captions)) + "\n") +print(f"Saved {len(captions)} captions and 165s narration bed.", flush=True) diff --git a/misc/release-v0.9.0-video/release-film/reference.css b/misc/release-v0.9.0-video/release-film/reference.css new file mode 100644 index 00000000000..27398fa9030 --- /dev/null +++ b/misc/release-v0.9.0-video/release-film/reference.css @@ -0,0 +1,100 @@ +/* Adapted from the original WeKnora intro film, misc/intro-video/index.html. */ + +:root{ + --ink:#101f38; --ink-deep:#0a1526; --soft:#40536f; --mute:#6d7d94; + --gold:#b8863b; --gold-l:#d9a94f; --paper:#fdfcfa; --paper2:#f5f3ee; --paper3:#edeae2; + --rule:rgba(16,31,56,.12); + --g:#07c05f; --t1:rgba(0,0,0,.9); --t2:rgba(0,0,0,.6); --t3:rgba(0,0,0,.4); --line:#e7e7e7; + --sans:"Inter",-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC",sans-serif; + --serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif; + --mono:"SF Mono",ui-monospace,Menlo,monospace; +} +*{box-sizing:border-box} +html,body{margin:0;background:#000} +body{font-family:var(--sans);-webkit-font-smoothing:antialiased} +#stage{position:relative;width:1920px;height:1080px;overflow:hidden;background:var(--paper2)} +.layer{position:absolute;inset:0} +section{position:absolute;inset:0;display:none} +.bgdark{background:radial-gradient(ellipse 80% 70% at 50% 45%,#152a4a 0%,#0a1526 60%,#070f1c 100%)} +.bgpaper{background:linear-gradient(180deg,#fdfcfa 0%,#f5f3ee 100%)} +.grain{background-image:radial-gradient(rgba(16,31,56,.05) 1px,transparent 1px);background-size:28px 28px} + +/* ---------- shared editorial ---------- */ +.eyebrow{font-family:var(--mono);font-size:19px;letter-spacing:.16em;color:var(--gold);font-weight:500} +.h1{font-family:var(--serif);font-weight:500;letter-spacing:-.03em;color:var(--ink)} +.hdr{position:absolute;left:120px;top:58px;right:120px} +.hdr .eyebrow{margin-bottom:14px} +.hdr .h1{font-size:58px;line-height:1.1} +.hdr .sub{font-size:23px;color:var(--soft);margin-top:14px;line-height:1.4;max-width:1500px} +.num{display:inline-block;color:var(--gold)} + + +.vp{position:absolute;left:0;top:250px;width:1920px;height:830px;overflow:hidden} +.win{position:absolute;left:0;top:0;width:1680px;height:800px;transform-origin:0 0;background:#fff;border-radius:16px;box-shadow:0 50px 100px -30px rgba(16,31,56,.35),0 0 0 1px rgba(16,31,56,.1);overflow:hidden} +.wbar{height:44px;background:#f3f2ef;border-bottom:1px solid #e4e2dc;display:flex;align-items:center;padding:0 18px;gap:9px} +.wbar i{width:13px;height:13px;border-radius:50%;background:#e2ded6;display:block} +.wbar .url svg{width:14px;height:14px} +.wbar .url{margin-left:24px;flex:0 0 520px;white-space:nowrap;height:28px;border-radius:8px;background:#fff;border:1px solid #e4e2dc;font:15px var(--sans);color:#666;display:flex;align-items:center;padding:0 12px;gap:8px} +.app{position:absolute;top:44px;left:0;right:0;bottom:0;display:flex} +.side{width:250px;flex:none;background:#f7f7f7;border-right:1px solid #ececec;padding:18px 12px;position:relative;font-size:18px;color:var(--t1)} +.side .lg{height:38px;display:flex;align-items:center;justify-content:space-between;padding:0 8px 0 10px;margin-bottom:16px} +.side .lg img{height:30px} +.side .lg span{display:flex;gap:10px;color:#555} +.side .lg svg{width:20px;height:20px} +.nav{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:8px;font-weight:500} +.nav svg{width:21px;height:21px} +.nav.on{background:#ebebeb;color:var(--g)} +.side .sec{font-size:13px;color:var(--t3);margin:18px 12px 8px} +.side .hist{padding:9px 12px;border-radius:8px;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--t1)} +.side .hist.on{background:#ebebeb;color:var(--g)} +.side .me{position:absolute;left:14px;right:14px;bottom:16px;display:flex;align-items:center;gap:10px;font-size:15px} +.side .me b{width:30px;height:30px;border-radius:50%;background:var(--g);color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px} +.side .me small{display:block;color:var(--t3);font-size:13px} +.main{flex:1;position:relative;overflow:hidden} +.ttl{position:absolute;left:28px;top:18px;font-size:17px;color:var(--t2)} +svg.i{width:1em;height:1em;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round} + +/* chat */ +.col{position:absolute;left:50%;width:980px;margin-left:-490px;top:64px;bottom:150px;overflow:hidden} +.col>.inner{position:absolute;left:0;right:0;top:0} +.umsg{display:flex;justify-content:flex-end} +.umsg div{background:#f2f3f5;border-radius:14px;padding:14px 20px;font-size:20px;color:var(--t1);max-width:760px;line-height:1.45} +.sum{font-size:17px;color:var(--t2);margin:24px 0 14px;display:flex;align-items:center;gap:6px} +.sum b{color:var(--t1);font-weight:600} +.steps{position:relative;padding-left:4px} +.step{display:flex;gap:18px;position:relative;padding-bottom:16px} +.step .si{width:26px;height:26px;flex:none;color:#888;position:relative;z-index:1;background:#fff;margin-top:1px} +.step .si svg{width:26px;height:26px} +.step .st{font-size:18px;color:#555;line-height:1.45} +.step .st small{display:block;color:#888;font-size:16px;margin-top:3px} +.step:before{content:"";position:absolute;left:12.5px;top:30px;bottom:2px;width:1.5px;background:#e3e3e3} +.step:last-child:before{display:none} +.step.run .si{color:var(--g)} +.step.run .si:after{content:"";position:absolute;inset:-5px;border-radius:50%;border:2px solid rgba(7,192,95,.18);border-top-color:var(--g);transform:rotate(var(--rot,0deg))} +.rip{position:absolute;width:56px;height:56px;margin:-28px 0 0 -28px;border-radius:50%;border:3px solid rgba(7,192,95,.9);background:rgba(7,192,95,.18);pointer-events:none;z-index:30;opacity:0} +.rip.blue{border-color:rgba(26,115,232,.9);background:rgba(26,115,232,.16)} +.wcur{position:absolute;width:30px;height:30px;z-index:40;pointer-events:none;filter:drop-shadow(0 2px 3px rgba(0,0,0,.35));opacity:0} +.ans{font-size:20px;line-height:1.62;color:var(--t1);margin-top:6px} +.ans h3{font-size:23px;margin:18px 0 6px;font-weight:650} +.ans p{margin:0 0 10px} +.ans b{font-weight:650} +.cite{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:1px 10px;font-size:15px;background:rgba(0,0,0,.045);box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);color:#333;transform:translateY(-2px);margin-left:4px;white-space:nowrap} +.cite svg{width:14px;height:14px;opacity:.7} +.cite.hot{background:rgba(7,192,95,.12);box-shadow:inset 0 0 0 1.5px var(--g);color:#067a3d} +.inbox{position:absolute;left:50%;width:980px;margin-left:-490px;bottom:26px;height:118px;border:1px solid #e3e3e3;border-radius:16px;background:#fff;box-shadow:0 6px 24px rgba(0,0,0,.05);padding:16px 18px} +.inbox .ph{font-size:19px;color:#aaa} +.inbox .ph.typing{color:var(--t1)} +.inbox .bar{position:absolute;left:16px;right:16px;bottom:12px;display:flex;align-items:center;gap:14px;color:#555;font-size:15px} +.inbox .pill{border:1px solid #e3e3e3;border-radius:8px;padding:5px 12px;display:flex;align-items:center;gap:6px} +.inbox .bar svg{width:20px;height:20px} +.inbox .send{margin-left:auto;display:flex;align-items:center;gap:12px} +.inbox .send i{width:34px;height:34px;border-radius:9px;background:#b4ecd0;display:flex;align-items:center;justify-content:center;color:#fff} +.inbox .send i.on{background:var(--g)} +.caret{display:inline-block;width:2px;height:1.05em;background:var(--g);vertical-align:-3px;margin-left:1px} + +/* popover */ +.pop{position:absolute;width:560px;background:#fff;border-radius:14px;box-shadow:0 24px 60px -12px rgba(0,0,0,.28),0 0 0 1px rgba(0,0,0,.07);padding:20px 22px;font-size:17px;line-height:1.55;color:#333} +.pop .ph{display:flex;align-items:center;gap:10px;font-weight:600;font-size:17px;color:var(--t1);margin-bottom:4px} +.pop .ph svg{width:20px;height:20px;color:var(--g)} +.pop .pm{font-size:14px;color:#999;margin-bottom:12px} +.pop mark{background:rgba(255,196,0,.28);color:inherit;padding:1px 0} diff --git a/misc/release-v0.9.0-video/release-film/render.mjs b/misc/release-v0.9.0-video/release-film/render.mjs new file mode 100644 index 00000000000..813630fd756 --- /dev/null +++ b/misc/release-v0.9.0-video/release-film/render.mjs @@ -0,0 +1,48 @@ +// Offline media renderer. Uses an empty context and authored SVG only. +import {chromium} from 'playwright-core'; +import {spawn} from 'node:child_process'; +import {once} from 'node:events'; +import {mkdir,writeFile} from 'node:fs/promises'; +import {fileURLToPath} from 'node:url'; +import {dirname,resolve} from 'node:path'; +const root=dirname(fileURLToPath(import.meta.url)),out=resolve(root,'../out/release-film'); +await mkdir(out,{recursive:true});const mode=process.argv[2]||'stills'; +const browser=await chromium.launch({executablePath:'/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'}); +const errors=[];const checks=[]; +async function page(){const p=await browser.newPage({viewport:{width:1920,height:1080},deviceScaleFactor:1});p.on('pageerror',e=>errors.push(e.message));p.on('console',m=>{if(m.type()==='error')errors.push(m.text())});await p.route('**/*',r=>new URL(r.request().url()).origin==='http://127.0.0.1:3110'?r.continue():r.abort());await p.goto('http://127.0.0.1:3110/?render');await p.waitForFunction(()=>window.film?.ready);return p;} +if(mode==='stills'){ + const p=await page(); + for(const t of (process.argv.slice(3).length?process.argv.slice(3).map(Number):[0,3.3,6.9,10.7,17,21.3,22.7,23.5,25,26.65,27.1,27.7,29,32,35,38.7,41.8,46,50,53,56,59,64,65.7,66.5,68,69.65,70.1,70.7,74,77,80,84,86,87.8,92.5,94.5,97.7,100,103,107,110.8,112,113.8,115.4,118.5,120.5,122.5,124.8,126,127.7,129,130.4,131.4,132.3,135.5,136.4,137.8,140,142.3,145,146.1,147.8,149.2,150.7,152,154.4,155.5,156.3,157.3,159.3,160.4,162,164])){ + await p.evaluate(t=>window.film.seek(t),t);await p.screenshot({path:resolve(out,`frame-${t.toFixed(2)}.png`)}); + checks.push(await p.evaluate(t=>({t,images:[...document.querySelectorAll('img')].map(e=>e.getAttribute('src'))}),t)); + } + const interactionChecks=[]; + for(const item of await p.evaluate(()=>window.film.interactions)){ + const scene=await p.evaluate(key=>window.film.scenes.find(s=>s.key===key),item.scene); + for(const [phase,local] of [['typing',(item.start+item.end)/2],['ready',item.send-.08],['sent',item.send+.45]]){ + await p.evaluate(t=>window.film.seek(t),scene.a+local); + const count=await p.locator(`[data-typewriter="${item.id||item.scene}"]`).getAttribute('data-chars'); + const ok=phase==='typing'?Number(count)>0&&Number(count)!x.ok))errors.push('Typewriter, send or clearing check failed'); + await writeFile(resolve(out,'visual-checks.json'),JSON.stringify(checks,null,2)); + await writeFile(resolve(out,'timing.json'),JSON.stringify(await p.evaluate(()=>({duration:window.film.duration,scenes:window.film.scenes,captions:window.film.captions,interactions:window.film.interactions,keyEvents:window.film.keyEvents})),null,2)); + await p.close(); +}else{ + const fps=mode==='draft'?24:60; + const probe=await page(),duration=await probe.evaluate(()=>window.film.duration);await probe.close(); + const starts=[0,55,110],lengths=[55,55,duration-110]; + await Promise.all(starts.map(async(start,part)=>{ + const p=await page(); + const encoder=spawn('/opt/homebrew/bin/ffmpeg',['-v','error','-y','-f','image2pipe','-framerate',String(fps),'-i','-','-c:v','libx264','-preset','fast','-crf',mode==='draft'?'21':'18','-pix_fmt','yuv420p','-color_primaries','bt709','-color_trc','bt709','-colorspace','bt709','-movflags','+faststart','-an',resolve(out,`${mode}-${part}.mp4`)],{stdio:['pipe','ignore','inherit']}); + const done=once(encoder,'close'); + for(let i=0;iwindow.film.seek(t),start+i/fps);if(!encoder.stdin.write(await p.screenshot({type:'png'})))await once(encoder.stdin,'drain');if(i&&i%(fps*10)===0)console.log(`Part ${part+1}: ${i/fps}s`);} + encoder.stdin.end();const [code]=await done;if(code!==0)throw Error('Video encoding failed');await p.close();console.log(`Part ${part+1} complete`); + })); + await writeFile(resolve(out,`${mode}-concat.txt`),starts.map((_,i)=>`file '${mode}-${i}.mp4'`).join('\n')); + const concat=spawn('/opt/homebrew/bin/ffmpeg',['-v','error','-y','-f','concat','-safe','0','-i',resolve(out,`${mode}-concat.txt`),'-c','copy','-movflags','+faststart',resolve(out,`${mode}-silent.mp4`)],{stdio:'inherit'});const [code]=await once(concat,'close');if(code!==0)throw Error('Concatenation failed'); +} +await browser.close();await writeFile(resolve(out,`${mode}-errors.json`),JSON.stringify([...new Set(errors)],null,2));if(errors.length)throw Error([...new Set(errors)].join('\n'));console.log(mode+' complete'); diff --git a/misc/release-v0.9.0-video/release-film/requirements-voice.txt b/misc/release-v0.9.0-video/release-film/requirements-voice.txt new file mode 100644 index 00000000000..91e31f93aa6 --- /dev/null +++ b/misc/release-v0.9.0-video/release-film/requirements-voice.txt @@ -0,0 +1,7 @@ +mlx-audio==0.6.2 +misaki[en]==0.9.4 +espeakng-loader==0.2.4 +phonemizer-fork==3.3.2 +numpy==2.5.4 +soundfile==0.14.0 +en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl diff --git a/misc/release-v0.9.0-video/release-film/sfx.py b/misc/release-v0.9.0-video/release-film/sfx.py new file mode 100644 index 00000000000..034de01450a --- /dev/null +++ b/misc/release-v0.9.0-video/release-film/sfx.py @@ -0,0 +1,58 @@ +"""Typing only: a crisp, short keyboard press for each visible input character. + +The exact character timestamps come from film.js, quantized to the export frame +rate. This stem has no music, ambience or voice; mix.py combines it with the +separately generated narration and ducks it while the narrator speaks. +""" +import json +import wave +from pathlib import Path +import numpy as np + +OUT = Path(__file__).resolve().parent.parent / "out" / "release-film" +timing = json.loads((OUT / "timing.json").read_text()) +SR = 48000 +rng = np.random.default_rng(9090) +audio = np.zeros((round(timing["duration"] * SR), 2), dtype=np.float64) +coverage = np.zeros(len(audio), dtype=bool) +for event in timing["keyEvents"]: + length = .038 + t = np.arange(round(SR * length)) / SR + # A short contact transient: retain the clear upper-mid click while removing + # the low keycap thump that made the accepted version sound muffled. + raw = rng.normal(size=len(t)) + kernel = np.array([1., 3., 4., 3., 1.]) / 12 + bright = np.convolve(raw, kernel, mode="same") + body = np.convolve(bright, np.ones(19) / 19, mode="same") + contact = bright - body * .94 + attack = np.minimum(t / .00018, 1) + press = contact * np.exp(-t / .0037) * attack + velocity = rng.uniform(.80, 1.0) * (.68 if event["char"] == " " else 1) + for frequency, gain, decay in [(760, .009, .004), (2350, .06, .003), (3900, .035, .0018)]: + press += gain * np.sin(2 * np.pi * frequency * rng.uniform(.95, 1.05) * t) * np.exp(-t / decay) * attack + release = np.maximum(t - .016, 0) + press += contact * .12 * np.exp(-release / .003) * (t >= .016) * np.minimum(release / .0003, 1) + press *= np.minimum((length - t) / .005, 1).clip(0, 1) * velocity + pan = rng.uniform(.46, .54) + i = round(event["t"] * SR) + j = min(len(audio), i + len(press)) + audio[i:j, 0] += press[:j-i] * np.sqrt(1-pan) + audio[i:j, 1] += press[:j-i] * np.sqrt(pan) + coverage[i:j] = True + +# Conservative peak level; do not loudness-normalize sparse typing into loud noise. +audio *= 10 ** (-13.5 / 20) / max(np.abs(audio).max(), 1e-9) +assert np.max(np.abs(audio[~coverage])) == 0 +with wave.open(str(OUT / "typing.wav"), "wb") as wav: + wav.setnchannels(2) + wav.setsampwidth(2) + wav.setframerate(SR) + wav.writeframes((audio * 32767).astype('I4s', data[offset:offset+8]) + if size == 1: + size = struct.unpack('>Q', data[offset+8:offset+16])[0] + atoms.append(name.decode()) + offset += size or len(data)-offset +assert atoms.index('moov') < atoms.index('mdat') +measure = subprocess.run([ffmpeg, '-hide_banner', '-i', str(movie), '-vn', '-af', + 'loudnorm=I=-18:TP=-2:LRA=7:print_format=json', '-f', 'null', '-'], capture_output=True, text=True, check=True).stderr +levels = json.JSONDecoder().raw_decode(measure[measure.rfind('{'):])[0] +assert float(levels['input_tp']) < -1 +stills = OUT / 'encoded-narrated' +stills.mkdir(exist_ok=True) +times = [0, 1.5, 7, 19, 26.6, 33, 38.7, 43, 54.95, 55, 62, 70, 76, 83, 94.2, 96.6, 97.5, 98.2, 100, 109.95, 110, 117.8, 119.3, 120.9, 123.4, 125, 133.4, 139, 145, 148, 155, 157, 159, 164] +for t in times: + subprocess.run([ffmpeg, '-v', 'error', '-y', '-ss', str(t), '-i', str(movie), '-frames:v', '1', str(stills / f'{t:06.2f}.png')], check=True) +report = {'file': movie.name, 'duration': float(probe['format']['duration']), 'width': 1920, 'height': 1080, + 'fps': 60, 'frames': int(video['nb_frames']), 'videoCodec': 'h264', 'audioCodec': 'aac', 'sampleRate': 48000, + 'channels': 2, 'fullDecodePassed': True, 'fastStart': True, 'encodedStills': len(times), + 'integratedLufs': float(levels['input_i']), 'truePeakDbTP': float(levels['input_tp']), + 'bytes': len(data), 'sha256': hashlib.sha256(data).hexdigest()} +(OUT / 'validation.json').write_text(json.dumps(report, indent=2)) +print(json.dumps(report, indent=2)) diff --git a/website-docs/01-getting-started/01-introduction.md b/website-docs/01-getting-started/01-introduction.md index 46099b49271..ad2e606e20d 100644 --- a/website-docs/01-getting-started/01-introduction.md +++ b/website-docs/01-getting-started/01-introduction.md @@ -11,6 +11,16 @@ WeKnora(维娜拉)是腾讯开源的知识库问答系统,支持导入 PDF caption="WeKnora 主界面:左侧知识库与会话,右侧问答区" hint="展示登录后的主界面全貌:侧边栏(知识库、智能体、设置入口)与一轮带引用的问答。" /> + +## v0.9.0 新增能力 + +- [WeKnora 助手](../03-features/26-weknora-assistant.md):解答版本、功能与配置问题,结合当前页面,以你的身份检索资料并处理任务。 +- [多智能体协作](../03-features/26-weknora-assistant.md#collaboration):独立处理子任务,再汇总结果。 +- [自动化](../03-features/27-automations.md):按一次性或周期计划执行重复工作。 +- [执行权限与审批](../03-features/28-agent-permissions.md):选择只读、修改前确认或自动执行,管理有范围的授权。 + +完整变化与升级要求见 [v0.9.0 版本说明](../07-releases/v0.9.0.md)。 + ## 适用场景 {#weknora-解决什么问题} | 需求 | 功能 | diff --git a/website-docs/01-getting-started/02-installation.md b/website-docs/01-getting-started/02-installation.md index e340130c064..074d4171ca9 100644 --- a/website-docs/01-getting-started/02-installation.md +++ b/website-docs/01-getting-started/02-installation.md @@ -74,7 +74,7 @@ docker compose ps # 等所有服务变成 healthy/running > 如果数据库仍为 ParadeDB `v0.22.2-pg17`,先按 [ParadeDB 升级说明](06-paradedb-upgrade.md) 停止写入、备份、保留数据卷更换镜像并完成 `pg_search` 扩展升级,再恢复应用。仅替换镜像不会更新已有数据库的扩展 SQL;迁移 `000099` 会处理 WeKnora 库中符合条件的 `0.22.2–0.22.5`,其他数据库仍需单独检查。 ```bash -# 在 .env 中将 WEKNORA_VERSION 设为目标版本(如 0.8.3),或保持 latest +# 在 .env 中将 WEKNORA_VERSION 设为目标版本(如 0.9.0),或保持 latest docker compose pull docker compose up -d ``` @@ -190,7 +190,7 @@ PLAYWRIGHT_WEBKIT_DOWNLOAD_HOST=https://your-playwright-mirror.example.com \ ## 六、Helm 部署(helm/) -`helm/Chart.yaml`:apiVersion v2,chart 名 `weknora`,appVersion 跟随版本(如 v0.8.3),要求 Kubernetes >= 1.25.0。 +`helm/Chart.yaml`:apiVersion v2,chart 名 `weknora`,appVersion 跟随版本(如 v0.9.0),要求 Kubernetes >= 1.25.0。 Chart 内包含五个组件:`app`(`wechatopenai/weknora-app`)、`frontend`(`wechatopenai/weknora-ui`)、`docreader`、`postgresql`(ParadeDB 镜像,chart 默认 `paradedb/paradedb:v0.18.9-pg17`,与 Compose 的版本不同)、`redis`(`redis:7-alpine`),并可选启用 `minio` 与 `neo4j`。 diff --git a/website-docs/01-getting-started/03-quickstart.md b/website-docs/01-getting-started/03-quickstart.md index 3939074d35b..31b9e0f85bd 100644 --- a/website-docs/01-getting-started/03-quickstart.md +++ b/website-docs/01-getting-started/03-quickstart.md @@ -4,6 +4,10 @@ 使用前需先完成[安装部署](02-installation.md),并准备可用的对话模型和向量模型。 +::: tip 需要使用帮助? +在页面侧边栏打开 [WeKnora 助手](../03-features/26-weknora-assistant.md),可查询产品文档、检查解析结果或获得配置说明。首次使用建议选择「只读」或「修改前确认」,先核对操作范围。 +::: + ## 开始之前 {#_1-开始之前} - 启动服务:按[安装部署](./02-installation.md)启动后,前端在 `http://localhost`,后端在 `http://localhost:8080`; diff --git a/website-docs/01-getting-started/04-configuration.md b/website-docs/01-getting-started/04-configuration.md index bfe7cf01dfa..0900eff3a7a 100644 --- a/website-docs/01-getting-started/04-configuration.md +++ b/website-docs/01-getting-started/04-configuration.md @@ -213,6 +213,7 @@ AWS S3 的 `S3_ACCESS_KEY` / `S3_SECRET_KEY` 可以**同时留空**,此时走 | `OLLAMA_OPTIONAL` | true | Ollama 不可用时仅告警不阻断启动 | | `BATCH_EMBED_SIZE` | 空 | 批量 embedding 大小 | | `VLM_HTTP_TIMEOUT_SECONDS` | 180 | VLM 单次请求超时 | +| `GENERATE_QUESTIONS_MAX_TOKENS` | 2048 | 文档问题生成的补全预算,推理模型需同时容纳隐藏思考 token | | `VLM_MAX_TOKENS` | 5000 | 远程 VLM 单次请求的补全 token 预算(含模型隐藏的思考 token,整页扫描件被截断时报 `finish_reason=length` 可调大) | | `BUILTIN_MODELS_CONFIG` | config/builtin_models.yaml | 内置模型声明文件路径(见下文) | | `MODELS_CONFIG` | config/models.json | 模型厂商目录的部署叠加文件路径(补充厂商、覆盖地址或模型参数),格式见[模型管理](../03-features/06-models.md) | @@ -284,10 +285,26 @@ AWS S3 的 `S3_ACCESS_KEY` / `S3_SECRET_KEY` 可以**同时留空**,此时走 | `DOCREADER_PDF_RENDER_DPI` / `DOCREADER_PDF_JPEG_QUALITY` / `DOCREADER_PDF_RENDER_MAX_EDGE` | 200 / 85 / 2000 | PDF 渲染 | | `DOCREADER_PDF_FORCE_SCANNED` / `DOCREADER_PDF_SCAN_IMAGE_RATIO` / `DOCREADER_PDF_SCAN_MIN_CHARS` | false / 代码默认 | 扫描件判定 | | `DOCREADER_ODL_HYBRID` / `DOCREADER_ODL_HYBRID_URL` / `DOCREADER_ODL_HYBRID_MODE` / `DOCREADER_ODL_HYBRID_FALLBACK` | off / http://odl-hybrid:5002 / auto / false | OpenDataLoader 混合解析 | +| `DOCREADER_XLSX_PERCENT_AS_TEXT` / `DOCREADER_XLSX_PCT_ROW_HINT_MIN` | false / 0 | 可选百分比显示文本和同行推断;开启后可能把数值转为字符串,见[解析说明](../03-features/03-document-parsing.md) | | `DOCREADER_HTML_MAIN_CONTENT` | false | 上传的 HTML 文件只索引正文(与 URL 导入同一抽取策略;抽取不足时回退整页转换) | | 其余 `DOCREADER_PDF_*`(词距/边栏/隐藏文本/嵌入图/图表区等 20+ 项) | 见 `docker-compose.yml` docreader 段注释 | PDF 版式与抽取精调 | | `DOCREADER_EXTERNAL_HTTP_PROXY` / `_HTTPS_PROXY` | 空 | docreader 出站抓取代理 | +### OCR 图片预处理 {#image-preprocess} + +这些变量限制 Docreader 预处理资源,不会自动开启知识库的预处理选项。 + +| 名称 | 默认值 | 说明 | +| --- | --- | --- | +| `DOCREADER_PREPROCESS_MAX_WORKERS` | 1 | 最大并发预处理数 | +| `DOCREADER_PREPROCESS_TIMEOUT_SECONDS` | 30 | 单次预处理时限 | +| `DOCREADER_PREPROCESS_THREADS` | 2 | 每个任务的工作线程数 | +| `DOCREADER_PREPROCESS_MEMORY_MB` | 2048 | 进程内存限制,MiB | +| `DOCREADER_PREPROCESS_MAX_PIXELS` | 16000000 | 输入像素上限 | +| `DOCREADER_PREPROCESS_MAX_EDGE` / `DOCREADER_PREPROCESS_PROBE_EDGE` | 2000 / 2000 | 输出与探测图像的最大边长 | + +知识库按 `off` / `auto` / `always` 选择预处理方式。繁忙或处理失败时回退原图,见[文档解析](../03-features/03-document-parsing.md#_4-图片处理与多模态分工)。 + ### 描述生成与出站连接 | 环境变量 | 默认 | 作用 | @@ -300,6 +317,7 @@ AWS S3 的 `S3_ACCESS_KEY` / `S3_SECRET_KEY` 可以**同时留空**,此时走 | 名称 | 默认值 | 说明 | | --- | --- | --- | | Sandbox 配置 | 设置页按空间维护 | 后端、凭据、模板、超时和私网访问策略按空间保存 | +| `WEKNORA_SANDBOX_USER_ALLOCATION` | 未启用 | 设为 `enabled` 才开放按用户复用沙箱,需要 Redis;先升级全部副本,再开启并配置,见[分配方式](../03-features/22-skills-sandbox.md#user-sandbox) | | `WEKNORA_SANDBOX_DOCKER_ENABLED` | false | Docker 沙箱后端回退开关。系统管理员也可在「设置 → 系统设置 → 网络安全」打开(DB 优先,立即生效)。默认关闭,因为本机 `docker.sock` 等同宿主机 root | | `WEKNORA_AGENT_LLM_TIMEOUT` | 120s | Agent 单次 LLM 调用超时(Go duration 或纯数字秒) | | `WEKNORA_WEB_FETCH_TIMEOUT` | 3m | Agent `web_fetch` 单页抓取预算(Go duration 或纯数字秒)。HTTP 与 chromedp 共用这一预算,不叠加。空值、无效值或非正数使用默认值。工具包装层再多等 5 秒。快速回答管道仍为 15s,不使用此项 | diff --git a/website-docs/02-architecture/01-overview.md b/website-docs/02-architecture/01-overview.md index 81ad9fa9958..c43aa582d5e 100644 --- a/website-docs/02-architecture/01-overview.md +++ b/website-docs/02-architecture/01-overview.md @@ -2,6 +2,13 @@ WeKnora 由 Web 前端、Go 主服务和 Python 文档解析服务组成,使用数据库保存业务数据,通过 Redis 调度异步任务。向量存储、对象存储、知识图谱和模型服务可按部署需求配置。 + +## 助手与持续任务 + +内置 WeKnora 助手在现有 Agent 引擎之上使用管理操作目录和随应用打包的产品文档。页面上下文帮助理解任务,实际操作仍经过角色与资源授权。协作实例、审批及运行挂起状态会持久化;自动化调度器以任务所有者身份启动助手会话,并保存运行记录和站内通知。 + +用户入口见[助手](../03-features/26-weknora-assistant.md)、[自动化](../03-features/27-automations.md)和[执行权限](../03-features/28-agent-permissions.md)。 + ## 系统组成 {#_1-系统组成} WeKnora 采用"主服务 + 前端 + 文档解析微服务"的三进程核心架构,外加 PostgreSQL 与 Redis 两个基础设施依赖;其余组件(向量库、知识图谱、联网搜索等)均为可选,通过 Docker Compose profile 按需启用。 diff --git a/website-docs/02-architecture/02-backend-design.md b/website-docs/02-architecture/02-backend-design.md index 08c035ba90f..e61e167aa8e 100644 --- a/website-docs/02-architecture/02-backend-design.md +++ b/website-docs/02-architecture/02-backend-design.md @@ -2,6 +2,13 @@ Go 后端以 Handler、Service、Repository 和基础设施分层组织请求处理,通过 uber/dig 装配依赖。`cmd/server` 负责启动与退出,`internal/` 实现路由鉴权、业务服务和存储访问。 + +## 助手与任务运行模块 + +`internal/agent/policy` 统一判断读取、探测、写入和破坏性操作;`agent_prompts` 与 `agent_run_suspensions` 保存可恢复的人工交互,`agent_grants` 保存有范围的授权。`agent_collaborations` 记录子智能体状态,自动化服务维护任务计划、运行和通知。后台 Shell 使用独立工作标识及等待、取消接口,不等同于交互终端进程。 + +这些运行能力与普通文档入库队列各有职责,不能把恢复待审批状态理解成可重放任意外部写入。 + ## 分层架构 {#_1-分层架构} 后端遵循经典的 **Handler → Service → Repository → 数据库** 四层结构,层间依赖全部通过接口(`internal/types/interfaces/`)解耦,由 DI 容器在启动时装配: diff --git a/website-docs/02-architecture/03-document-pipeline.md b/website-docs/02-architecture/03-document-pipeline.md index 1c54e383639..df6e5460c22 100644 --- a/website-docs/02-architecture/03-document-pipeline.md +++ b/website-docs/02-architecture/03-document-pipeline.md @@ -2,6 +2,11 @@ 文档通过文件上传、URL 导入或手动创建进入系统。服务端保存内容并提交处理任务,依次完成解析、分块和索引,再按知识库配置生成摘要、问题、图谱及 Wiki。状态和进度随处理阶段更新,失败任务由重试与巡检机制恢复。 + +## 图片处理管线 + +图片保存后,按知识库配置选择 `default` 或 `smartocr` 管线,分别执行手动动作或观察后决策。OCR 预处理默认关闭,可按知识库开启;任务提交时保存本轮管线配置,后续修改不会把已经提交的任务切换到另一条管线。处理轨迹记录实际管线和步骤结果,详见[图片处理](../03-features/03-document-parsing.md#_4-图片处理与多模态分工)。 + ## 总体架构 {#_1-总体架构} WeKnora 的入库链路是一条**基于 Asynq(Redis)的分布式异步管道**。HTTP Handler 只负责落库与入队,所有耗时工作(解析、向量化、LLM 富化)都由独立的 Worker 池消费队列完成。 diff --git a/website-docs/02-architecture/05-async-tasks.md b/website-docs/02-architecture/05-async-tasks.md index 99b38d5fd2a..adaea8b79cb 100644 --- a/website-docs/02-architecture/05-async-tasks.md +++ b/website-docs/02-architecture/05-async-tasks.md @@ -2,6 +2,13 @@ 文档解析、索引构建、摘要与问题生成、图谱提取、Wiki 生成、数据源同步及批量操作由任务系统调度。标准部署使用 [asynq](https://github.com/hibiken/asynq) 和 Redis;Lite 模式使用无 Redis 的执行器。两种模式共用任务处理逻辑,执行方式和运维能力有所不同。 + +## 自动化与后台工作 + +本文主要介绍文档、Wiki 等业务队列。v0.9.0 的自动化计划、协作智能体和后台 Shell 使用各自的运行生命周期:自动化由助手调度执行,审批等待可持久化,Shell 通过 `work_id` 查询与取消。服务中断后的不确定写入不会作为普通幂等入库任务自动重放。 + +用户配置见[自动化](../03-features/27-automations.md),接口见[后台任务](../04-api/02-api-chat.md#assistant-runtime)。 + ## 总体架构:双执行模式 {#_1-总体架构-双执行模式} WeKnora 有两种任务执行模式,通过部署形态选择: diff --git a/website-docs/03-features/02-knowledge-base.md b/website-docs/03-features/02-knowledge-base.md index b2735ec7a97..15ac899c113 100644 --- a/website-docs/03-features/02-knowledge-base.md +++ b/website-docs/03-features/02-knowledge-base.md @@ -207,11 +207,13 @@ graph TB | 字段 | 类型 | 默认 | 说明 | | --- | --- | --- | --- | | `model_id` | string | - | 图片理解使用的 VLM 模型 ID(参与模型用量追踪) | -| `image_attrs_enabled` | bool | false | 图片属性观察管线开关。关闭(默认)=历史行为:每张图片各发一次描述请求、各发一次 OCR 请求,不做属性观察;开启后第一轮「属性观察+描述」,再由代码纯函数按观察结果决定该图是否值得再跑一轮 OCR | +| `image_pipeline` | string | 兼容旧配置 | 显式选择 `default`(手动)或 `smartocr`(智能 OCR),优先于旧开关 | +| `image_pipeline_params` | object | 各管线默认值 | 对应管线的参数,例如 `default.caption_enabled`、`default.ocr_enabled`;参数模式见 `GET /api/v1/image-pipelines` | +| `image_attrs_enabled` | bool | false | 兼容字段;没有显式管线时,false 选择手动管线,true 选择智能 OCR | | `image_actions` | object | 见下 | OCR 触发条件:`{ ocr: { on: ImageAttrCondition[], on_unobserved: bool } }`。`on` 为「属性=值」触发条件列表;`on_unobserved` 为属性未被模型观察时的保守兜底(默认 true=仍 OCR) | | `image_vector_enabled` | bool | false | 图片向量开关。开启且知识库的向量模型能处理图片(模型「图片输入」能力)时,生成图片描述之后再用向量模型直接对图片编码、存一条图片向量,检索时一并召回;见下文「图片向量」 | -开启 `image_attrs_enabled` 后,模型**不再对图片分类**,只逐项「观察」属性并产出描述。本期激活两个观察项(完整注册表见 `GET /api/v1/image-attrs/schema`,只读、需 Viewer 权限;该注册表是全局的,不随知识库变化): +选择 `smartocr` 后,模型逐项观察属性并产出描述。OCR 决策主要使用以下观察项;开启自动预处理时还会观察版面属性(完整注册表见 `GET /api/v1/image-attrs/schema`,只读、需 Viewer 权限;该注册表是全局的,不随知识库变化): | 属性 | 取值 | 含义 | | --- | --- | --- | @@ -226,15 +228,15 @@ OCR 决策是代码纯函数 `DecideOCR`(`internal/application/service/image_a 模型答非所问或属性缺失时按 `on_unobserved` 策略处理,默认继续 OCR;若将其设为 `false`,未观察到属性的图片也会跳过 OCR。完整的负值观察结果可能使 OCR 被跳过,因此仍需抽查模型判断与文字提取结果。注意**属性缺键是正常结果**:观察失败时不会写入保守默认值(schema 版本 `attrs/2`),因此 `image_attrs` 可能为空对象,读取方需区分「未观察到」与「观察到了负值」。 -管线与观察结果记录在每张图的处理轨迹子 span 上,便于核对与排查:input `pipeline` = `observation_driven`(本开关开启)或 `caption_ocr`(关闭,历史行为);output `attr_policy`(本轮 OCR 决策)、`image_attrs`(观察到的属性)、`ocr_skipped`(`attr_policy`=被策略跳过 / `disabled`=OCR 总开关关闭)、`observation_failed`(未形成有效观察)、`chunks_created`。 +管线与观察结果记录在图片处理轨迹中。当前管线标识为 `default` / `smartocr`,不是旧版的 `caption_ocr` / `observation_driven`。轨迹可查看观察、描述、预处理、OCR 的实际结果以及跳过或失败原因。 +OCR 预处理默认关闭。可在管线中选择自动判断或对可处理页面始终执行,预处理失败或繁忙时使用原图。修改配置仅影响后续解析,已有图片需重新解析才会更新。 OCR 会在入库前拒绝空响应、只有分隔符的内容,以及占据输出主体的长串重复内容;正常短标签、数字和表格仍可保留。OpenAI 兼容 VLM 返回 `finish_reason=length` 时,非空的截断输出也按失败处理。普通图片提示词按可见文字转录,截图中的按钮和标签逐行输出,仅真实表格使用 Markdown 表格;扫描 PDF 使用专用文档布局提示词。 -每次执行 OCR 都有独立的 `multimodal.image[i].ocr` 处理子 span;Langfuse 中对应 `image.ocr`,包含模型调用和输出校验。失败时记录 `ocr_status=failed`、`ocr_error_code`(`OCR_INVALID_OUTPUT` / `OCR_TRUNCATED` / `OCR_REQUEST_FAILED`)和错误原因,不创建或索引该次 OCR 分块。正常的图片描述仍可保留,整张图的 output 用 `outcome=partial_failure` 表明部分失败,不因无效 OCR 重试整个图片任务。明确回答没有文字时记为 `ocr_status=no_text`,与异常区分;正常提取记为 `succeeded`。已有异常分块不会被自动清除,需要重新解析相应文档。 - +OCR 的模型调用和输出校验分别记录处理状态。失败、截断或异常重复内容不会作为有效 OCR 分块索引;图片描述等成功结果仍可保留,因此需要区分整图失败与部分步骤失败。对已有异常内容,应检查处理轨迹后重新解析相应文档。 可通过 `WEKNORA_OCR_TEST_FIXTURE` 指定本地 JSON 文件(`{"model": <模型配置>, "image_paths": [<本地图片路径>]}`),运行 `go test ./internal/application/service -run '^TestLiveImageOCRValidation$' -v -count=1` 验证实际模型。私有端点需配置 `SSRF_WHITELIST`。该测试使用内存分块仓库,不写业务数据库;带凭证的配置和原图应放在版本控制之外。 -单次上传 / 重新解析可在请求体的 `process_config`(`KnowledgeProcessOverrides`)里按文档覆盖 `image_attrs_enabled` 与 `image_actions`;未传的项沿用知识库设置。`image_actions` 按 action key 合并(`on` 整体替换)。接口字段见[知识库 API](../04-api/02-api-knowledge.md),管线细节见[文档解析](03-document-parsing.md)。 +单次上传 / 重新解析可在请求体的 `process_config`(`KnowledgeProcessOverrides`)里按文档覆盖 `image_pipeline`、`image_pipeline_params`、`image_attrs_enabled` 与 `image_actions`;未传的项沿用知识库设置。`image_actions` 按 action key 合并(`on` 整体替换)。接口字段见[知识库 API](../04-api/02-api-knowledge.md),管线细节见[文档解析](03-document-parsing.md)。 **图片向量(`image_vector_enabled`)**:默认关闭,升级后已有知识库也保持关闭(库里存的配置没有这个键,读出来就是 false),需要在知识库设置「图像处理配置 → 图片向量检索」里(开启多模态后出现)或通过 API 显式开启。只有**开关打开且向量模型能处理图片**时才生效,两者缺一则入库不生成图片向量、检索也不召回图片向量。之所以不随模型能力自动开启:能处理图片的向量模型常常只是被用来编码文本,自动开启会给这些知识库凭空增加每张图片一次的向量调用,并改变检索行为——开启后文档向量检索的候选池放大 1.5 倍,图片命中按 `min(VectorThreshold, 0.1)` 的单独阈值过滤。 diff --git a/website-docs/03-features/03-document-parsing.md b/website-docs/03-features/03-document-parsing.md index faf774705ea..cb535a3e1a3 100644 --- a/website-docs/03-features/03-document-parsing.md +++ b/website-docs/03-features/03-document-parsing.md @@ -207,11 +207,11 @@ sequenceDiagram - **`xlsx_merge.py`**:`fill_merged_cells_xlsx` 解除合并单元格并把左上角主值**复制到覆盖区域的每个单元格**——openpyxl 只在左上角存值,pandas 会把其余读成 NaN,填充后按行分块的 RAG chunk 才能保留上下文。可选地**按显示格式物化百分比**(见下)。 - **`xlsx_repair.py`**:修复常见 XLSX 打包问题——`sharedStrings.xml` 路径大小写/位置不规范时重命名归位;manifest 引用了 sharedStrings 但包内缺失且工作表只用 inline string 时,从 `[Content_Types].xml` 与 workbook rels 中剥掉引用,使 openpyxl 能读。 -**百分比格式**:Excel 的百分比是**显示格式而非存储值**——单元格实存 `0.61123366`,靠 `0.00%` 渲染成 `61.12%`,而 pandas/openpyxl 读的是原始值,格式被丢掉,于是 `61.12%` 变成 `0.6112`(**100 倍偏差**,财务报表类数据会直接把错数字喂给模型)。打开 `DOCREADER_XLSX_PERCENT_AS_TEXT`(或单次上传给 `parser_engine_overrides.xlsx_percent_as_text=true`,优先级高于环境变量)后,带百分比格式的数值单元格会被就地转成显示文本 `"61.12%"`(格式置 `General`),转换在**填合并单元格之前**完成——只有合并区域左上角带 `number_format`,被覆盖的格子是 `General`,先填合并会让第 2..n 行漏转。**只处理百分比**:货币/千分位只影响可读性(`1,234,567` 和 `1234567` 是同一个数),日期由 openpyxl 自动转 datetime。默认 **false**——开启后该单元格由数值变成字符串,会影响下游排序/计算,关闭时读取行为与升级前完全一致。 +**百分比格式**:Excel 可能存储数值 `0.61123366`,但显示为 `61.12%`。默认保留原始数值;如果需要让检索和模型看到报表上的显示形式,可开启 `DOCREADER_XLSX_PERCENT_AS_TEXT`,或在单次上传中设置优先级更高的 `parser_engine_overrides.xlsx_percent_as_text=true`。 -格式识别仅转换可可靠渲染的数字百分比模式(含颜色及正数/负数/零分段)。转义或引号中的 `%` 是字面量,不会触发乘 100;条件、填充和其他复杂自定义格式保留原始值,避免错误缩放。字面量百分号单元格也不会触发行提示推断。 +开启后,可识别的百分比单元格变为字符串 `"61.12%"`,因此下游排序与计算也会受到影响。仅处理能可靠识别的百分比格式;复杂自定义格式、转义或引号中的百分号不会被盲目缩放。 -同源文件偶尔有「一格忘了刷百分比格式」的单元格(如某财报 `D12` 折旧率 `0.0592` 格式为 `0.00_ ;[Red]\-0.00\ `)。把 `DOCREADER_XLSX_PCT_ROW_HINT_MIN` 设为 N(默认 **0=关闭**)后,同一行有 ≥N 个显式百分比格式单元格时,该行漏标的 `0<|v|<1` 数字也按百分比处理,每次命中打 INFO 日志可事后审计。 +`DOCREADER_XLSX_PCT_ROW_HINT_MIN` 默认 `0`,表示关闭推断。设为正整数 N 后,同一行至少 N 个单元格使用显式百分比格式时,其他符合条件的小数也可能按百分比处理。只有数据来源具有明确的同行格式约定时才建议开启,并抽查转换结果。 XLSX 读取前统一走 `repair → fill_merged_cells` 预处理,并用 `header=None` + A/B/C 列字母作为稳定列名(xls 则先尝试首行做表头,遇 `Unnamed:` 列回退列字母)。百分比物化(若开启)发生在 `fill_merged_cells` 内部、填合并单元格之前。 @@ -316,7 +316,11 @@ docreader 侧的图片契约非常简单:每个解析器把图片以 `Document - unary `Read`:`_resolve_images()` 把全部图片 base64 解码为 `ImageRef.image_data` **内联字节**一次性返回(`image_dir_path` 恒为空——历史上"写共享卷目录"的模式已废弃,注释明确 *"The Go App is solely responsible for persisting images to the configured storage backend (local/minio/cos/tos)"*); - streaming `ReadStream`:`_iter_image_refs()` 逐张 yield,边发边 `pop` 释放内存。 -Go 侧接手后(`internal/infrastructure/docparser/image_resolver.go`):将 inline bytes 上传对象存储、把 markdown 中的 `images/...` 引用重写为存储 URL;随后 `internal/application/service/image_multimodal.go` 依据 metadata 的 `image_source_type` 决策——`scanned_pdf` 的整页图走 OCR(带专用 `ocr_prompt`),普通插图走 VLM caption。该服务有两条管线(处理轨迹里 `pipeline` 分别记为 `caption_ocr` / `observation_driven`):历史管线(KB 未开启 `image_attrs_enabled`)对每张图各发一次描述、各发一次 OCR;属性观察管线(开启后)第一轮先用同一张图的「属性观察+描述」结果确定属性(`contain.text` / `contain.data_visual`),再由代码纯函数 `DecideOCR` 按 KB 的 `image_actions` 决定该图是否值得再跑 OCR——`contain.text ∈ {sparse, none}` 且已确认观察、且 `data_visual == false` 的图默认只留描述、不花 OCR。两条管线的**图片理解都在 Go 侧**。知识库配置的图片解析自定义指令(`vlm_config.custom_instructions`)只追加到描述提示词(属性观察管线里即「属性观察+描述」提示词),不进入 OCR 提示词,以免干扰 OCR 的输出约定(如无文字图片应回复 `No text content`)。 +Go 服务负责保存图片并执行知识库选定的图片处理流程。v0.9.0 将流程改为可配置管线,`image_processing_config.image_pipeline` 可选择 `default`(手动选择描述与 OCR 动作)或 `smartocr`(先观察图片,再按属性决定是否 OCR)。没有显式选择时,兼容旧的 `image_attrs_enabled` 配置。处理轨迹记录实际使用的管线及各步骤结果。 + +手动管线的描述与 OCR 默认均开启,可分别关闭;智能 OCR 会结合观察到的文字密度、图表等属性决定是否继续识别。参数保存在对应管线的 `image_pipeline_params` 名称空间中,切换管线不应误用另一条管线的设置。图片解析自定义指令用于描述,不会直接追加到 OCR 提示词。 + +知识库还可选择 OCR 图片预处理:`off`(默认关闭)、`auto`(根据观察结果决定是否矫正和裁边)、`always`(对可处理页面执行)。预处理在 Docreader 中进行,繁忙或失败时回退原图,处理轨迹会显示实际结果。部署参数与资源上限见[配置说明](../01-getting-started/04-configuration.md#image-preprocess)。 各解析引擎输出中的内联 HTML ``(常见于 MinerU、PaddleOCR-VL 与 VLM OCR)会在分块前统一转换为 Markdown 表格;含合并单元格等无法转换的表格保留 HTML,但每行单独成行,保证分块器能在行边界切分。**docreader 内没有任何 VLM 调用**;`models/read_config.py` 中的 `vlm_config`/`storage_config` 字段只是为了老构造函数签名兼容而保留的空壳("Legacy config kept for backward compatibility")。 diff --git a/website-docs/03-features/05-retrieval-engines.md b/website-docs/03-features/05-retrieval-engines.md index 7286faea53c..871a864edfd 100644 --- a/website-docs/03-features/05-retrieval-engines.md +++ b/website-docs/03-features/05-retrieval-engines.md @@ -13,6 +13,12 @@ 切换引擎需要重建索引。知识库绑定的向量存储在创建后不可修改,应在建库前确定实例。 +## 调整混合检索 + +检索设置将召回、融合等参数分组展示。RRF 使用各路结果的排名融合向量和关键词检索,可调整平滑参数及两路权重。建议用同一组有代表性的问题比较结果,再决定是否保存;提高某一路权重不等于提高模型回答准确率。 + +只有一路结果时不执行双路 RRF。参数含义与默认值见下文 [RRF 加权融合](#_5-2-rrf-加权融合)。 + ## 多模态 Embedding 与图片召回 支持图片输入的向量模型可将文本和图片编码到同一空间。知识库默认不开启图片向量,需要同时配置多模态与「图片向量检索」;已有文档需重新解析,扫描 PDF 页不生成图片向量。画廊只展示已有图片,不依赖此开关。详情见[知识库图片配置](02-knowledge-base.md#multimodal-embedding)。 diff --git a/website-docs/03-features/07-agent.md b/website-docs/03-features/07-agent.md index 0a6a73bd6f0..d30ee990689 100644 --- a/website-docs/03-features/07-agent.md +++ b/website-docs/03-features/07-agent.md @@ -25,6 +25,12 @@ 配置决定智能体可访问的资料与工具,实际调用仍受当前用户或渠道的权限约束。 +## 助手、协作与执行权限 + +v0.9.0 新增内置 [WeKnora 助手](26-weknora-assistant.md),可查阅产品文档并在授权范围内处理知识库、配置和管理任务。需要重复执行的工作可创建[自动化](27-automations.md)。 + +智能推理任务支持[多智能体协作](26-weknora-assistant.md#collaboration),分别处理子任务并汇总结果。读取、写入和破坏性操作受[执行权限与审批](28-agent-permissions.md)控制;资源权限不会因为协作或授权而扩大。 + ## 创建与使用智能体 1. 在「智能体」页新建智能体,选择快速问答或智能推理模式。 @@ -97,6 +103,7 @@ smart-reasoning 下还可选**类型预设**(`Config.AgentType`,定义在 `c | 基础 | `system_prompt` / `system_prompt_id` | 直接正文优先;自定义 Agent 的模板引用由 `ResolveCustomAgentPrompts` 在请求时解析 | | 基础 | `context_template` / `context_template_id` | 普通模式下检索片段的拼装模板 | | 模型 | `model_id`、`rerank_model_id`、`temperature`、`max_completion_tokens`、`thinking`、`reasoning_effort`、`citation_enabled` | temperature<0 → 0.7;max_completion_tokens=0 使用运行时默认:quick-answer 2048、smart-reasoning 4096、绑定沙箱的 smart-reasoning 24576;绑定沙箱时显式值低于 8192 按 8192 执行;`reasoning_effort` 取 `off`/`auto`/`minimal`/`low`/`medium`/`high`/`xhigh`/`max`,设置后优先于 `thinking`(`thinking: true` 等同 `auto`),模型不支持的档位在调用时自动就近调整;两者都未设时不开启思考;单次对话可用请求字段 `reasoning_effort` 临时覆盖;citation 未设时视为 true | +| Agent | `access_level` | 普通智能体的执行权限:read_only / confirm / auto_write,未配置时默认 auto_write;助手另受空间上限约束 | | Agent | `max_iterations` | 默认 10,负数表示不限轮数(服务层上限 100) | | Agent | `llm_call_timeout` | 单次模型流式调用允许连续无输出的秒数,0 用默认 120s;总时长由模型传输层控制 | | Agent | `allowed_tools` | 工具白名单;未设置/null 回退 DefaultAllowedTools,显式 `[]` 不选内置工具 | @@ -596,27 +603,16 @@ sequenceDiagram ### 工具审批机制(Human-in-the-Loop) {#_6-工具审批机制-human-in-the-loop} -MCP 工具审批由 `internal/agent/approval/gate.go` 实现。 - -**审批范围**:审批门(`approval.MCPApproval`)**只接入 MCP 工具**——`MCPTool.Execute`(`internal/agent/tools/mcp_tool.go`)在真正调用 MCP 服务前询问 `gate.NeedsApproval(tenantID, serviceID, toolName)`;内置工具不走审批。哪些 MCP 工具需要审批由 `Checker`(DB 中的 `MCPToolApprovalService`,经 `approval.Adapter` 适配)按租户+服务+工具名判定。 - -**Fail-close 默认**:`NeedsApproval` 的检查器出错时默认**要求审批**(对 HITL 特性更安全);可用环境变量 `WEKNORA_AGENT_TOOL_APPROVAL_FAIL_OPEN=true` 恢复旧的放行行为。 - -**审批流程**(`RequestAndWait`): - -1. 生成 `pendingID`(UUID),把 waiter 挂入内存 map; -2. 通过 EventBus 发射 `EventToolApprovalRequired`(携带服务名、MCP 工具名、参数 JSON、超时秒数、tool_call_id 等),前端弹出审批卡片; -3. 阻塞等待三者之一:用户 `Resolve`、超时(默认 **10 分钟**,`cfg.Agent.ToolApprovalTimeoutSeconds` 可配)、请求 ctx 取消;结果统一以 `EventToolApprovalResolved` 通知 UI; -4. `Decision` 支持 `Approved`、`Reason`,以及 `ModifiedArgs`——用户可在批准时**修改工具参数**,MCPTool 会用修改后的参数重新解析执行; -5. 拒绝/超时/取消都会作为工具失败结果返回给 LLM(而非中断整个 Agent)。 - -**长等待与超时的配合**:普通工具执行有 60s 超时,但审批可能等更久。引擎在 `ToolExecContext.ApprovalCtx` 中传入**不含** per-tool 超时的轮级 ctx 供审批等待使用;批准后 MCPTool 再从 `ApprovalCtx` 派生一个全新的执行超时窗口,避免审批耗尽预算导致刚批准就超时。 - -**跨实例支持**:waiter 存在发起等待的实例内存里;配置 Redis 后,`Resolve` 在本地未命中时通过 Pub/Sub 频道 `weknora:mcp_approval:resolve`(可加 `WEKNORA_REDIS_NAMESPACE` 后缀隔离多部署)广播到所有副本,由持有 waiter 的实例投递,并经带 nonce 的 per-pending 回复频道回 ack,使 HTTP 层能准确区分 `ok` / `not_found` / `tenant_mismatch` / `user_mismatch` / `already_resolved`。无 Redis 时退化为单进程语义(需要粘性会话)。 +v0.9.0 统一了工具执行权限、审批提示与有范围的授权。`internal/agent/policy` 按 read、probe、write、destructive 风险判断允许、拒绝或询问;审批不再只适用于 MCP 工具。 -**授权校验**:`Resolve` 时校验 tenant 匹配;waiter 注册了 `userID` 时调用者必须携带相同的非空 userID(空视为不匹配,fail-close),防止旁人替会话主人批准。 +- **权限来源**:助手使用会话请求的 `assistant_access`,受空间助手上限限制;普通智能体使用自身配置的 `access_level`。 +- **持久化提示**:`agent_prompts` 保存人工问题与审批,`agent_run_suspensions` 保存可恢复的挂起状态。前端通过 `POST /api/v1/agent/prompts/:prompt_id` 答复,并验证调用者身份和任务归属。 +- **MCP 策略**:服务中的工具风险和逐次审批配置继续参与判断。标记为始终审批的操作不会被普通授权跳过;OAuth 授权仍是独立的交互步骤。 +- **授权范围**:`agent_grants` 区分会话授权与自动化授权,绑定相应的操作和资源,支持失效与撤销。授权不会替代角色和资源鉴权。 +- **等待与恢复**:审批等待不应消耗批准后的实际执行预算。刷新页面后可以继续处理持久化提示;执行中断且结果不确定时,不能自动重放外部写入。 +- **Lite 本机操作**:删除和扩大本机沙箱访问范围使用专门的审批卡片,显示命令、路径和影响;缺少审批通道时拒绝相关操作。 -**会话内 OAuth**:同一个 Gate 还提供 `RequestOAuthAndWait`——当 MCP 传输层返回"需要授权"错误时(而非查审批表),发射 `EventMCPOAuthRequired` 让用户在对话内完成 OAuth,等待上限取 Agent 配置的 `MCPAuthWaitTimeout`(`internal/agent/tools/mcp_oauth.go`),授权成功后自动重试工具调用。 +使用说明见[执行权限与审批](28-agent-permissions.md),自动化的超时和通知规则见[自动化](27-automations.md)。旧 `tool-approvals` 接口与部分 Gate 兼容路径仍保留,不应据此把全部审批状态理解为只存在进程内存中的 MCP 等待。 ### Agent 模式与普通 RAG 问答模式 {#_9-agent-模式与普通-rag-问答模式} diff --git a/website-docs/03-features/10-datasource.md b/website-docs/03-features/10-datasource.md index 720760d7308..0db2ec46706 100644 --- a/website-docs/03-features/10-datasource.md +++ b/website-docs/03-features/10-datasource.md @@ -236,12 +236,9 @@ Server/DC PAT 适用于 Confluence 7.9 及以上版本,可在个人设置的 P - **上传文件(默认关闭)**:`Settings.include_uploaded_files`(默认 `false`)开启后,所选范围内钉盘中的普通上传附件(`FILE/DOCUMENT` 的 `docx` / `pptx` / `xlsx` / `pdf`)会被下载并交给 WeKnora 自带解析器入库,文件名保留原扩展名、按扩展名选择解析器;单个文件上限 64 MiB,超出上限记录为文件失败并提示压缩或拆分,本轮不重复下载(重签名只会拿到同样的字节)。即使本轮待处理文件全部超限,也记为部分成功并保留后续定时同步;失败文件不推进成功版本游标,压缩或拆分后可在后续同步恢复。下载失败(401/403/404 等)会重新申请签名后重试,最多 3 次。 - **开关的默认值与成本**:`include_uploaded_files` 未设置或非法值一律按 `false` 处理,因此**存量数据源升级后的下一次同步(含增量同步)行为不变**,不会突然开始下载和向量化附件。打开后,这些文件的正文会进入知识库,占用存储并产生 embedding 成本;不需要时请保持关闭。关闭时连接校验、资源列表和同步都会跳过上传附件,同步日志给出的原因是 `include_uploaded_files` 未启用,而不是类型不支持。 - **开关的作用点**:测试连接(校验)、资源选择列表、全量同步与增量同步共用同一个判据,一处关闭即处处一致。 -- **目录结构(默认关闭)**:钉钉知识库本身就是目录树,但连接器历来把文档平铺到知识库根目录,`folder_path` 为空,不同来源目录的文档在知识库里无法区分。`Settings.preserve_folder_structure`(默认 `false`)开启后,`FileName` 编码为 `<工作区名>/<子目录>/…/<标题>.ext`,由下游 `SplitKnowledgeRelativePath` → `NormalizeKnowledgeFolderPath` 拆出 `folder_path`——与语雀 `folder_mode=toc`、飞书云盘目录映射是同一套机制。**工作区名是第一段**:一个知识库可以同时链接多个钉钉数据源,没有这一段,不同工作区里同名的顶层目录会静默合并成一个(语雀用书名作第一段是同样的理由);工作区没有名字时退回用它的 ID。**路径始终以工作区为根**:选整个工作区、选某个子目录、选单篇文档,同一篇文档都落到同一个目录,不会出现两份。每一层目录名单独清洗(名字里的 `/`、`\`、`:` 等替换为 `_`),因此目录名里的斜杠不会凭空多出一层;同名子目录合并为同一个知识库目录(钉钉节点 ID 唯一、标题不唯一),`.`、`..` 这类非法层级由下游归一化丢弃而不是让同步失败。开启后目录由连接器托管:在知识库里手动调整过的目录,会在该文档下次同步时被覆盖回钉钉的结构。 -- **目录开关的默认值与作用范围**:`preserve_folder_structure` 未设置或非法值一律按 `false` 处理,因此**存量数据源升级后 `FileName` 逐字节不变、`folder_path` 仍为空**。它只决定**入库路径**,不决定哪些文档入库:测试连接与资源选择列表不受它影响,关掉它也不会让任何文档消失。目录维度不写入同步游标——开关开与关时游标里的"资源 → 文档版本"表完全一致,所以目录永远不会让文档被判定为"源端已删除"。 -- **目录相关注意 / 限制**: - - **开启开关不会自动归位已导入的文档**:增量同步按 `modifiedTimestamp` 判断变化,只重新读取内容有变化的文档,因此**已经在知识库里的文档会保持原来的扁平文件名**——它们并没有被重新读取。只有内容变更过的文档、或手动触发一次全量同步之后,才会整体移到新目录。这与语雀修改 `folder_mode` 后的行为一致。 - - **`include_uploaded_files` 关闭时**,上传附件(`docx` / `pptx` / `xlsx` / `pdf`)不入库,其所在目录自然也不会出现;在线 `adoc` 文档不受该开关影响。 - - **目录深度与长度由下游统一裁剪**:`folder_path` 最多 16 层、单个目录名最多 128 字节、整条路径最多 1024 字节,超出部分被截断(与文件夹上传同一套规则)。 +- **保留目录结构**:开启 `settings.preserve_folder_structure` 后,以工作区名为根目录保留来源层级。默认关闭,不改变已有数据源的导入路径;同一文档不因选择整个工作区、子目录或单篇文档而产生不同路径。 +- **更新已有目录**:开启后仅新读取的文档使用新结构。需要整理全部已导入内容时,手动执行一次全量同步。开启期间,来源目录由连接器管理,手动调整的本地目录可能在后续同步时被覆盖。 +- **目录与文件范围分别设置**:目录开关只影响入库路径;`include_uploaded_files` 决定是否导入上传到钉盘的 Office/PDF 等文件。在线文档不受后者影响。目录深度和长度仍遵循知识库路径限制。 - **同步**:按文档 `modifiedTimestamp`(毫秒)增量读取,缺失时回退 `modifiedTime`;合并重叠选择。全量同步也会对照上次游标对账删除,避免 `sync_mode=full` 漏删。目录遍历不完整时暂缓删除。 - **正文**:公开 Blocks API 只返回文档根下的一级块;高亮块等容器若响应里带有 `children` 会继续渲染,否则在元数据中标记 `nested_blocks_unavailable`,避免把残缺正文当成完整成功。 - **校验**:测试连接会列出知识库、探测根节点列表,并在根下存在在线文档时试读 Blocks;对已开启摄取的上传文件只解析存储位置并申请下载 URL,不下载正文,以便尽早发现缺少 `Wiki.Node.Read` / `Storage.File.Read`,同时让校验对多兆字节文件保持廉价。 diff --git a/website-docs/03-features/17-faq.md b/website-docs/03-features/17-faq.md index 9f0de38498d..3456de1ca79 100644 --- a/website-docs/03-features/17-faq.md +++ b/website-docs/03-features/17-faq.md @@ -17,6 +17,10 @@ FAQ 知识库用于维护退货政策、报销流程和常见故障处理等标 可按分类管理条目,单独停用暂不使用的问答,或禁止条目出现在推荐中。FAQ 分类为单标签,与文档知识库的多标签机制分别管理。 +### 切换列表展开方式 + +在 FAQ 列表中切换展开或收起方式:集中浏览问题时收起答案,逐项检查时展开内容。此选项只改变列表展示,不改变问答条目、启用状态或检索策略。 + ## 导入与导出 使用模板准备标准问、相似问、反例问和答案,多值字段用 `##` 分隔。导入时选择追加或替换:追加会按内容哈希匹配并合并重复项;替换会删除旧条目,仅保留本批导入内容。需要先检查数据时,可通过 API 的 `dry_run` 仅运行验证。 diff --git a/website-docs/03-features/18-chat-experience.md b/website-docs/03-features/18-chat-experience.md index 64fc996b95f..5c5dd1cda0f 100644 --- a/website-docs/03-features/18-chat-experience.md +++ b/website-docs/03-features/18-chat-experience.md @@ -2,6 +2,12 @@ 在会话中,可以围绕知识库或上传的附件提问,查看回答来源,并预览智能体生成的文件。回答生成期间可以继续补充要求;对已有对话可以从任意一条消息分叉或回滚。提问目录和历史搜索用于回顾对话,复制为 Markdown 用于保存完整问答记录。 +## 助手与任务进度 + +[WeKnora 助手](26-weknora-assistant.md)可从页面侧边栏打开,有独立会话历史。多智能体任务可在主对话与子任务之间切换,查看各自的输出和待处理事项。审批卡片在刷新后仍可继续处理,权限规则见[执行权限与审批](28-agent-permissions.md)。 + +长时间的 Shell 命令可作为后台任务运行,任务卡片提供状态、输出和取消入口。等待结果时可以继续补充要求。后台任务被取消或服务中断后,应检查结果再决定是否重试,避免重复执行已经生效的操作。 + ## 查看回答与来源 提问后,进度条显示附件解析、检索、工具调用和回答生成等阶段。智能推理模式还会展示可折叠的思考过程、命令输出和文件写入进度。 diff --git a/website-docs/03-features/22-skills-sandbox.md b/website-docs/03-features/22-skills-sandbox.md index a2d4b51a230..38e4a9704f6 100644 --- a/website-docs/03-features/22-skills-sandbox.md +++ b/website-docs/03-features/22-skills-sandbox.md @@ -98,6 +98,7 @@ Cube/E2B 的 `config.network` 同时用于对话沙箱、技能安装和完整 - **工作目录**:在新对话页点「选择项目」,通过系统目录选择框选定项目文件夹,对话标题栏会显示项目名。不选时显示「临时工作区」,自动在 `~/.weknora/sessions/session-*` 下创建会话目录。不能选择主目录本身、包含主目录的目录或 `~/Library` 下的目录。 - **路径**:工作区是真实的本机路径,没有 `/workspace`、`/workspace/input` 和 `/workspace/output`。智能体直接在项目中修改文件,这些文件不会进入对话的产物列表;删除对话也不会删除本机目录。 - **限制**:命令默认不能联网,只能写入项目目录,项目内的 `.git` 为只读。主目录中除常用开发工具链(如 `.nvm`、`.pyenv`、`.cargo`)外的内容不可读,`.ssh`、`.aws`、钥匙串等凭据位置始终不可读。 +- **审批**:本机删除操作和需要扩大沙箱访问范围的命令会触发相应确认。先核对路径与影响;批准一次操作不等于无限开放本机访问。 - **回退**:对话回退不会还原本机项目文件,需要时请自行用 Git 管理。 ### 在 Lite 桌面版安装本机技能 @@ -125,7 +126,7 @@ macOS 桌面版可在「工具箱 → 技能管理」将技能安装到「本机 `read_file(path="skill:///SKILL.md")` 读取说明;技能附带脚本通过 `shell_exec(skill_name=..., command=...)` 执行。命令中的 `$WEKNORA_SKILL_DIR` 指向技能实际安装目录;`skill://` 是读取地址,不能直接当作 shell 路径。 -附件暂存到 `/workspace/input`,工作脚本放在 `/workspace`,可下载产物放在 `/workspace/output`。用 `write_sandbox_file` 新建/续写,用 `edit_sandbox_file` 局部替换,用 `read_file` 分页读取。文件工具边界、输出预算和重建行为见[Agent 引擎](07-agent.md),交付入口见[会话与对话体验](18-chat-experience.md)。 +每会话一台时,附件暂存到 `/workspace/input`,工作脚本放在 `/workspace`,可下载产物放在 `/workspace/output`。按用户复用时,以该会话的工作目录为基准,使用其中的 `input` 和 `output` 目录。用 `write_sandbox_file` 新建/续写,用 `edit_sandbox_file` 局部替换,用 `read_file` 分页读取。文件工具边界、输出预算和重建行为见[Agent 引擎](07-agent.md),交付入口见[会话与对话体验](18-chat-experience.md)。 -## 沙箱分配方式 +## 按用户复用沙箱 {#user-sandbox} 远程沙箱(Docker、CubeSandbox、E2B)有两种分配方式。Lite 的本机沙箱不受影响。 @@ -168,9 +175,9 @@ macOS 桌面版可在「工具箱 → 技能管理」将技能安装到「本机 alt="共用沙箱模式隐藏技能镜像更新策略,保留空置沙箱保留天数设置" /> -能进共用机器的只有两类身份:Web 登录账号,以及带外部用户标识的 API 调用。同一把 API Key、但不带外部用户的两个会话各用一台沙箱,分配行的 `machine_digest` 为空,分配日志的原因是 `SHARED_API_KEY`。 +能进共用机器的只有两类身份:Web 登录账号,以及带外部用户标识的 API 调用。同一把 API Key、但不带外部用户标识的会话仍分别分配沙箱。 -共用一台时,设计上的风险(设计文档 §5.2.1)是: +共用机器适用于同一用户愿意共享运行环境的任务,需要理解以下边界: - 沙箱里的命令以 root 运行,同一台机器上的会话之间没有操作系统级的隔离,工具也不会把读写限制在本会话目录里:本会话的 agent 可以访问这台机器上的其他目录,包括其他会话的目录。 - 磁盘是共享的,进程互相可见。 @@ -193,7 +200,7 @@ macOS 桌面版可在「工具箱 → 技能管理」将技能安装到「本机 SELECT count(*) FROM session_sandbox_assignments WHERE machine_digest <> '' AND released_at IS NULL; ``` -结果为 0 才能无损回退。否则先把配置改回每会话一台,并按设计文档处理还在的用户机器。 +结果为 0 只是检查共享分配的必要条件,不代表所有数据库迁移都可无损回退。若仍有共享分配,先改回每会话一台,保存文件并处理现有用户机器,再评估数据库和应用版本回退。 ## 部署与排障 diff --git a/website-docs/03-features/26-weknora-assistant.md b/website-docs/03-features/26-weknora-assistant.md new file mode 100644 index 00000000000..f8e6fc6cf06 --- /dev/null +++ b/website-docs/03-features/26-weknora-assistant.md @@ -0,0 +1,61 @@ +# WeKnora 助手 + +WeKnora 助手既能回答关于 WeKnora 的版本更新、功能用法、配置和故障排查问题,也能结合当前页面,以当前用户的身份创建智能体、设置定时任务、整理知识和调整配置。点击左上角 Logo 旁的助手入口,右侧会展开对话面板;可以先提问,也可以直接描述想完成的事。助手使用你的身份与资源权限,不会获得额外的管理员权限。 + + + + + +## 从一句话开始 {#getting-started} + +可以先尝试这些任务: + +- 「WeKnora 这个版本更新了什么?这些功能该怎么用?」 +- 「帮我创建一个读书会策划助手,绑定活动资料,创建前让我确认。」 +- 「讲一下当前知识库的解析配置,哪些设置影响图片检索?」 +- 「帮我查找这个问题的相关资料,给出原文出处。」 +- 「检查这份文档的解析状态,说明失败原因和下一步怎么处理。」 +- 「整理一个每天汇总公开资讯的自动化任务,先让我确认配置。」 + +助手可以搜索和阅读当前版本的产品文档,也会按任务发现可用的管理操作。需要修改资源时,是否先征求确认由[执行权限](28-agent-permissions.md)决定;你的空间角色、资源访问权限和各项操作本身的限制始终有效。 + +## 当前页面与资料范围 {#context} + +从智能体、知识库、文档或设置页打开助手时,页面信息帮助它理解「这里」「这份文档」等表达。这里指 WeKnora 内的页面上下文,不代表助手会读取电脑上其他应用的画面。当前页面不会自动把检索限制在某个知识库,也不会赋予新的访问权限。希望只使用指定资料时,在输入框中通过 `@` 选择知识库、文档或标签,并明确说明任务范围。 + +助手拥有独立的会话历史。普通聊天和助手会话分开保存,助手会话仅对发起者可见;空间管理员也不能因此浏览其他成员的助手历史。 + +## 能处理哪些事情 {#capabilities} + +| 任务 | 示例 | +| --- | --- | +| WeKnora 使用帮助 | 查询版本更新,解释功能、配置项与部署条件,排查使用问题 | +| 智能体配置 | 创建智能体,选择模型、知识库与工具,并在保存前核对配置 | +| 知识问答 | 检索知识库与 Wiki,阅读来源,核对回答 | +| 内容维护 | 按授权创建或修改文档、FAQ 和知识库内容 | +| 配置与诊断 | 查看模型、智能体、MCP 和技能配置,检查解析或检索问题 | +| 页面协作 | 打开相关页面,辅助填写配置,再由你检查 | +| 持续任务 | 创建和管理[自动化](27-automations.md),查看运行结果 | + +部分任务依赖相应能力已经配置,例如联网搜索需要搜索服务,技能执行需要可用的沙箱。助手不会因为能找到一个操作,就绕过该操作所需的权限。 + +## 多智能体协作 {#collaboration} + +遇到可以拆开的研究或整理任务,助手可以安排多个智能体分别处理,再汇总结果。你可以查看各个任务的进度、输出与待处理事项,也可以继续补充要求或停止任务。 + + + +- 临时协作智能体继承当前任务允许使用的能力;也可以使用同一空间中已有的智能推理智能体作为模板。 +- 每个子任务有独立会话,不会自动复制父会话的全部历史或附件。任务描述应包含必要背景和资料范围。 +- 一个任务最多创建 16 个协作实例,同时最多运行 3 个;等待审批的实例不占运行名额。协作智能体不能继续递归创建下一层智能体。 +- 停止主任务会取消协作组内仍在运行的任务,已经完成的写入不会自动撤销。 + +协作不会扩大资源权限。若使用[按用户复用沙箱](22-skills-sandbox.md#user-sandbox),会话的工作目录仍分别管理,但它们可能位于同一台机器中,不能把目录分开理解成操作系统级隔离。 + +## 名称与权限上限 {#settings} + +空间可配置助手显示名称和执行权限上限。助手默认上限为「修改前确认」;单次会话选择的权限不能超过空间上限。普通自定义智能体的权限上限与助手配置分别管理。 + +管理操作发现、产品文档查询等能力属于内置 WeKnora 助手,不能仅靠复制名称或系统提示词给自定义智能体增加这些权限。 + +相关内容:[Agent](07-agent.md) · [自动化](27-automations.md) · [执行权限与审批](28-agent-permissions.md) diff --git a/website-docs/03-features/27-automations.md b/website-docs/03-features/27-automations.md new file mode 100644 index 00000000000..683179f89b4 --- /dev/null +++ b/website-docs/03-features/27-automations.md @@ -0,0 +1,47 @@ +# 自动化 + +将重复任务交给 WeKnora 助手按计划执行,例如每天整理公开资讯、定期检查知识库或汇总工作资料。在侧边栏打开「自动化」,创建任务、查看运行记录和处理待审批事项。 + + + +## 创建任务 {#create} + +可以直接告诉 WeKnora 助手:「每天上午 9 点汇总读书会的筹备待办,创建前让我确认。」助手会整理任务和计划,供你核对。也可以从「自动化」页面手动填写: + +1. 点击「新建自动化」,填写名称和任务说明。写清需要使用的资料、预期产物和完成标准。 +2. 选择一次性执行或周期执行,并检查时区。周期任务使用 Cron 表达式,最小间隔为 5 分钟。 +3. 选择会话方式、执行权限及通知选项。需要连续积累上下文时使用同一会话;每次独立处理时创建新会话,也可携带上次成功结果。 +4. 保存后检查下次运行时间。可手动运行一次,核对结果,再保持计划开启。 + + + +自动化由 WeKnora 助手执行,可单独指定模型;没有指定时使用助手的模型配置。需要其他智能体参与时,在任务说明中描述分工,由助手进行协作。 + +## 运行与结果 {#runs} + +任务详情展示运行记录和结果。你可以打开对应会话查看完整过程,也可以让助手分析某次结果。任务可暂停、恢复或手动运行;取消一次运行不等于删除整个计划。 + +| 设置 | 作用 | +| --- | --- | +| 时区 | 决定计划时间;API 未指定时使用 UTC。建议明确填写 `Asia/Shanghai` 等 IANA 时区 | +| 错过执行 | 选择跳过,或恢复后补跑一次;不会把全部错过的时刻逐个补跑 | +| 重叠执行 | 上一轮未结束时选择跳过或排队 | +| 执行时长 | 默认 30 分钟,最多 4 小时;等待审批的时间不计入执行时长 | +| 审批等待 | 默认 24 小时,可设置 5 分钟至 7 天 | +| 成功通知 | 可选择成功后接收站内通知;结果与待审批事项可从通知中心查看 | + +连续失败 3 次后任务会自动暂停,应先查看失败原因再恢复。服务中断后无法确定执行结果的任务可能进入「需要处理」状态,系统不会直接重放可能已经完成的写入。 + +## 权限与审批 {#approval} + +自动化以创建者的身份执行,只能使用创建者当前有权访问的资源。它不保存一份永久有效的用户凭证;角色或资源权限变化会影响下一次运行。任务仅由本人管理,当前自动化接口不对 API Key 开放。 + +需要审批时,运行会暂停并产生通知。打开待审批事项,核对操作、资源和影响后再决定。无人值守执行不能代替用户回答任意自由文本问题,任务说明应提前包含必要条件。 + +对已出现过的审批需求,可以在任务中管理长期授权,授权范围限定到相应操作和资源。长期授权仍受当前用户权限、资源范围、失效条件及强制审批规则约束。撤销授权后,后续操作重新按审批策略处理。详见[执行权限与审批](28-agent-permissions.md)。 + +## 部署与容量 {#limits} + +默认每个空间最多 100 个任务,每个进程同时执行 4 个任务,每个任务保留最近 200 条运行记录。自动化调度属于应用运行能力,应保证应用持续运行,并做好数据库备份;个人电脑休眠或服务停止期间不能按时执行。 + +相关内容:[WeKnora 助手](26-weknora-assistant.md) · [自动化 API](../04-api/02-api-automations.md) diff --git a/website-docs/03-features/28-agent-permissions.md b/website-docs/03-features/28-agent-permissions.md new file mode 100644 index 00000000000..6278e7221f7 --- /dev/null +++ b/website-docs/03-features/28-agent-permissions.md @@ -0,0 +1,33 @@ +# 执行权限与审批 + +执行权限决定智能体在任务中可以直接做什么、哪些操作需要先询问你。它与空间角色和资源权限共同生效:允许智能体执行写入,不代表获得原本无权编辑的知识库或文件。 + + + +## 三种执行权限 {#levels} + +| 权限 | 可以直接执行 | 写入与高影响操作 | +| --- | --- | --- | +| 只读 `read_only` | 读取和探测类操作,例如查询状态、检索资料 | 不允许写入,不能用一次审批绕过只读限制 | +| 修改前确认 `confirm` | 读取和探测类操作 | 写入前请求确认;删除等破坏性操作也需要确认 | +| 自动执行 `auto_write` | 读取、探测和一般写入 | 破坏性操作仍需要确认;被标记为始终审批的工具仍逐次确认 | + +助手会话中的选择受空间设置的上限限制,普通智能体通过自身的 `config.access_level` 配置执行权限。WeKnora 助手默认上限是 `confirm`,普通智能体未配置上限时默认 `auto_write`,升级后应按实际使用场景核对配置。 + +## 查看和处理审批 {#prompts} + +审批卡片说明准备执行的操作。确认前检查资源、参数和可能产生的影响;拒绝后,智能体需要调整方案或结束相应操作。 + +待审批事项和可恢复的运行状态会持久化,刷新页面后可以继续处理。恢复等待状态不等于自动重放一切操作;服务中断后无法确认结果的执行,需要先核对现状。 + +对 MCP 工具,服务中的工具风险与审批配置也会参与判断。即使选择自动执行,强制逐次审批也不会被普通授权跳过。详见 [MCP](08-mcp.md)。 + +## 会话授权与自动化授权 {#grants} + +会话中可以对符合条件的一般写入授予后续执行权限,授权限于该根会话和指定范围。删除等破坏性操作不能通过普通会话授权被一概放行。 + +自动化还支持在任务设置中管理更明确的长期授权,可基于实际审批记录选择操作及资源范围,包括符合条件的破坏性操作。需要逐次审批的操作不在此范围内。长期授权不会覆盖角色权限检查,配置变化、过期、撤销或长期闲置都会影响有效性。 + +不要把「自动执行」理解为无限权限。涉及外部系统、技能安装或本机文件的任务,还会受到对应工具、本机沙箱与资源授权的限制。 + +相关内容:[WeKnora 助手](26-weknora-assistant.md) · [自动化](27-automations.md) · [技能与沙箱](22-skills-sandbox.md) diff --git a/website-docs/04-api/01-api-overview.md b/website-docs/04-api/01-api-overview.md index 81174b4abff..0ab0f97660a 100644 --- a/website-docs/04-api/01-api-overview.md +++ b/website-docs/04-api/01-api-overview.md @@ -2,6 +2,9 @@ WeKnora HTTP API 使用 `/api/v1` 前缀,支持 JWT、API Key 和 Embed token 认证;内置 MCP Server 端点另用端点令牌认证。调用各资源接口前,需按客户端类型选择凭证,并遵循统一的响应、错误处理、分页和流式事件约定。 + +自动化计划、执行记录与站内通知见[自动化 API](02-api-automations.md);这些接口只供已登录用户管理本人的任务,不接受 API Key。 + ## Base URL 与版本前缀 - 所有业务 API 挂载在 `/api/v1` 前缀下(`router.go` 中 `r.Group("/api/v1")`)。 diff --git a/website-docs/04-api/02-api-automations.md b/website-docs/04-api/02-api-automations.md new file mode 100644 index 00000000000..0be612bfaf5 --- /dev/null +++ b/website-docs/04-api/02-api-automations.md @@ -0,0 +1,74 @@ +# API 参考:自动化与通知 + +自动化由内置 WeKnora 助手以创建者身份执行。以下接口需要已登录用户,空间 Viewer+ 可使用,只能访问本人的任务和通知;API Key 未获准访问这些路由。 + +## 任务管理 {#tasks} + +| 方法与路径 | 用途 | +| --- | --- | +| `GET /api/v1/automations` | 列出本人的任务 | +| `POST /api/v1/automations` | 创建任务 | +| `POST /api/v1/automations/validate-trigger` | 校验计划并预览下次执行时间 | +| `GET /api/v1/automations/by-session/:session_id` | 查询会话关联任务 | +| `GET /api/v1/automations/:id` | 任务详情 | +| `PUT /api/v1/automations/:id` | 更新任务,使用 `AutomationPatch` 中出现的字段 | +| `DELETE /api/v1/automations/:id` | 删除任务 | +| `POST /api/v1/automations/:id/pause` | 暂停计划 | +| `POST /api/v1/automations/:id/resume` | 恢复计划 | +| `POST /api/v1/automations/:id/run` | 立即运行 | + +创建请求的必填字段为 `name`、`instruction`、`trigger`。示例: + +```json +{ + "name": "每日知识摘要", + "instruction": "读取我有权访问的知识库,概括新增内容并给出来源,不修改资料。", + "trigger": {"type": "cron", "expr": "0 9 * * *", "timezone": "Asia/Shanghai"}, + "session_mode": "per_run", + "access_level": "read_only", + "notify_on_success": true +} +``` + +| 字段 | 说明 | +| --- | --- | +| `trigger.type` | `cron` 或 `once` | +| `trigger.expr` | 五字段或六字段 Cron,也接受 `@daily` 等描述;最小间隔 5 分钟 | +| `trigger.at` | 一次性时间,RFC3339 或指定时区的本地时间;不存在的本地时间会被拒绝 | +| `trigger.timezone` | IANA 时区,省略为 UTC | +| `model_id` | 可选模型;空值使用助手默认模型 | +| `session_mode` | `per_run`(默认)或 `persistent` | +| `carry_last_result` | 为每次新会话带入上次成功结果,默认 false | +| `misfire_policy` | `skip`(默认)或 `run_once` | +| `overlap_policy` | `skip`(默认)或 `queue` | +| `access_level` | `read_only` / `confirm`(默认)/ `auto_write`,受助手权限上限约束 | +| `approval_timeout_minutes` | 默认 1440,范围 5–10080 | +| `limits.max_duration_minutes` | 默认 30,最多 240;不计审批等待时间 | +| `notify_on_success` | 默认 false;失败始终通知 | + +任务说明支持模板变量 `now`、`last_run_at`、`last_success_at`、`run_id`、`automation_name`,写成双花括号形式。自动化由内置助手执行,协作需求通过任务说明表达。 + +## 运行记录与授权 {#runs} + +| 方法与路径 | 用途 | +| --- | --- | +| `GET /api/v1/automations/:id/runs` | 运行记录 | +| `GET /api/v1/automation-runs/:id` | 一次运行详情 | +| `POST /api/v1/automation-runs/:id/cancel` | 取消该次运行 | +| `GET /api/v1/automations/:id/grants` | 任务的长期授权 | +| `GET /api/v1/automations/:id/grant-candidates` | 从已有审批中列出可授权候选 | +| `POST /api/v1/automations/:id/grants` | 以 `{"prompt_id":"..."}` 添加授权 | + +运行状态包括 `queued`、`running`、`awaiting_approval`、`succeeded`、`failed`、`cancelled`、`skipped` 和 `needs_attention`。后者表示执行中断且结果不确定,不应自动重试可能已经生效的写操作。 + +统一授权查询与撤销接口为 `GET /api/v1/agent/grants` 和 `DELETE /api/v1/agent/grants/:id`;审批答复使用 `POST /api/v1/agent/prompts/:prompt_id`。请求结构与校验见 `internal/handler/mcp_service.go`、`agent_grant.go`。 + +## 站内通知 {#notifications} + +| 方法与路径 | 用途 | +| --- | --- | +| `GET /api/v1/notifications` | 查询本人通知 | +| `POST /api/v1/notifications/read` | 标记已读,请求 `{"ids":["..."]}` | +| `DELETE /api/v1/notifications/read` | 清理已读通知 | + +实现参考:`internal/router/routes_automation.go`、`internal/handler/automation.go`、`internal/types/automation.go`。使用方式见[自动化](../03-features/27-automations.md)。 diff --git a/website-docs/04-api/02-api-chat.md b/website-docs/04-api/02-api-chat.md index 6139b4bb1a1..e06490ebbfb 100644 --- a/website-docs/04-api/02-api-chat.md +++ b/website-docs/04-api/02-api-chat.md @@ -4,6 +4,21 @@ 会话为“用户私有”资源,handler 内部强制归属校验;路由层为 Viewer+。API key:会话/聊天需 `chat` capability(或 full-access);消息搜索需 `message_history`;知识检索需 `retrieve`。 + +## 助手会话、权限与后台任务 {#assistant-runtime} + +会话的 `kind=assistant` 用于内置助手,助手会话历史与普通聊天分别管理。不要将普通会话 ID 传入助手恢复入口。自动化会话由系统创建并关联任务。 + +助手聊天请求使用 `assistant_access`(`read_only` / `confirm` / `auto_write`),受空间助手上限约束;普通智能体不使用此请求字段,其配置通过 `config.access_level` 控制。审批答复使用 `POST /api/v1/agent/prompts/:prompt_id`;可用授权的查询与撤销使用 `/api/v1/agent/grants`。详见[执行权限](../03-features/28-agent-permissions.md)。 + +| 方法与路径 | 用途 | +| --- | --- | +| `GET /api/v1/sessions/:id/background-work` | 查询会话后台任务 | +| `GET /api/v1/sessions/:id/background-work/:work_id` | 查询任务状态与输出 | +| `POST /api/v1/sessions/:session_id/background-work/:work_id/cancel` | 取消指定任务 | + +接口继续检查会话访问权限。`work_id` 是后台任务标识,不是终端进程 ID,也不是自动化运行 ID。 + ## 会话(/api/v1/sessions) ### POST /api/v1/sessions diff --git a/website-docs/04-api/02-api-knowledge.md b/website-docs/04-api/02-api-knowledge.md index 91220145008..8e9c3ee5ba4 100644 --- a/website-docs/04-api/02-api-knowledge.md +++ b/website-docs/04-api/02-api-knowledge.md @@ -6,6 +6,13 @@ 分块、标签与分块预览接口(`/chunks`、`/knowledge-bases/:id/tags`、`/chunker/preview`)在[分块与标签](./02-api-chunks.md)。 + +## 图片处理管线 + +`GET /api/v1/image-pipelines` 返回可选管线、参数声明和校验规则;`POST /api/v1/image-pipelines/validate` 校验配置。保存知识库时仍会再次校验,不能仅依赖前端通过。显式 `image_pipeline` 优先于旧 `image_attrs_enabled`。 + +知识库 PATCH 可用 `image_caption_enabled` / `image_ocr_enabled` 调整手动动作,这两个字段要求 `image_pipeline=default`。文档上传与重解析的 `process_config` 也可覆盖管线及其参数,未传项目沿用知识库配置。 + ## 知识库(/api/v1/knowledge-bases) ### POST /api/v1/knowledge-bases @@ -21,7 +28,7 @@ | `type` | string | 否 | `document`(默认)/`faq`/`wiki` | | `embedding_model_id` | string | 否 | Embedding 模型 ID | | `chunking_config` | object | 否 | 分块配置(chunk_size/overlap/separators/strategy…) | -| `image_processing_config` | object | 否 | 图片处理配置:`model_id` / `image_attrs_enabled` / `image_actions`(`{ ocr: { on: [...], on_unobserved: bool } }`)/ `image_vector_enabled`(图片向量索引与召回,默认 false,见[知识库功能](../03-features/02-knowledge-base.md)) | +| `image_processing_config` | object | 否 | 图片处理配置:`model_id` / `image_pipeline`(`default`、`smartocr`)/ `image_pipeline_params` / `image_attrs_enabled`(兼容字段)/ `image_actions`(`{ ocr: { on: [...], on_unobserved: bool } }`)/ `image_vector_enabled`(图片向量索引与召回,默认 false,见[知识库功能](../03-features/02-knowledge-base.md)) | | `vlm_config` | object | 否 | 图片理解配置:`enabled`(默认 false)与 `model_id`(已创建的多模态模型 ID)须同时设置才能启用;可选 `description_language`、`custom_instructions`(≤4000 字) | | `storage_provider_config` | object | 否 | 存储配置 | | `vector_store_id` | string | 否 | 向量库绑定(非法返回 code 2200/2201) | diff --git a/website-docs/05-clients/05-desktop.md b/website-docs/05-clients/05-desktop.md index d18848b69a9..9c0275d806c 100644 --- a/website-docs/05-clients/05-desktop.md +++ b/website-docs/05-clients/05-desktop.md @@ -8,6 +8,9 @@ WeKnora Lite 桌面应用基于 [Wails v2](https://wails.io),在桌面进程 v0.8.3 起,macOS 桌面版可在工具箱安装、升级并运行本机技能,详见[本机技能](../03-features/22-skills-sandbox.md#在-lite-桌面版安装本机技能)。 + +v0.9.0 默认临时会话目录使用 `~/.weknora/sessions/session-*`。本机删除和扩大沙箱访问范围的操作可触发审批,卡片会说明命令、路径和影响。此审批与偏好中的 `approval_mode=auto` 不是同一配置;`ask`、`full` 仍不是可选的全局模式。详见[本机沙箱](../03-features/22-skills-sandbox.md#lite-host)。 + ## 总体架构 {#_1-总体架构} 桌面应用由三部分组成(均在同一进程内): diff --git a/website-docs/06-development/02-database-schema.md b/website-docs/06-development/02-database-schema.md index e1292d5fd6c..c1ad3ffe999 100644 --- a/website-docs/06-development/02-database-schema.md +++ b/website-docs/06-development/02-database-schema.md @@ -20,14 +20,14 @@ WeKnora 使用版本化迁移维护数据库结构,PostgreSQL 与 SQLite 分 ```text migrations/ -├── versioned/ # PostgreSQL/ParadeDB 版本化迁移:000000-000118 共 119 版(238 个 .up/.down.sql 文件) -├── sqlite/ # SQLite 迁移:000000_init(压平的全量 schema)+ 000001-000036 增量版本 +├── versioned/ # PostgreSQL/ParadeDB 版本化迁移:000000-000133 共 134 版(268 个 .up/.down.sql 文件) +├── sqlite/ # SQLite 迁移:000000_init(压平的全量 schema)+ 000001-000050 增量版本 ├── paradedb/ # ParadeDB 附加脚本:00-init-db.sql、01-migrate-to-paradedb.sql(存量库切换) └── mysql/ # 00-init-db.sql,遗留的一次性 MySQL 建表脚本(未接入代码) ``` -- PostgreSQL 的 `versioned/` 从 `000000_init` 到 `000118_mcp_oauth_timestamp_tz`; -- `sqlite/` 以 `000000_init` 作为压平后的全量初始化(JSONB→TEXT、SERIAL→AUTOINCREMENT 等方言差异已适配),其后追加增量版本(当前到 `000036_messages_attachment_lookup`),同样由 golang-migrate 顺序执行; +- PostgreSQL 的 `versioned/` 从 `000000_init` 到 `000133_automation_assistant`; +- `sqlite/` 以 `000000_init` 作为压平后的全量初始化(JSONB→TEXT、SERIAL→AUTOINCREMENT 等方言差异已适配),其后追加增量版本(当前到 `000050_automation_assistant`),同样由 golang-migrate 顺序执行; - `uuid-ossp`、`vector`、`pg_trgm`、`pg_search` 等扩展由 `versioned/` 迁移自行创建(000000、000002);BM25 索引使用中文 Lindera 分词器建在 `embeddings.content` 上; - `paradedb/00-init-db.sql` 除扩展外还含一份旧版建表语句,**没有被 compose 或代码引用**。不要把它挂成数据库 initdb 脚本:它先建出的旧表会让 `000000_init` 失败。 @@ -94,6 +94,17 @@ migrations/ | 000116 | 将历史智能推理 Agent 的空 allowed_tools 数组写为显式默认工具列表 | | 000117 | messages.attachments 的有效用户消息 GIN 索引,用于附件引用保留查询 | | 000118 | MCP OAuth token/client 时间戳改为 timestamptz,旧字面值按 UTC 转换 | +| 000119 | 持久化审批 `agent_prompts`、运行挂起 `agent_run_suspensions` 与消息关联 | +| 000120–000121 | 租户助手配置、会话 kind | +| 000122 | 安排飞书 / Lark 相关数据源重新同步 | +| 000123 | resources 内容哈希索引 | +| 000124 | `agent_collaborations`,持久化多智能体协作 | +| 000125 | 清理符合条件的历史空图片分块 | +| 000126–000127 | MCP 工具风险、`agent_grants` 授权 | +| 000128 | 自动化任务、运行记录和站内通知 | +| 000129 | 会话所有者认证来源 | +| 000130 | 会话沙箱分配与用户共享机器 | +| 000131–000133 | 自动化执行时长、模型覆盖、统一由助手执行 | SQLite 版本号独立演进,不能与 PostgreSQL 数字一一对应: @@ -120,8 +131,13 @@ SQLite 版本号独立演进,不能与 PostgreSQL 数字一一对应: | 000034 | 补齐 MCP usage_instructions 与 mcp_metadata(对应 000092) | | 000035 | Agent 显式默认工具(对应 000116) | | 000036 | 有效用户消息附件查询索引(对应 000117,SQLite 使用普通索引) | +| 000037–000039 | 持久化审批、租户助手配置、会话 kind(对应 000119–000121) | +| 000040 | 飞书 / Lark 重同步(对应 000122) | +| 000041–000044 | 协作、空图片分块清理、MCP 风险与授权(对应 000124–000127) | +| 000045–000047 | 自动化、会话认证来源、沙箱分配(对应 000128–000130) | +| 000048–000050 | 自动化执行时长、模型覆盖、助手执行(对应 000131–000133) | -PostgreSQL 的 000099、000112、000115、000118 没有 SQLite 对应版本。 +PostgreSQL 的 000099、000112、000115、000118、000123 没有 SQLite 对应版本。 基线 schema 与后续增量共同决定新建库和已有库的最终结果;不能只看新增迁移文件名判断 Lite 是否有某张表。 diff --git a/website-docs/06-development/04-sandbox-deployment.md b/website-docs/06-development/04-sandbox-deployment.md index 50ca869c05d..95ecd16c0a4 100644 --- a/website-docs/06-development/04-sandbox-deployment.md +++ b/website-docs/06-development/04-sandbox-deployment.md @@ -6,7 +6,7 @@ 空间命名配置可选择 Docker、CubeSandbox、E2B,本文说明这三类后端的部署。Lite 桌面客户端另有依赖操作系统隔离能力的 `host` 后端,不属于服务端命名配置,构建要求见下文 [Lite 本机沙箱](#lite-本机沙箱);旧 `local` 宿主机进程后端已移除。Docker 直接使用 Engine API;E2B 使用控制面 REST 与 envd 数据面;Cube 保留专用适配器处理模板和网络策略。 -标准镜像由 `docker/Dockerfile.sandbox` 定义,包含 Python 3.12、Node.js 20、Bash、jq 与 `/workspace`。命令和文件操作默认使用沙箱内 root;保留 UID 1000 的 `user` 供显式按账号执行。跨会话隔离由容器或远端沙箱提供,不能把工作目录约定解释为 root 的文件权限限制。 +标准镜像由 `docker/Dockerfile.sandbox` 定义,包含 Python 3.12、Node.js 20、Bash、jq 与 `/workspace`。命令和文件操作默认使用沙箱内 root;保留 UID 1000 的 `user` 供显式按账号执行。每会话分配时,跨会话隔离由容器或远端沙箱提供;开启按用户复用后,同一机器内的会话没有操作系统级隔离。不能把工作目录约定解释为 root 的文件权限限制。 | 构建 target | 镜像标签后缀 | 用途 | | --- | --- | --- | @@ -109,7 +109,7 @@ Docker 终端是一个 `TTY=true` 的 exec,Engine API 不支持重新附着, | Windows | 尚未实现,报告不可用,不会退化为无隔离执行 | | Linux | 不支持 | -每条命令都是新的本机进程,没有会话级实例,因此不写入会话的沙箱绑定,也不做工作区检查点。用户通过系统目录选择框批准的项目目录保存在 `desktop-prefs.json` 的 `project_dirs`;会话只能绑定列表中的目录本身,不能绑定其子目录或手工输入的路径。`approval_mode` 当前只支持 `auto`(在工作区内自由读写、禁止联网),写入其他值会被拒绝。偏好文件位置见[桌面客户端](../05-clients/05-desktop.md#_5-偏好设置存储-cmd-desktop-prefs-go)。 +每条命令都是新的本机进程,没有会话级实例,因此不写入会话的沙箱绑定,也不做工作区检查点。用户通过系统目录选择框批准的项目目录保存在 `desktop-prefs.json` 的 `project_dirs`;会话只能绑定列表中的目录本身,不能绑定其子目录或手工输入的路径。`approval_mode` 当前只支持 `auto`,写入其他值会被拒绝。默认限制网络、工作区外写入和项目 `.git` 写入;v0.9.0 的本机审批可针对删除或额外访问范围请求用户确认,不等于开放一个全局无限制模式。偏好文件位置见[桌面客户端](../05-clients/05-desktop.md#_5-偏好设置存储-cmd-desktop-prefs-go)。 ## 开发验证 diff --git a/website-docs/07-releases/v0.9.0.md b/website-docs/07-releases/v0.9.0.md new file mode 100644 index 00000000000..bc32e5f0eeb --- /dev/null +++ b/website-docs/07-releases/v0.9.0.md @@ -0,0 +1,117 @@ +# v0.9.0 版本说明 + +发布状态:待发布 + +v0.9.0 新增 WeKnora 工作助手:解答 WeKnora 的版本、功能与配置问题,结合当前页面,以你的身份创建智能体、设置定时任务、整理知识和调整配置。复杂工作可以拆给多个智能体并行处理。你可以选择只读、修改前确认或自动执行,并逐项处理需要审批的操作。本次更新还完善了沙箱复用、文档解析、数据源同步与检索。 + +本次说明覆盖 v0.8.3 至 2026-10-27 的 main(`256a3f296`)。从 v0.8.3 升级前,请阅读[升级须知](#upgrade-notes)。完整变更见 [CHANGELOG](https://github.com/Tencent/WeKnora/blob/main/CHANGELOG.md)。 + +## v0.9.0 动画演示 {#video} + + + +## WeKnora 工作助手:解答产品问题,也处理实际任务 {#assistant} + +点击左上角 Logo 旁的新入口,右侧展开 WeKnora 助手。可以询问版本更新、功能用法、配置与故障排查问题;也可以结合正在查看的智能体、知识库、文档或设置页面,创建智能体、安排定时任务、整理资料或调整配置。助手以当前用户身份执行,遵循你的资源权限。 + + + + + +- **产品问答**:查询产品文档,了解版本变化、功能用法、配置和排查步骤。 +- **用户身份**:使用当前用户身份执行,能够访问和修改的范围由你的权限决定。 +- **创建与配置**:创建智能体、选择模型与知识库,或把重复工作设置为定时任务。 +- **页面上下文**:理解当前查看的资源,辅助打开页面与填写配置。 +- **独立历史**:助手会话单独保存,方便继续处理未完成的事。 + +当前页面帮助理解上下文,不会自动限制全部检索范围;通过 `@` 可以明确选择本轮使用的资料。详见 [WeKnora 助手](../03-features/26-weknora-assistant.md)。 + +## 多智能体协作:同时处理多个子任务 {#collaboration} + +将研究、分析或整理任务拆成多个独立部分,交给不同智能体处理。主任务汇总结果,子任务的状态和输出可以追踪,遇到待审批事项时由你继续处理。 + + + +支持临时协作智能体,也可使用同一空间中已有的智能推理智能体作为模板。子任务有独立会话,不会自动复制父会话的全部历史和附件,也不会扩大原有资源权限。详见[协作方式与限制](../03-features/26-weknora-assistant.md#collaboration)。 + +## 自动化:让任务按时间执行 {#automations} + +每天整理资讯、定期汇总资料、检查知识库状态,都可以保存为自动化任务。支持一次性执行与 Cron 周期计划,可指定时区、模型、会话方式和通知选项。 + +告诉助手要做什么、何时执行,即可用对话设置任务;也可在自动化页面逐项填写,检查计划后保存。 + + + + + +自动化由 WeKnora 助手以创建者身份执行。任务需要审批时暂停并通知你,运行结果和完整过程可从记录中查看;可以暂停计划、手动运行或取消一次执行。长期授权限定到任务、操作和资源范围,仍受当前权限检查。详见[自动化](../03-features/27-automations.md)。 + +## 执行权限与审批:决定哪些操作需要确认 {#permissions} + +新增「只读」「修改前确认」「自动执行」三种执行权限,区分查询、一般写入与破坏性操作。选择自动执行后,删除等高影响操作及强制审批工具仍需确认;选择只读时,不能通过审批临时绕过写入限制。 + + + +待审批事项与可恢复的运行状态持久化,刷新页面后可以继续处理。会话授权和自动化长期授权各有范围,权限变更与撤销仍然生效。详见[执行权限与审批](../03-features/28-agent-permissions.md)。 + +## 沙箱与后台任务 {#sandbox} + +- **按用户复用沙箱**:部署者可显式开启,同一用户与配置可复用机器,不同会话保留各自工作目录;默认仍按会话分配。 +- **后台 Shell**:长命令可以交给后台任务执行,查看输出、等待结果或取消,不必依靠 `nohup` 或手动脱离进程。 +- **技能更新策略**:按会话分配时,可选择下一轮或新会话使用更新;按用户复用时,不会因技能更新自动重建正在使用的机器。 +- **Lite 本机执行**:默认会话目录迁移到用户目录下的 `.weknora/sessions`;本机删除与扩大沙箱访问范围有更明确的审批。 + +共享机器中的会话目录不是操作系统级隔离。启用条件、已有会话行为和回滚注意事项见[技能与沙箱](../03-features/22-skills-sandbox.md#user-sandbox)。 + +## 数据源、解析与检索 {#knowledge} + +- **飞书 / Lark**:文档默认使用 blocks 解析,改进表格、图片、附件和目录同步;可在数据源设置中选择解析方式。 +- **钉钉 / Confluence**:钉钉支持按需保留目录结构;Confluence Server / Data Center 支持 PAT 认证。 +- **图片处理**:图像处理流程支持更细的配置,可按知识库启用 OCR 图片预处理。 +- **表格与网页**:Excel 可选择按显示百分比输出文本;HTML 可选择正文提取,默认行为保持不变。 +- **检索**:补充 RRF 融合设置、文档范围 MCP 搜索和知识图谱 JSON 接口,修复多维度向量隔离与检索错误处理。 +- **FAQ**:列表可切换展开方式,便于浏览与维护问答内容。 + +详见[文档解析](../03-features/03-document-parsing.md)、[数据源](../03-features/10-datasource.md)、[飞书云文档](../03-features/24-feishu-drive.md)与[检索引擎](../03-features/05-retrieval-engines.md)。 + +## 其他改进与修复 {#other-changes} + +- **模型与流式回答**:改进 SSE、多行数据、推理内容和拒答信息的兼容处理,减少异常流导致的内容丢失。 +- **文档处理**:改进 Office、PDF、EPUB、CSV 与图片的解析,限制异常文件的内存消耗,完善取消、重试和失败反馈。 +- **同步与访问**:修复游标与删除对账、附件下载和资源范围检查,改进受限请求的处理。 +- **会话与界面**:改进附件、工具结果、协作状态和后台任务的展示,完善助手在不同页面中的交互。 +- **IM、CLI 与 SDK**:修复群聊提及目标、渠道消息处理、命令行和客户端的兼容问题。 +- **网站**:新增助手、自动化、执行权限文档与本版本说明,更新配置、API、架构和数据库迁移指引。 + +## 升级须知 {#upgrade-notes} + +### 升级前 + +1. 备份数据库、文件存储与部署配置;需要保留的沙箱工作文件也应单独备份。 +2. 核对镜像版本与迁移条件。v0.8.3 之后新增 PostgreSQL `000119–000133`、SQLite `000037–000050` 迁移,涉及审批、助手、协作、自动化和沙箱分配。 +3. 检查助手与普通智能体的执行权限上限、MCP 工具审批策略和自动化授权范围。 + +### 数据与配置变化 + +- **飞书 / Lark 重同步**:迁移会安排已有相关数据源重新同步,升级后留意任务量、解析服务和模型调用。新数据源默认 blocks 解析;原来显式配置的 export 模式仍保留。 +- **空图片分块清理**:迁移会清理符合条件的历史空图片 caption、OCR 和向量分块;不是清空文档或原文件。 +- **沙箱复用为显式开关**:`WEKNORA_SANDBOX_USER_ALLOCATION=enabled` 需要 Redis。应先完成所有应用副本升级,再开启;已有绑定和检查点不会强制迁移。启用后不能直接降级到不理解共享分配的旧版本。 +- **日志格式变量**:优先使用 `WEKNORA_LOG_FORMAT`。只有它未设置时才回退到 `LOG_FORMAT`;非空模板需包含 `%msg`,显式空值表示不使用自定义格式。 +- **默认容量**:`WEKNORA_TENANT_DEFAULT_STORAGE_QUOTA_MB` 可为新空间设置默认配额,现有空间不会仅因修改环境变量而改变。 +- **解析选项**:OCR 预处理、HTML 正文提取和 Excel 百分比文本输出均需按需开启,不会自动重解析全部已有文档。 +- **超时**:MinerU Cloud 每批处理默认预算调整为 30 分钟;网页抓取默认共享 3 分钟预算。需同时检查上游代理、任务调用方和服务端的超时。 + +### 更新镜像与验收 + +正式 tag 与镜像发布后,将 `.env` 中 `WEKNORA_VERSION` 设置为 `0.9.0`,再更新对应版本的部署文件并执行: + +```bash +docker compose --profile full pull --policy always +docker compose --profile full up -d +docker compose ps +``` + +仅运行 `up -d` 可能继续复用本地旧镜像。升级后确认迁移完成、界面版本一致,抽查文档解析与检索,并用低风险任务验证助手审批、自动化通知和沙箱文件访问。具体部署方式见[安装部署](../01-getting-started/02-installation.md)。从更早版本升级时,还需阅读 [v0.8.3](v0.8.3.md#upgrade-notes) 与 [v0.8.2](v0.8.2.md#upgrade-notes) 的要求。 diff --git a/website-docs/README.md b/website-docs/README.md index e2d415b9387..cc47117a33a 100644 --- a/website-docs/README.md +++ b/website-docs/README.md @@ -12,6 +12,8 @@ 顶栏高 64px、横向铺满。两边使用 README 原版商标,共用颜色、字体和深浅色偏好;Logo 在当前标签返回官网。官网和文档各自使用适合当前页面的导航。 +首页视频区使用一个播放器和横向选择入口,默认展示 v0.9.0 发布视频,保留之前的产品全览。新视频和封面随静态站部署,旧视频沿用原有 GitHub 地址。视频在用户点击播放后才加载,切换会停止上一部视频。 + ## 发布方式:静态文件 + Nginx ### 1. 准备部署包 @@ -31,11 +33,11 @@ npm run package:site 只需把压缩包上传到服务器。服务器不需要 Node.js,也不需要 WeKnora 后端或独立文档服务。 -每次发布使用一个新的空目录,避免混入旧站点文件。下面的 `20260915-1` 是示例发布编号,后续发布换一个编号: +每次发布使用一个新的空目录,避免混入旧站点文件。下面的 `20261027-v090` 是示例发布编号,后续发布换一个编号: ```bash -sudo mkdir -p /srv/www/weknora/releases/20260915-1 -sudo tar -xzf weknora-site-v0.8.3.tar.gz -C /srv/www/weknora/releases/20260915-1 +sudo mkdir -p /srv/www/weknora/releases/20261027-v090 +sudo tar -xzf weknora-site-v0.9.0.tar.gz -C /srv/www/weknora/releases/20261027-v090 ``` 解压后该目录下应直接有 `index.html`、`404.html`、`docs/`,无需再套一层 `static-site/`。 @@ -46,7 +48,7 @@ sudo tar -xzf weknora-site-v0.8.3.tar.gz -C /srv/www/weknora/releases/20260915-1 ```nginx server_name 你的域名; -root /srv/www/weknora/releases/20260915-1; +root /srv/www/weknora/releases/20261027-v090; ``` 如果域名已有 HTTPS 配置,保留原来的证书及监听设置,把模板中的 `root`、`index` 和 `location` 规则合入现有站点配置。域名应指向这台服务器。 @@ -80,8 +82,8 @@ sudo nginx -s reload 在仓库根目录执行: ```bash -docker build -t weknora-site:0.8.3 website-docs -docker run -d --name weknora-site --restart unless-stopped -p 8080:80 weknora-site:0.8.3 +docker build -t weknora-site:0.9.0 website-docs +docker run -d --name weknora-site --restart unless-stopped -p 8080:80 weknora-site:0.9.0 ``` 访问 `http://服务器地址:8080/`。如使用域名和 HTTPS,让现有反向代理转发到该端口即可。镜像内已经包含官网、文档和 Nginx 路由配置。 @@ -89,12 +91,12 @@ docker run -d --name weknora-site --restart unless-stopped -p 8080:80 weknora-si 容器内的 Nginx 默认监听 80 端口,可以用环境变量 `WEBSITE_NGINX_PORT` 修改,无需重新构建。使用 `--network host`,或者部署平台要求容器监听指定端口时,这样设置: ```bash -docker run -d --name weknora-site --restart unless-stopped -e WEBSITE_NGINX_PORT=8080 -p 8080:8080 weknora-site:0.8.3 +docker run -d --name weknora-site --restart unless-stopped -e WEBSITE_NGINX_PORT=8080 -p 8080:8080 weknora-site:0.9.0 ``` 只是想换一个对外端口时,改 `-p` 左侧的宿主机端口就够了,例如 `-p 9000:80`。 -也可以只复制 `website-docs/` 目录,在该目录执行 `docker build -t weknora-site:0.8.3 .`。构建上下文必须是 `website-docs/`,宿主机的依赖、旧构建产物和部署包由 `.dockerignore` 排除。 +也可以只复制 `website-docs/` 目录,在该目录执行 `docker build -t weknora-site:0.9.0 .`。构建上下文必须是 `website-docs/`,宿主机的依赖、旧构建产物和部署包由 `.dockerignore` 排除。 从旧文档镜像迁移时,将容器端口映射或反向代理目标端口从 `8081` 改为 `80`(宿主机端口可自行选择,例如 `-p 8081:80`)。域名根路径 `/` 现在提供官网,`/docs/` 提供文档,反向代理需覆盖整个站点并保留请求路径。容器使用 Nginx 官方镜像的默认入口,无需额外的 `docker-entrypoint.sh`。 @@ -102,7 +104,7 @@ docker run -d --name weknora-site --restart unless-stopped -e WEBSITE_NGINX_PORT ```bash cd website-docs -npm run test:docker -- weknora-site:0.8.3 +npm run test:docker -- weknora-site:0.9.0 ``` ## 本地开发 @@ -174,4 +176,16 @@ npm run test:integration 首页每项重点只用一句话说明用途,配置条件放到对应功能文档;引用定位与图谱更新同列版本重点;附件阅读、用户管理、Seafile 与 Docker 终端保留次级链接。本机浏览器复用「执行任务/连接扩展」两张大图与 BrowserSkill 图标、GitHub 入口。版本说明面向使用者,提交计数、代码快照和撤回记录留在发布核对报告。 -首页章节底色按顺序交替:01/03/05/07 使用基础底色,02/04/06 与使用入口使用浅色背景;深色模式使用对应主题变量。所有章节背景铺满页面,正文使用同一宽度容器,浅色背景区负责相邻章节的分隔线,统一章节间距。 +首页章节底色按顺序交替:01/03/05/07 与使用入口使用基础底色,02/04/06/08 使用浅色背景;深色模式使用对应主题变量。所有章节背景铺满页面,正文使用同一宽度容器,浅色背景区负责相邻章节的分隔线,统一章节间距。 + +## v0.9.0 发布材料 + +当前版本准备状态为待发布;正式 tag、镜像和官网发布前,按 `docs/release-v0.9.0-audit.md` 的清单验收,并统一补齐发布日期。 + +- 文档与发布说明:`07-releases/v0.9.0.md`,新增助手、自动化和执行权限三篇指南。 +- 发布截图:助手「产品问答 / 任务协助」使用 `assistant-release-guide.png` 与 `assistant-overview.png`;自动化「一句话设置 / 手动设置」使用 `automation-conversation.png` 与 `automation-setup.png`;另有 `agent-collaboration.png` 和 `assistant-permissions.png`。实际浏览器采集,1920 × 1056,与上一版 3840 × 2112 保持相同宽高比,未放大像素或重绘界面。知识库使用卡片视图。 +- 截图来源为 `public/screenshots/`,首页同名副本由 prebuild 同步。 +- 视频源工程:主仓库 `misc/release-v0.9.0-video/`;72 秒、横屏 1920 × 1080、60 fps,全英文界面与字幕,无配音。 +- 群通知与 GitHub Release 文案:主仓库 `docs/release-v0.9.0-announcement.md`。 + +历史版本页与旧截图继续保留,确保旧链接可用。 diff --git a/website-docs/VERSION b/website-docs/VERSION index ee94dd834b5..ac39a106c48 100644 --- a/website-docs/VERSION +++ b/website-docs/VERSION @@ -1 +1 @@ -0.8.3 +0.9.0 diff --git a/website-docs/homepage/app/home.module.css b/website-docs/homepage/app/home.module.css index ae8201b898d..17716538773 100644 --- a/website-docs/homepage/app/home.module.css +++ b/website-docs/homepage/app/home.module.css @@ -38,17 +38,20 @@ .primary svg, .secondary svg { width: 18px; height: 18px; } .heroNote { color: var(--mute); font-size: 13px; margin: 19px 0 0; letter-spacing: .02em; } .videoFigure { margin: 0; border: 1px solid var(--rule); border-radius: 7px; overflow: hidden; box-shadow: 0 22px 55px -35px rgba(16, 31, 56, .28); background: var(--wk-surface); } -.videoTop { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 22px; color: var(--soft); background: var(--paper2); font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: .1em; } -.videoTop > span { display: inline-flex; align-items: center; gap: 10px; } -.videoDot { margin-inline: 5px; color: var(--gold); } -.videoStage { position: relative; aspect-ratio: 16 / 8.5; background: #14191e; } +.videoChoices { display: flex; gap: 4px; min-width: 0; } +.videoChoices > button { min-height: 32px; padding: 5px 12px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--soft); font: inherit; font-size: 13px; line-height: 1.5; white-space: nowrap; transition: background .2s, border-color .2s; } +.videoChoices > button:hover { background: var(--paper2); } +.videoChoices > button[aria-pressed="true"] { border-color: var(--wk-accent-border); background: var(--paper2); color: var(--ink); } +.videoChoices > button:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; } +.videoTop { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 12px; border-bottom: 1px solid var(--rule); } +.videoMeta { color: var(--mute); font: 11px ui-monospace, monospace; white-space: nowrap; } +.videoStage { position: relative; aspect-ratio: 16 / 9; background: #14191e; } .videoStage video { width: 100%; height: 100%; display: block; object-fit: contain; } .videoCover { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; background: linear-gradient(180deg, rgba(18,22,26,.24), rgba(18,22,26,.6)); transition: background .2s; } .playCircle { width: 82px; height: 82px; display: flex; align-items: center; justify-content: center; background: #fdfcfa; color: #101f38; border-radius: 50%; box-shadow: 0 4px 24px #0002; transition: transform .2s; } .playCircle svg { width: 29px; height: 29px; transform: translateX(-2px); fill: #101f38; stroke-width: 0; } .videoCover:hover .playCircle { transform: scale(1.08); } -.videoCoverTitle { font-size: clamp(18px, 2vw, 30px); font-weight: 500; letter-spacing: .07em; margin-top: 24px; } -.videoCoverHint { font-size: 14px; margin-top: 8px; color: #eee8dc; } +.videoCoverHint { font-size: 12px; margin-top: 14px; color: #eee8dc; } .videoError { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--paper2); color: var(--ink); gap: 18px; } .videoError a { display: inline-flex; gap: 8px; align-items: center; text-decoration: underline; } .videoError svg { width: 18px; height: 18px; } @@ -205,7 +208,7 @@ .heroAside > .eyebrow { display: none; } .heroDescription { max-width: 100%; } .heroNote { margin-top: 17px; } - .videoTop { padding: 11px 15px; font-size: 12px; } + .videoTop { padding: 8px 10px; } .videoCaption { align-items: start; flex-direction: column; padding: 13px 15px; gap: 3px; } .videoCaption a { font-size: 12px; } .trustBar { gap: 16px 24px; flex-wrap: wrap; justify-content: flex-start; padding: 24px 0; } @@ -242,14 +245,11 @@ .hero h1 { font-size: clamp(28px, 7.9vw, 38px); } .releaseLink { font-size: 12px; gap: 8px; } .heroDescription br { display: none; } - .videoTop { letter-spacing: 0; padding-inline: 10px; } - .videoTop > span { gap: 6px; } - .videoTop > span:last-child { display: none; } - .videoDot { margin: 0; } + .videoChoices > button { padding-inline: 9px; font-size: 12px; } + .videoQuality { display: none; } .playCircle { height: 52px; width: 52px; } .playCircle svg { width: 22px; height: 22px; } - .videoCoverTitle { font-size: 17px; margin-top: 13px; } - .videoCoverHint { font-size: 12px; margin-top: 4px; } + .videoCoverHint { margin-top: 9px; } .trustBar { font-size: 12px; gap: 13px; } .trustBar span { gap: 7px; } .section { padding-block: 60px; } diff --git a/website-docs/homepage/app/interactive.tsx b/website-docs/homepage/app/interactive.tsx index 896376593e0..2b2973e396f 100644 --- a/website-docs/homepage/app/interactive.tsx +++ b/website-docs/homepage/app/interactive.tsx @@ -5,7 +5,34 @@ import { Icon } from "./ui"; import { getThemeSnapshot, subscribeToTheme, toggleTheme } from "./theme"; import { siteNavigation, repositoryUrl, headerIcons, homeAssets } from "../../shared/header"; import s from "./home.module.css"; -const videoUrl = "https://github.com/user-attachments/assets/2819598d-3140-4623-814a-8162a22b653c"; +const productFilms = [ + { + id: "v090", + label: "v0.9.0 发布", + title: "v0.9.0 工作助手", + summary: "WeKnora 助手、多智能体协作、自动化与执行权限", + duration: "02:45", + durationLabel: "2 分 45 秒", + quality: "1080P · 60 FPS", + audio: "英文配音与字幕", + source: "/docs/videos/weknora-v0.9.0-en.mp4", + original: "https://github.com/user-attachments/assets/de0e490a-e738-405e-bb3a-64b63edd7278", + poster: "/docs/videos/weknora-v0.9.0-poster.png", + }, + { + id: "overview", + label: "产品全览", + title: "WeKnora 产品全览", + summary: "知识问答、Agent 推理与 Wiki 整理", + duration: "02:25", + durationLabel: "2 分 25 秒", + quality: "1080P", + audio: "英文旁白 / 中英字幕", + source: "https://github.com/user-attachments/assets/2819598d-3140-4623-814a-8162a22b653c", + original: "https://github.com/user-attachments/assets/2819598d-3140-4623-814a-8162a22b653c", + poster: `${homeAssets}/product/agent-chat.png`, + }, +]; function HeaderIcon({ name }: { name: string }) { return ; @@ -46,24 +73,38 @@ export function Header() { } export function ProductVideo() { const player = useRef(null); + const [selected, setSelected] = useState(0); const [started, setStarted] = useState(false); const [failed, setFailed] = useState(false); + const film = productFilms[selected]; function play() { setStarted(true); const video = player.current; if (video) { - video.src = videoUrl; + video.src = film.source; video.play().catch(() => { /* Keep native controls available when another playback gesture is required. */ }); video.focus(); } } return
-
产品演示 / PRODUCT FILM02:25 / 1080P
-
-
; } diff --git a/website-docs/homepage/app/page.tsx b/website-docs/homepage/app/page.tsx index 01440d09de6..9b8cb65b4e8 100644 --- a/website-docs/homepage/app/page.tsx +++ b/website-docs/homepage/app/page.tsx @@ -13,15 +13,20 @@ const repo = "https://github.com/Tencent/WeKnora"; const docs = "/docs/"; const guide = (path: string) => `${docs}${path}.html`; const modes = [ - { number: "01", icon: "search", label: "RAG", title: "回答有据可查", description: "结合语义与关键词检索查找相关资料,回答附带来源引用,可打开原文核对。", tags: ["混合检索", "多模态解析", "原文引用"], link: "03-features/05-retrieval-engines" }, - { number: "02", icon: "agent", label: "Agent", title: "用知识和工具完成任务", description: "检索资料、调用 MCP 工具与技能,在沙箱或本机浏览器中完成任务。保留长期记忆,对话中可追加要求、分叉或回滚。", tags: ["多步推理", "技能与沙箱", "本机浏览器", "MCP 工具", "长期记忆"], link: "03-features/07-agent" }, - { number: "03", icon: "wiki", label: "Wiki", title: "把文档整理成 Wiki", description: "从原始文档生成相互链接的 Wiki 页面与知识图谱,支持浏览、编辑和版本回滚。", tags: ["自动组织", "知识图谱", "版本回滚"], link: "03-features/14-wiki" }, + { number: "01", icon: "search", label: "RAG", title: "回答有据可查", description: "通过语义与关键词检索文字,结合多模态 Embedding 查找图片。点击回答中的引用,可以直接定位原文核对。", tags: ["混合检索", "多模态 Embedding", "原文引用定位"], link: "03-features/05-retrieval-engines", related: [ + { label: "图文检索", href: guide("03-features/02-knowledge-base") + "#multimodal-embedding" }, + { label: "引用与来源", href: guide("03-features/18-chat-experience") }, + ] }, + { number: "02", icon: "agent", label: "Agent", title: "用知识和工具完成任务", description: "按需阅读附件中的正文与图片,检索知识,调用 MCP 工具与技能。在沙箱或本机浏览器中执行任务,对话中可追加要求、分叉或回滚。", tags: ["附件按需读取", "多步推理", "技能与沙箱", "本机浏览器", "MCP 工具", "长期记忆"], link: "03-features/07-agent", related: [ + { label: "附件与对话", href: guide("03-features/18-chat-experience") }, + ] }, + { number: "03", icon: "wiki", label: "Wiki", title: "把文档整理成 Wiki", description: "从原始文档生成相互链接的 Wiki 页面与知识图谱,支持浏览、编辑和版本回滚。", tags: ["自动组织", "知识图谱", "版本回滚"], link: "03-features/14-wiki", related: [] }, ]; const releaseExtras = [ - { name: "附件按需读取", link: "03-features/18-chat-experience" }, - { name: "平台用户管理", link: "03-features/20-platform-admin" }, - { name: "Seafile 数据源", link: "03-features/25-seafile" }, - { name: "Docker 交互终端", link: "03-features/22-skills-sandbox" }, + { name: "按用户复用沙箱", link: "03-features/22-skills-sandbox" }, + { name: "图像处理管线", link: "03-features/03-document-parsing" }, + { name: "飞书 / Lark 同步", link: "03-features/24-feishu-drive" }, + { name: "检索与解析改进", link: "03-features/05-retrieval-engines" }, ]; const productShotExists = (src: string) => existsSync(join(process.cwd(), "public", src)); @@ -31,10 +36,16 @@ const withAvailability = (slide: SlideSource): GallerySlide => { return { name: slide.name, icon: slide.icon, title: slide.title, description: slide.description, link: slide.link, external: slide.external, shots: shots.map(shot => ({ ...shot, available: productShotExists(`${homeAssets}/product/${shot.image}.png`) })) }; }; const releaseSlides = [ - { name: "画廊", icon: "monitor", shots: [{ label: "浏览图片", icon: "monitor", image: "kb-image-gallery", alt: "知识库画廊:图片瀑布流与来源文档筛选" }, { label: "查看详情", icon: "file", image: "kb-image-gallery-detail", alt: "画廊图片详情:查看原图、图片描述、识别文字与来源文档" }], title: "文档图片,集中浏览", description: "集中浏览文档图片,按来源、描述和图片属性筛选,查看原图与出处。", link: guide("03-features/02-knowledge-base") + "#image-gallery" }, - { name: "多模态 Embedding", icon: "search", image: "kb-image-vector-settings", title: "文字与图片,共同检索", description: <>让图片、图表与文字共同参与知识检索,用自然语言查找相关内容。支持腾讯 WeMM-Embedding、Qwen3-VL-Embedding 等模型。, alt: "多模态 Embedding:知识库图像处理中的图片向量检索开关", link: guide("03-features/02-knowledge-base") + "#multimodal-embedding" }, - { name: "Wiki 图谱", icon: "channels", image: "wiki-graph-groups", title: "知识关系,按主题展开", description: "关联页面按主题分组,在全图与分组之间切换,沿关系找到值得继续阅读的内容。", alt: "Wiki 图谱全景:主题分组、页面关系与节点类型图例", link: guide("03-features/14-wiki") + "#wiki-graph" }, - { name: "原文引用定位", icon: "trace", image: "chat-source-location", title: "从回答,回到原文", description: "点击回答中的引用,在原始文档中定位对应段落,对照上下文核对答案。", alt: "回答引用与原始文档中的对应段落高亮", link: guide("03-features/18-chat-experience") + "#查看回答与来源" }, + { name: "WeKnora 助手", icon: "agent", shots: [ + { label: "产品问答", icon: "file", image: "assistant-release-guide", alt: "向 WeKnora 助手询问 v0.9.0 的更新,依据产品文档了解新增能力" }, + { label: "任务协助", icon: "agent", image: "assistant-overview", alt: "在知识库卡片视图中,让助手阅读活动资料并给出可执行的筹备建议" }, + ], title: "了解 WeKnora,也帮你处理任务", description: "询问版本更新、功能用法与配置问题。助手结合当前页面,以你的身份查资料、创建智能体、设置定时任务,或修改有权管理的内容。", link: guide("03-features/26-weknora-assistant") }, + { name: "多智能体协作", icon: "channels", image: "agent-collaboration", title: "多个智能体同时处理任务", description: "把搜集、整理、核对分给多个智能体同时处理。子任务有独立对话,进度和结果都能查看。", alt: "多个智能体分别整理读书会资料并汇总结果", link: guide("03-features/26-weknora-assistant") + "#collaboration" }, + { name: "自动化", icon: "history", shots: [ + { label: "一句话设置", icon: "agent", image: "automation-conversation", alt: "用一句话请 WeKnora 助手设置自动化,核对任务和执行时间" }, + { label: "手动设置", icon: "history", image: "automation-setup", alt: "在自动化表单中手动设置重复频率、时间和时区,并预览后续运行时间" }, + ], title: "一句话安排,也能手动设置", description: "告诉助手要做什么、何时执行,或在表单中逐项设置。任务以你的身份按计划运行,结果和待审批事项会通知你。", link: guide("03-features/27-automations") }, + { name: "执行权限与审批", icon: "shield", image: "assistant-permissions", title: "决定哪些操作需要确认", description: "选择只读、修改前确认或自动执行。确认前可查看具体操作;删除等高影响操作仍须批准。", alt: "在卡片知识库中,核对助手要修改的文档和新标题后批准", link: guide("03-features/28-agent-permissions") }, ].map(withAvailability); const browserSlides = [ { name: "执行任务", icon: "browser", title: "在自己的浏览器里完成任务", @@ -49,6 +60,10 @@ const browserSlides = [ external: { label: "BrowserSkill", href: "https://github.com/Tencent/BrowserSkill", logo: "browserskill.png" }, }, ].map(withAvailability); +const knowledgeSlides = [ + { name: "画廊浏览", icon: "sources", image: "kb-image-gallery", title: "集中浏览文档里的图片", description: "把文档中的图表、照片和截图放在一起浏览。按来源文档筛选,或搜索图片描述与识别文字,找到需要的那一张。", alt: "知识库画廊:集中浏览文档图片,按来源文档搜索和筛选", link: guide("03-features/02-knowledge-base") + "#image-gallery" }, + { name: "图片详情", icon: "search", image: "kb-image-gallery-detail", title: "查看原图,也看清它来自哪里", description: "放大查看图片,同时阅读图片描述与识别文字。需要核对上下文时,可以打开来源文档继续阅读。", alt: "画廊图片详情:原图、图片描述、识别文字与来源文档", link: guide("03-features/02-knowledge-base") + "#image-gallery" }, +].map(withAvailability); const wikiSlides = [ { name: "知识图谱", icon: "channels", image: "wiki-graph-groups", title: "从整体关系,聚焦一组页面", description: "关联页面分组展示,配上主题说明。聚焦感兴趣的分组,沿链接阅读相关内容,随时返回全图。", alt: "Wiki 图谱:关联页面分组、主题说明和分组聚焦入口", link: guide("03-features/14-wiki") + "#wiki-graph" }, { name: "页面浏览", icon: "wiki", image: "wiki-browser", title: "按主题整理,保留出处", description: "开启 Wiki 后,从知识库文档中提取人物、产品和概念,生成带来源引用的页面,按目录浏览。", alt: "Wiki 浏览器:按主题组织的目录、年假页面、关联条目和原始文档引用" }, @@ -69,7 +84,7 @@ export default function Home() {
- v0.8.3 画廊 · 多模态 Embedding · Wiki 图谱 · 原文引用 + v0.9.0 助手 · 多智能体协作 · 自动化 · 执行权限

帮你找到答案,
并将知识付诸实践。

@@ -87,12 +102,15 @@ export default function Home() {
{modes.map(mode => )}
-

02 / INTRODUCING v0.8.3

图文检索、原文核对与知识组织

查看版本说明
- +

02 / INTRODUCING v0.9.0

WeKnora 助手、多智能体协作与自动化

版本说明与发布视频
+
本次更新还包括{releaseExtras.map(item => {item.name} )}
@@ -103,27 +121,31 @@ export default function Home() {

04 / SKILLS & SANDBOX

智能体可以运行技能,也能生成文件。

了解技能与沙箱
-
+ +
-

05 / AUTOMATIC WIKI

把文档整理成可浏览的 Wiki。

+

06 / AUTOMATIC WIKI

把文档整理成可浏览的 Wiki。

了解 Wiki 的使用方式
-
-

06 / INTEGRATIONS

数据源与工具集成

同步飞书、Confluence、GitLab 等平台的资料,
通过 IM、浏览器插件、MCP Server 或 API 查询和使用。

+
+

07 / INTEGRATIONS

数据源与工具集成

同步飞书、Confluence、GitLab 等平台的资料,
通过 IM、浏览器插件、MCP Server 或 API 查询和使用。

-

导入与同步资料

上传文件、导入网页,或连接外部数据源。

{dataSources.map(item => )}
数据源集成
+

导入与同步资料

上传文件、导入网页,或连接外部数据源。Seafile 等目录型数据源支持按目录同步与增量更新。

{dataSources.map(item => )}
团队知识库与智能体
理解 · 检索 · 推理 · 行动

在常用工具中访问

支持 IM 问答、浏览器插件、MCP 客户端和开发工具集成。

{clients.map(item => )}
客户端与渠道

通过 MCP Server 共享知识

让 Claude、Cursor 等 AI 工具连接团队知识库,直接检索资料和提问。

配置 MCP 端点
模型由你选择 · 内置 30 家厂商 查看全部 {modelProviders.map(item =>

)}
-
-

07 / BUILT FOR YOUR TEAM

私有化部署,
按团队需要管理权限。

配置数据存储与成员权限,
查看操作记录和任务运行状态。

-

部署与存储

支持 Docker、Kubernetes 与 Helm,也提供 Lite 单机版和桌面应用。模型、向量数据库和存储后端可按需替换,支持本地推理。

空间与资源权限

多空间隔离与四级角色矩阵。API Key 按能力和知识库限定范围,支持 OIDC 身份集成,可限制服务只访问白名单域名。

审计与运行监控

空间审计日志、运行时任务队列面板与 Langfuse 追踪,帮助团队定位问题、管理运行状态。

+
+

08 / BUILT FOR YOUR TEAM

私有化部署,
按团队需要管理权限。

配置数据存储与成员权限,
查看操作记录和任务运行状态。

+

部署与存储

支持 Docker、Kubernetes 与 Helm,也提供 Lite 单机版和桌面应用。模型、向量数据库和存储后端可按需替换,支持本地推理。

用户与资源权限

集中创建和停用账号、设置管理员。通过空间角色、资源共享、API Key 范围和 OIDC 身份接入管理访问权限,也可限制服务只访问白名单域名。

平台用户管理

审计与运行监控

空间审计日志、运行时任务队列面板与 Langfuse 追踪,帮助团队定位问题、管理运行状态。

-
+

GET STARTED

选择适合你的使用方式。

diff --git a/website-docs/homepage/public/docs/_home/product/agent-collaboration.png b/website-docs/homepage/public/docs/_home/product/agent-collaboration.png new file mode 100644 index 00000000000..18fcfb310ed Binary files /dev/null and b/website-docs/homepage/public/docs/_home/product/agent-collaboration.png differ diff --git a/website-docs/homepage/public/docs/_home/product/assistant-overview.png b/website-docs/homepage/public/docs/_home/product/assistant-overview.png new file mode 100644 index 00000000000..2bf85432ac7 Binary files /dev/null and b/website-docs/homepage/public/docs/_home/product/assistant-overview.png differ diff --git a/website-docs/homepage/public/docs/_home/product/assistant-permissions.png b/website-docs/homepage/public/docs/_home/product/assistant-permissions.png new file mode 100644 index 00000000000..af1b246c9cb Binary files /dev/null and b/website-docs/homepage/public/docs/_home/product/assistant-permissions.png differ diff --git a/website-docs/homepage/public/docs/_home/product/assistant-release-guide.png b/website-docs/homepage/public/docs/_home/product/assistant-release-guide.png new file mode 100644 index 00000000000..197ec9c3e86 Binary files /dev/null and b/website-docs/homepage/public/docs/_home/product/assistant-release-guide.png differ diff --git a/website-docs/homepage/public/docs/_home/product/automation-conversation.png b/website-docs/homepage/public/docs/_home/product/automation-conversation.png new file mode 100644 index 00000000000..c678703f8e5 Binary files /dev/null and b/website-docs/homepage/public/docs/_home/product/automation-conversation.png differ diff --git a/website-docs/homepage/public/docs/_home/product/automation-setup.png b/website-docs/homepage/public/docs/_home/product/automation-setup.png new file mode 100644 index 00000000000..da24d0c2c90 Binary files /dev/null and b/website-docs/homepage/public/docs/_home/product/automation-setup.png differ diff --git a/website-docs/homepage/scripts/audit-content.mjs b/website-docs/homepage/scripts/audit-content.mjs index 3d9658a127d..3e2cabac822 100644 --- a/website-docs/homepage/scripts/audit-content.mjs +++ b/website-docs/homepage/scripts/audit-content.mjs @@ -6,15 +6,28 @@ const output = join(process.cwd(), 'out'); const html = await readFile(join(output, 'index.html'), 'utf8'); const visible = html.replace(/]*>[\s\S]*?<\/script>/g, '').replace(/<[^>]+>/g, ''); assert.equal((html.match(/]+preload="none"/, 'Video should not load before user interaction'); -assert.match(html, /https:\/\/github.com\/user-attachments\/assets\/2819598d-3140-4623-814a-8162a22b653c/, 'Use the README video'); -assert.ok(!/]+autoplay/i.test(html), 'Do not autoplay the product film'); +const films = html.match(/
/)?.[0]; +assert.ok(films, 'Keep the product film on the homepage'); +assert.equal((films.match(/]*aria-pressed="true"[^>]*>([\s\S]*?)<\/button>/)?.[1]; +assert.ok(selectedFilm?.includes('v0.9.0 发布'), 'Feature the current release first'); +assert.ok(films.includes('WeKnora 产品全览'), 'Keep the previous product film selectable'); +assert.match(films, /poster="\/docs\/videos\/weknora-v0.9.0-poster.png"/, 'Use the approved release cover'); +assert.match(films, /https:\/\/github.com\/user-attachments\/assets\/de0e490a-e738-405e-bb3a-64b63edd7278/, 'Link to the current README film'); +assert.match(films, /]+preload="none"/, 'Video should not load before user interaction'); +assert.ok(!/]+(?:autoplay|\bsrc=)/i.test(films), 'Load the selected film only after playback is requested'); +const capabilities = html.match(/
/)?.[0]; +assert.ok(capabilities && !capabilities.includes('画廊') && !capabilities.includes('继续了解'), 'Keep gallery and cross-topic links out of the RAG, Agent and Wiki overview'); +const gallery = html.match(/