@agent-inspect/viewer 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/index.cjs +3862 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +21 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.mjs +3853 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +46 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Server } from 'node:http';
|
|
2
|
+
|
|
3
|
+
interface ViewerServerOptions {
|
|
4
|
+
traceDir?: string;
|
|
5
|
+
host?: string;
|
|
6
|
+
port?: number;
|
|
7
|
+
maxEvents?: number;
|
|
8
|
+
}
|
|
9
|
+
interface ViewerServerInfo {
|
|
10
|
+
host: string;
|
|
11
|
+
port: number;
|
|
12
|
+
traceDir: string;
|
|
13
|
+
url: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare function createViewerServer(options?: ViewerServerOptions): Server;
|
|
17
|
+
declare function startViewerServer(options?: ViewerServerOptions): Promise<ViewerServerInfo>;
|
|
18
|
+
|
|
19
|
+
declare const viewerIndexHtml = "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\" />\n <title>AgentInspect Viewer</title>\n <style>\n body { font-family: system-ui, sans-serif; margin: 1.5rem; line-height: 1.4; }\n h1 { font-size: 1.25rem; }\n pre { background: #f4f4f5; padding: 1rem; overflow: auto; max-height: 70vh; }\n a { color: #0b57d0; }\n .muted { color: #666; }\n </style>\n</head>\n<body>\n <h1>AgentInspect local viewer</h1>\n <p class=\"muted\">Read-only. JSONL on disk remains canonical.</p>\n <p><a href=\"/api/health\">/api/health</a> \u00B7 <a href=\"/api/traces\">/api/traces</a> \u00B7 <a href=\"/api/sessions\">/api/sessions</a></p>\n <pre id=\"out\">Loading traces\u2026</pre>\n <script>\n fetch(\"/api/traces\").then((r) => r.json()).then((data) => {\n document.getElementById(\"out\").textContent = JSON.stringify(data, null, 2);\n }).catch((err) => {\n document.getElementById(\"out\").textContent = String(err);\n });\n </script>\n</body>\n</html>\n";
|
|
20
|
+
|
|
21
|
+
export { type ViewerServerInfo, type ViewerServerOptions, createViewerServer, startViewerServer, viewerIndexHtml };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Server } from 'node:http';
|
|
2
|
+
|
|
3
|
+
interface ViewerServerOptions {
|
|
4
|
+
traceDir?: string;
|
|
5
|
+
host?: string;
|
|
6
|
+
port?: number;
|
|
7
|
+
maxEvents?: number;
|
|
8
|
+
}
|
|
9
|
+
interface ViewerServerInfo {
|
|
10
|
+
host: string;
|
|
11
|
+
port: number;
|
|
12
|
+
traceDir: string;
|
|
13
|
+
url: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare function createViewerServer(options?: ViewerServerOptions): Server;
|
|
17
|
+
declare function startViewerServer(options?: ViewerServerOptions): Promise<ViewerServerInfo>;
|
|
18
|
+
|
|
19
|
+
declare const viewerIndexHtml = "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\" />\n <title>AgentInspect Viewer</title>\n <style>\n body { font-family: system-ui, sans-serif; margin: 1.5rem; line-height: 1.4; }\n h1 { font-size: 1.25rem; }\n pre { background: #f4f4f5; padding: 1rem; overflow: auto; max-height: 70vh; }\n a { color: #0b57d0; }\n .muted { color: #666; }\n </style>\n</head>\n<body>\n <h1>AgentInspect local viewer</h1>\n <p class=\"muted\">Read-only. JSONL on disk remains canonical.</p>\n <p><a href=\"/api/health\">/api/health</a> \u00B7 <a href=\"/api/traces\">/api/traces</a> \u00B7 <a href=\"/api/sessions\">/api/sessions</a></p>\n <pre id=\"out\">Loading traces\u2026</pre>\n <script>\n fetch(\"/api/traces\").then((r) => r.json()).then((data) => {\n document.getElementById(\"out\").textContent = JSON.stringify(data, null, 2);\n }).catch((err) => {\n document.getElementById(\"out\").textContent = String(err);\n });\n </script>\n</body>\n</html>\n";
|
|
20
|
+
|
|
21
|
+
export { type ViewerServerInfo, type ViewerServerOptions, createViewerServer, startViewerServer, viewerIndexHtml };
|