源码快照 @ 2026-09-02 (source-only, 剔除非源码素材)

This commit is contained in:
agent-radar committed 2026-09-02 01:05:41 +08:00
commit 04bac1f6e2
2200 files changed
+489415

No files matched your search

@@ -0,0 +1,29 @@
import { expect } from "vitest";
import { test } from "@openwork/testkit";
import {
connectionCanListMcpApps,
mcpAppCatalogIsLoading,
} from "../../ee/apps/den-web/app/(den)/dashboard/_components/dashboard-mcp-app-catalog";
test("dashboard MCP Apps render progressively without probing unavailable connections", ({ evidence }) => {
const availableAppsRenderWhileAnotherMcpLoads = !mcpAppCatalogIsLoading(1, true);
const unavailableConnectionsAreSkipped = [
connectionCanListMcpApps({ connectedForMe: false }),
connectionCanListMcpApps({ connectedForMe: true, needsReconnect: true }),
connectionCanListMcpApps({ connectedForMe: true, credentialHealth: "reconnect_required" }),
connectionCanListMcpApps({ connectedForMe: true, setupRequired: true }),
].every((value) => value === false);
expect(availableAppsRenderWhileAnotherMcpLoads).toBe(true);
expect(unavailableConnectionsAreSkipped).toBe(true);
evidence.recordAssertionEvidence(
"Discovered MCP Apps render without waiting for unrelated MCP discovery",
"one App is available while another MCP request remains pending",
availableAppsRenderWhileAnotherMcpLoads,
);
evidence.recordAssertionEvidence(
"Unavailable MCP connections are not probed for Apps",
"disconnected, reconnect-required, unhealthy, and setup-required connections are excluded",
unavailableConnectionsAreSkipped,
);
});