feat(logs): collapse large run log data and serve client manifest
CI / changes (pull_request) Successful in 6s
CI / version (pull_request) Skipped
CI / server (pull_request) Successful in 1m30s
CI / client (pull_request) Successful in 1m31s
CI / image (pull_request) Skipped

- collapse run log data blocks whose pretty-printed JSON exceeds a byte
  or line limit, with a per-block toggle and an expand/collapse-all
  button next to the Logs heading
- align data blocks and toggles with the context/message column
- add a "Copy logs" button that copies the filtered logs as plain text
  with every data block expanded
- add GET /manifest.json with the app name, version and run log data
  limits (RUN_LOG_DATA_COLLAPSE_BYTES / RUN_LOG_DATA_COLLAPSE_LINES)
- load the manifest in the client stale-while-revalidate: localStorage
  copy first, refetched per page load and on tab focus after a while
- show the server version in the sidebar footer, with a reload hint
  when it differs from the client build

Closes #3
This commit is contained in:
ars9 committed 2026-10-02 14:05:49 +03:00
1 parent 4e55d14599
commit 718a12c2f4
25 files changed
+623 -36

No files matched your search

+12
View File
@@ -35,6 +35,11 @@ class RootRoutesController {
return { status: "ok" };
}
@Get("manifest.json")
manifest() {
return { version: "1.0.0" };
}
@Post("mcp")
mcp() {
return { jsonrpc: "2.0" };
@@ -59,6 +64,7 @@ async function buildApp(clientDir: string): Promise<INestApplication> {
exclude: [
{ path: "health", method: RequestMethod.ALL },
{ path: "mcp", method: RequestMethod.ALL },
{ path: "manifest.json", method: RequestMethod.ALL },
],
});
await app.init();
@@ -132,6 +138,12 @@ describe("Client static serving", () => {
expect(res.text).not.toContain("liqa</html>");
});
it("leaves /manifest.json to the server", async () => {
await request(app.getHttpServer())
.get("/manifest.json")
.expect(200, { version: "1.0.0" });
});
it("serves nothing when no client directory is configured", async () => {
const bare = await buildApp("");
await request(bare.getHttpServer()).get("/").expect(404);