feat: OpenMesh 基础平台与 MD/PDF 转换技能
Some checks failed
CI / pytest (push) Has been cancelled
CI / gui-unit (push) Has been cancelled
CI / gui-e2e (push) Has been cancelled

- 后端: coworker 智能体框架, WS API, 文件上传, 附件处理
- 前端: Open WebUI, 文件全量走 upload API (含 MD/TXT/JSON 等文本类)
- 技能: md-to-office (pandoc + wkhtmltopdf)
- 修复: 上传文件路径丢失, Agent 搜索浪费, 输出文件跑到 uploads/
- 打包: PyInstaller one-dir, 预打包 pandoc/wkhtmltopdf/chromium
This commit is contained in:
2026-09-13 23:41:04 +08:00
commit 6f402ffcee
638 changed files with 154534 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
import { test, expect } from "./fixtures";
// SKILLS-SPEC §9 journey 4 — the "/" force-run: popup pick inserts the inline `/name `
// prefix, the send carries the skill as its OWN WebSocket field (never as message text),
// and the transcript shows ONE truthful bubble with exactly what the user typed.
test("skills-forcerun: popup pick → inline /name → skill rides the frame → one bubble", async ({ page }) => {
await page.goto("/");
await page.getByText("Draft the launch note").first().click();
// "/" opens the popup; picking inserts the inline prefix (no chip) and keeps focus.
const box = page.getByPlaceholder(/Ask the coworker/);
await box.fill("/");
await expect(page.getByTestId("skill-popup")).toBeVisible();
await page.getByText("/weekly-report").click();
await expect(box).toHaveValue("/weekly-report ");
await box.type("cover last week");
await box.press("Enter");
// ONE user bubble, showing the literal line the user typed — never the model-facing
// "load this skill…" framing (§6: the _display contract).
await expect(page.getByText("/weekly-report cover last week")).toHaveCount(1);
await expect(page.getByText(/Use the skill/)).toHaveCount(0);
// The fake agent echoes what actually rode the wire: text WITHOUT the prefix, and the
// skill as its own field.
await expect(page.getByText(/\[skill=weekly-report\]/)).toBeVisible();
await expect(page.getByText(/Echo: cover last week/)).toBeVisible();
});