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,66 @@
// The Connectors LIST (UX-DECISIONS §21): connected connectors first in their own
// section with a health chip, rows navigate to the connector's detail subpage
// (breadcrumb back), available connectors get a Connect pill → add-connection modal
// with One click | Manual pills for multi-mode connectors.
import { expect } from "@playwright/test";
import { test } from "./fixtures";
async function openConnectors(page) {
await page.goto("/");
await page.getByTestId("account-row").click();
await page.getByRole("button", { name: "Connectors", exact: true }).click();
}
test("connected connectors come first with status + health chip", async ({ page }) => {
await openConnectors(page);
const slack = page.getByTestId("connector-slack");
await expect(slack).toContainText("2 workspaces · relay");
// signed out + relay mode → the honest chip is the actionable one
await expect(slack).toContainText("Sign-in needed");
// available section renders the not-connected connectors with a Connect pill
await expect(
page.getByTestId("connector-telegram").getByRole("button", { name: "Connect" }),
).toBeVisible();
});
test("row navigates to the detail subpage; breadcrumb returns", async ({ page }) => {
await openConnectors(page);
await page.getByTestId("connector-slack").click();
await expect(page.getByTestId("slack-workspaces")).toBeVisible();
await page.getByTestId("connectors-breadcrumb").click();
await expect(page.getByTestId("connector-slack")).toContainText("2 workspaces · relay");
});
test("generic detail page: tools + two-way blocks + disconnect for telegram-alikes", async ({
page,
}) => {
await openConnectors(page);
// Browser is keyless-connected → generic page, no Disconnect for auth=none
await page.getByTestId("connector-browser").click();
await expect(page.getByRole("heading", { name: "Browser" })).toBeVisible();
await expect(page.getByRole("button", { name: "Disconnect" })).toHaveCount(0);
await page.getByTestId("connectors-breadcrumb").click();
});
test("Connect on a multi-mode connector opens the modal with One click | Manual pills", async ({
page,
}) => {
await openConnectors(page);
// make slack disconnected for this test: disconnect both workspaces via its page is
// heavy — instead assert the modal via the detail page's Add workspace in the slack spec;
// here we verify the generic modal path with telegram (single-mode → ConnectSetup pane).
await page.getByTestId("connector-telegram").getByRole("button", { name: "Connect" }).click();
const modal = page.getByTestId("add-connection-modal");
await expect(modal).toBeVisible();
await expect(modal.locator("input")).not.toHaveCount(0); // manual fields rendered
await page.keyboard.press("Escape");
await expect(page.getByTestId("add-connection-modal")).toHaveCount(0);
});
test("filter narrows both sections", async ({ page }) => {
await openConnectors(page);
await page.getByPlaceholder("Search").fill("tele");
await expect(page.getByTestId("connector-telegram")).toBeVisible();
await expect(page.getByTestId("connector-slack")).toHaveCount(0);
});