@hyperframes/inspector 0.8.155 → 0.8.156
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/README.md +22 -8
- package/dist/live.js +103 -332
- package/dist/server.js +142 -0
- package/dist/service.js +8 -2
- package/dist/types/inspector/src/live.d.ts +1 -2
- package/dist/types/inspector/src/server.d.ts +6 -0
- package/dist/types/inspector/src/service.d.ts +1 -0
- package/package.json +11 -4
- package/dist/types/inspector/src/outputSchemas.d.ts +0 -12
- package/dist/types/inspector/src/tools.d.ts +0 -18
|
@@ -14,5 +14,4 @@ export interface LiveInspection {
|
|
|
14
14
|
export declare function prepareLiveInspection(projectDir: string, html: string, provenance: readonly BundleScriptProvenance[], sourceVersion: string): LiveInspection;
|
|
15
15
|
export declare function previewGeneration(runner: PageRunner): Promise<string | null>;
|
|
16
16
|
export { fingerprint } from "./sources.js";
|
|
17
|
-
export {
|
|
18
|
-
export type { ComponentReport, ElementMapReport, PageRunner, TimelineReport };
|
|
17
|
+
export type { ComponentReport, ElementMapReport, InspectRequest, PageRunner, TimelineReport, TimelineRequest, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type IncomingMessage, type ServerResponse } from "node:http";
|
|
2
|
+
import { Inspector } from "./service.js";
|
|
3
|
+
export declare function createInspectorServer(project: string): {
|
|
4
|
+
inspector: Inspector;
|
|
5
|
+
server: import("node:http").Server<typeof IncomingMessage, typeof ServerResponse>;
|
|
6
|
+
};
|
package/package.json
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/inspector",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.156",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/heygen-com/hyperframes",
|
|
7
7
|
"directory": "packages/inspector"
|
|
8
8
|
},
|
|
9
|
+
"bin": {
|
|
10
|
+
"hyperframes-inspector": "./dist/server.js"
|
|
11
|
+
},
|
|
9
12
|
"files": [
|
|
10
13
|
"dist/service.js",
|
|
11
14
|
"dist/live.js",
|
|
15
|
+
"dist/server.js",
|
|
12
16
|
"dist/inspection.js",
|
|
13
17
|
"dist/types",
|
|
14
18
|
"README.md"
|
|
@@ -22,6 +26,10 @@
|
|
|
22
26
|
"./live": {
|
|
23
27
|
"types": "./dist/types/inspector/src/live.d.ts",
|
|
24
28
|
"default": "./dist/live.js"
|
|
29
|
+
},
|
|
30
|
+
"./server": {
|
|
31
|
+
"types": "./dist/types/inspector/src/server.d.ts",
|
|
32
|
+
"default": "./dist/server.js"
|
|
25
33
|
}
|
|
26
34
|
},
|
|
27
35
|
"publishConfig": {
|
|
@@ -34,8 +42,8 @@
|
|
|
34
42
|
"eslint-scope": "^9.1.2",
|
|
35
43
|
"postcss": "^8.5.8",
|
|
36
44
|
"puppeteer-core": "^25.8.0",
|
|
37
|
-
"@hyperframes/core": "0.8.
|
|
38
|
-
"@hyperframes/parsers": "0.8.
|
|
45
|
+
"@hyperframes/core": "0.8.156",
|
|
46
|
+
"@hyperframes/parsers": "0.8.156"
|
|
39
47
|
},
|
|
40
48
|
"devDependencies": {
|
|
41
49
|
"@types/node": "^25.0.10",
|
|
@@ -47,7 +55,6 @@
|
|
|
47
55
|
"test": "vitest run",
|
|
48
56
|
"typecheck": "tsc --noEmit",
|
|
49
57
|
"serve": "bun run build && bun src/server.ts",
|
|
50
|
-
"mcp": "bun run build && bun src/mcp.ts",
|
|
51
58
|
"test:timeline": "bun tests/timeline.ts",
|
|
52
59
|
"test:timeline-compositions": "bun tests/timelineCompositions.ts",
|
|
53
60
|
"test:live": "bun run build && bun tests/live.ts",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const componentOutputSchema: {
|
|
2
|
-
type: string;
|
|
3
|
-
properties: Record<string, object>;
|
|
4
|
-
required: string[];
|
|
5
|
-
additionalProperties: boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare const timelineOutputSchema: {
|
|
8
|
-
type: string;
|
|
9
|
-
properties: Record<string, object>;
|
|
10
|
-
required: string[];
|
|
11
|
-
additionalProperties: boolean;
|
|
12
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface InspectionTool {
|
|
2
|
-
readonly description: string;
|
|
3
|
-
readonly inputSchema: Record<string, unknown>;
|
|
4
|
-
readonly outputSchema: Record<string, unknown>;
|
|
5
|
-
}
|
|
6
|
-
export declare const componentsTool: InspectionTool;
|
|
7
|
-
export declare const timelineTool: InspectionTool;
|
|
8
|
-
export declare function toolContent(tool: "components" | "timeline", report: object & {
|
|
9
|
-
text?: string;
|
|
10
|
-
}): {
|
|
11
|
-
content: {
|
|
12
|
-
type: "text";
|
|
13
|
-
text: string;
|
|
14
|
-
}[];
|
|
15
|
-
structuredContent: object & {
|
|
16
|
-
text?: string;
|
|
17
|
-
};
|
|
18
|
-
};
|