mirror of
https://github.com/makecindy/cindy.git
synced 2026-12-04 04:50:40 +08:00
* feat: preview remote HTML snapshots with peer file transport Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(files): 网页预览准备使用中性加载提示 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(files): 使用 SHA-256 生成远程缓存标识 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(remote-files): guard preview requests and owner-scoped cache completion Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(remote-files): guard preview media reference ingestion Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(files): 统一两端音视频流式读取策略 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(mobile): 区分文件预览与下载的读取意图 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(files): 避免手机预览持有短期 peer 文件地址 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(security): 为正式包文件传输页面注入 CSP Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(mobile): 统一处理文件 WebView 进程终止 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(mobile): 为 HTML 快照拒绝设备权限 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(files): enforce snapshot budgets before OSS uploads Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(files): 按需预览远程 HTML 并支持 2 GiB 文件传输 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * test(files): 复用真实的跨平台 HTML 路径转换 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(mobile): HTML 入口加载失败进入重试态 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(mobile): 取消 HTML 预览连接超时任务 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * chore: regenerate design inventory after main merge Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(mobile): keep on-demand document errors retryable Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(files): cancel shared remote reads when unused Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(mobile): keep async preview reads alive Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(files): serialize desktop HTML preview resource copies Reuse the existing file-read queue so one preview cannot overlap 2 GiB materializations. Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * test(desktop): 对齐主干 bootstrap 接线格式 GitHub CI 合入最新 main 后 bootstrap 换行变化,源码契约测试仍按旧单行断言。 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(files): allow SSH HTML preview and reuse on-demand paths SSH on-demand HTML was rejected as 415. Repeated cache-busted requests now reuse the preview-owned file instead of fetching again. Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(files): keep on-demand preview files until close Native on-demand responses no longer delete the materialized file when the first socket closes, and desktop reuses the preview-owned copy for the same path. Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> --------- Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
开发规则
这里存放 Cindy 客户端仓的工程约束、实现规则、开发流程和验证方法。
收录标准
- 规则说明“代码怎样实现、怎样验证或哪些技术操作被禁止”。
- 每条规则应写清触发条件、必须做什么、禁止做什么、验证方法和例外条件。
- 只适用于单个目录或模块的规则,优先放到对应目录的嵌套
AGENTS.md;需要跨目录 复用或需要较长解释的规则放在这里。 - 可以由 lint、测试、类型检查或脚本强制的要求,应同时落实到自动化检查,不能只靠 Agent 阅读文字。
当前文档
repo-map.md:仓库地图——apps、packages 与顶层目录的定位导航。environment-setup.md:公共开发环境、依赖安装与 submodule 准备。model-catalog-maintenance.md:模型配置与下发统一入口——架构图、字段职责、覆盖顺序、修改位置、代码导航与发布验收。model-catalog-runtime.md:模型窗口、压缩预算、原生缓存、参考价与显示细则;从架构入口按需进入。desktop-development.md:Desktop 的 Agent 安全启动入口与 分层验证命令。electron-security-and-process-boundaries.md: Electron 进程职责、Renderer 信任模型、BrowserWindow、独立辅助窗口统一生命周期、 preload、IPC 与远程内容安全边界。credentials-and-local-storage.md:凭证不入仓、 用户持久数据、临时文件与测试目录的安全边界。media-storage-and-protocols.md:Desktop 媒体总仓、cindy-media://协议、引用生命周期与历史兼容边界。database-and-migrations.md:Desktop SQLite schema、 append-only migration、companion script、隔离运行与异步数据库访问规则。mobile-development.md:Mobile 的模拟器开发、分层验证与 专项文档入口。orca-team-architecture.md:Orca 多 Agent 协同架构与运行时约束。maker-core-and-agent-behavior.md:packages/maker-core的 Agent 能力归属、代码优先确定性、缓存率/性能/准确性指标不可回退,以及 system prompt 改动门禁。plugin-security-and-authoring.md:插件(.cindy) 运行时沙箱与进程隔离、权限即授权边界、网络/凭证/资源交接、存量插件向下兼容红线 (升级不得要求用户重装或重新确认),以及作者契约与编写手册(FORGE_GUIDE)同步。cindy-updater.md:客户端自动更新链路的 owner 确认门禁与高风险 约束。engineering-conventions.md:统一日志、IPC 错误协议 (throwIpcError)、main 侧默认带测试、macOS/Windows 双端兼容,以及 UI 文案的 i18n 落地与pnpm check:i18n门禁。log-upload-and-redaction.md:客户端日志采集/脱敏/上报的 三条不变量(记录边界、白名单方向 deny-by-default、标记代次 + 原子清除)、四层收窄管道、 授权闸、区域绑定与崩溃时序。protocol-compatibility.md:两仓本地协议实现、device-link relay 层、插件来源与 wire protocol 兼容。architecture-invariants.md:package 与 render/main 解耦、 main 进程静态依赖,以及主界面布局树不变量。configuration-and-overrides.md:配置可见性分层、默认值 与用户 override 分离、默认值迁移与恢复默认语义。remote-and-mobile-adaptation.md:SSH 远程工作区、 device-link allowlist、手机版入口与功能类 PR 的远程/手机三选一门禁。development-workflow.md:worktree dogfooding 会话契约、提 PR 与直推main门禁,以及 Review P0/P1/P2 严重度口径。