Compare commits

...
Author SHA1 Message Date
weichen 07a6acfc21 Ignore local mimosa hook status artifacts 2026-09-30 16:15:59 +00:00
weichen 4f3b22d601 Record the user adjudication of the preview decision points
Why: D1-D5 were settled by the user (deps in, full-fidelity pptx, OG
card plus optional embed, dual placement); the proposal status must
reflect that before implementation starts.

Evidence: decision section rewritten with the settled choices and the
accepted trade-off on D2 (fall back to outline level with evidence only
if no Vite-compatible renderer builds).

Impact: documentation only.

Refs: task feature/file-preview-caps.
2026-09-30 16:15:41 +00:00
weichen f0361f3856 Merge pull request 'Record Gitea access facts in AGENTS.md' (#24) from feature/gitea-access-facts into main 2026-09-30 16:08:29 +00:00
weichen baf8f22aa7 Record Gitea access facts in AGENTS.md
Why: agents rediscovered Gitea hosts and credential locations from
scratch each session, and the retired git-panel host kept failing with
TLS broken-pipe errors before the right host was recalled.

Evidence: curl git-home...:30319/api/v1/version with token from
~/.secrets/gitea -> {"version":"1.27.3"}; ssh -p 31411 git@git-ssh...
(BatchMode) -> "Hi there, weichen!" with key ~/.ssh/home_gitea (ED25519,
SHA256:GYXaOXIMeloQ1fKSfdJ/ndgPQzs/Ix7Hk62ekfkfQ20). Same section already
merged in Agent-System-Dev (PR #73).

Impact: AGENTS.md only; records hosts and credential locations, no
secret values (baseline hard boundary 2).

Refs: Agent-System-Dev PR #73
2026-09-30 16:06:17 +00:00
weichen ffb2aa7cc4 Merge pull request 'Propose file previews plus reserved delete and fs-tool capabilities' (#23) from feature/file-preview-proposal into main 2026-09-30 16:03:25 +00:00
3 changed files with 26 additions and 7 deletions
+1
View File
@@ -0,0 +1 @@
.mimosa/
+17
View File
@@ -17,3 +17,20 @@
- 模块边界、公开契约与隔离档位见 `policy/modules/`(如有)与 PROJECT.md。 - 模块边界、公开契约与隔离档位见 `policy/modules/`(如有)与 PROJECT.md。
- 跨仓 gitlink 变更须经组合验证后在 Dev 仓推进;受保护分支经 PR 合入。 - 跨仓 gitlink 变更须经组合验证后在 Dev 仓推进;受保护分支经 PR 合入。
- 验证命令见 PROJECT.md「验证」节;完成声明须附实际命令输出证据。 - 验证命令见 PROJECT.md「验证」节;完成声明须附实际命令输出证据。
## Gitea 与 Git 访问事实(2026-09-30 实测)
历史文档与旧链接里的 `git-panel.u1680832.nyat.app:30319` 已失效(TLS 握手失败),
见到一律按过期处理,不要再试。当前权威通道:
- **Web / API(HTTPS)**:`https://git-home.u1680832.nyat.app:30319`(Gitea 1.27.3,
API 前缀 `/api/v1`;偶发 broken pipe / 超时,重试即可)。
- **Git over SSH**:`ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/<Repo>.git`
(各仓 origin 与 gitlink 均为此格式)。
- **API token**:`~/.secrets/gitea`,两行键值 `URL_PREFIX=…` 与
`ACCESS_TOKEN=<40 位 hex>`;取值 `grep ACCESS_TOKEN ~/.secrets/gitea | cut -d= -f2-`,
用作 `Authorization: token <值>` 请求头。**token 值不入仓、不回显、不写进产出物**
(baseline 硬边界 2:只记录来源、字段与可用状态)。
- **SSH key**:`~/.ssh/home_gitea`(ED25519,公钥指纹
`SHA256:GYXaOXIMeloQ1fKSfdJ/ndgPQzs/Ix7Hk62ekfkfQ20`,Gitea 侧密钥名 GMKtec);
`~/.ssh/config` 已有 `git-ssh.u1680832.nyat.app` 主机条目,克隆/推送直接可用。
@@ -1,6 +1,6 @@
# 文件预览与保留能力(工件删除 / fs 工具)方案 # 文件预览与保留能力(工件删除 / fs 工具)方案
日期:2026-09-30;状态:待裁定(D1–D5 决策点见 §5);作者:weichen + Agent 日期:2026-09-30;状态:已裁定(§5),实施任务 feature/file-preview-caps;作者:weichen + Agent
关联:2026-09-30-ui-redesign-and-auth.md §9(上轮"下载为主"的非目标,本提案补齐) 关联:2026-09-30-ui-redesign-and-auth.md §9(上轮"下载为主"的非目标,本提案补齐)
任务:feature/file-preview-proposal(本仓 PR 见任务卡) 任务:feature/file-preview-proposal(本仓 PR 见任务卡)
@@ -96,13 +96,14 @@ mammoth + xlsx + jszip 全部动态 import,仅对应格式首次预览时加
| P3 URL 预览 | /api/url-preview + LinkPreview + 输入框 URL 卡 | go 测试:OG 解析正例 + SSRF 负例(localhost/私网/非 http 协议/超时);头链:链接卡→右栏预览 | | P3 URL 预览 | /api/url-preview + LinkPreview + 输入框 URL 卡 | go 测试:OG 解析正例 + SSRF 负例(localhost/私网/非 http 协议/超时);头链:链接卡→右栏预览 |
| P4 fs 工具 | 实现+门控+沙箱+测试(默认关) | go 测试:穿越负例全红、门控关时不注册;开启后 write_file 产物出现在工件面板 | | P4 fs 工具 | 实现+门控+沙箱+测试(默认关) | go 测试:穿越负例全红、门控关时不注册;开启后 write_file 产物出现在工件面板 |
## 5. 决策点(待裁定后另立实施任务) ## 5. 决策点(2026-09-30 用户已裁定)
- **D1 Office 依赖**:引入 mammoth/SheetJS/JSZip(动态加载,推荐)|不引入(Office 维持下载)。 - **D1 Office 依赖**:✅ **引入** mammoth/SheetJS(动态加载,不进主包)。
- **D2 pptx 深度**:文本大纲级(推荐)|全保真(需重型依赖,不推荐)|不做。 - **D2 pptx 深度**:✅ **全保真渲染**(用户选择;接受重型依赖与还原度折衷——实施时在 pptx-preview / pptx2html 候选中取与 Vite 兼容者,若均不可构建则带回证据退回文本大纲级再裁定)。
- **D3 URL 预览形态**:OG 卡 + 可选尝试内嵌(推荐)|仅 OG 卡|仅 iframe(不可靠,不推荐)。 - **D3 URL 预览形态**:✅ **OG 卡 + 可选尝试内嵌**。
- **D4 预览落位**:右栏 + 弹窗双落位(推荐)|仅弹窗|仅右栏。 - **D4 预览落位**:✅ **右栏 + 弹窗双落位**。
- **D5 fs 开关可见性**:仅配置可开、设置页不显示(推荐)|设置页显示开关。 - **D5 fs 开关可见性**:按推荐默认执行——仅配置/环境可开(runtime.fsTools 默认 false),设置页不显示开关。
- 实施任务:feature/file-preview-caps(P1–P4 一体交付)。
## 6. 边界与不做 ## 6. 边界与不做