@hyperframes/inspector 0.0.0-stage → 0.8.150
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 +190 -0
- package/README.md +104 -2
- package/dist/inspection.js +2007 -0
- package/dist/live.js +1288 -0
- package/dist/service.js +63122 -0
- package/dist/types/core/src/audioAutomation.d.ts +202 -0
- package/dist/types/core/src/audioFx.d.ts +181 -0
- package/dist/types/core/src/audioGain.d.ts +44 -0
- package/dist/types/core/src/colorGrading.d.ts +1959 -0
- package/dist/types/core/src/colorGradingCurves.d.ts +8 -0
- package/dist/types/core/src/colorLuts.d.ts +24 -0
- package/dist/types/core/src/compiler/assetPaths.d.ts +1 -0
- package/dist/types/core/src/compiler/compositionAssembly.d.ts +144 -0
- package/dist/types/core/src/compiler/compositionScoping.d.ts +28 -0
- package/dist/types/core/src/compiler/externalScripts.d.ts +8 -0
- package/dist/types/core/src/compiler/htmlBundler.d.ts +74 -0
- package/dist/types/core/src/compiler/htmlCompiler.d.ts +18 -0
- package/dist/types/core/src/compiler/htmlDocument.d.ts +23 -0
- package/dist/types/core/src/compiler/importMaps.d.ts +18 -0
- package/dist/types/core/src/compiler/inlineSubCompositions.d.ts +151 -0
- package/dist/types/core/src/compiler/rewriteSubCompPaths.d.ts +1 -0
- package/dist/types/core/src/compiler/scriptRuns.d.ts +31 -0
- package/dist/types/core/src/compiler/selectorIdTokens.d.ts +70 -0
- package/dist/types/core/src/compiler/standaloneEntry.d.ts +2 -0
- package/dist/types/core/src/compiler/staticGuard.d.ts +7 -0
- package/dist/types/core/src/compiler/svgIdNamespacing.d.ts +80 -0
- package/dist/types/core/src/compiler/svgSelectorAliases.d.ts +30 -0
- package/dist/types/core/src/compiler/timingCompiler.d.ts +89 -0
- package/dist/types/core/src/generated/runtime-inline.d.ts +6 -0
- package/dist/types/core/src/generated/svg-selector-aliases-inline.d.ts +2 -0
- package/dist/types/core/src/inline-scripts/pickerApi.d.ts +32 -0
- package/dist/types/core/src/inline-scripts/runtimeContract.d.ts +13 -0
- package/dist/types/core/src/mediaTiming.d.ts +41 -0
- package/dist/types/core/src/playbackRateBounds.d.ts +1 -0
- package/dist/types/core/src/runtime/analytics.d.ts +18 -0
- package/dist/types/core/src/runtime/applyVariableBindings.d.ts +47 -0
- package/dist/types/core/src/runtime/audioAutomationVolume.d.ts +19 -0
- package/dist/types/core/src/runtime/authoredTiming.d.ts +16 -0
- package/dist/types/core/src/runtime/compositionDimension.d.ts +5 -0
- package/dist/types/core/src/runtime/diagnostics.d.ts +3 -0
- package/dist/types/core/src/runtime/domRealm.d.ts +67 -0
- package/dist/types/core/src/runtime/flattenedRoot.d.ts +9 -0
- package/dist/types/core/src/runtime/getVariables.d.ts +42 -0
- package/dist/types/core/src/runtime/globals.d.ts +11 -0
- package/dist/types/core/src/runtime/inspectionTypes.d.ts +68 -0
- package/dist/types/core/src/runtime/playbackRate.d.ts +26 -0
- package/dist/types/core/src/runtime/protocol.d.ts +30 -0
- package/dist/types/core/src/runtime/proxySrc.d.ts +3 -0
- package/dist/types/core/src/runtime/startExpression.d.ts +14 -0
- package/dist/types/core/src/runtime/startResolver.d.ts +21 -0
- package/dist/types/core/src/runtime/timelineDuration.d.ts +3 -0
- package/dist/types/core/src/runtime/timelineInspection.d.ts +46 -0
- package/dist/types/core/src/runtime/timelineValues.d.ts +15 -0
- package/dist/types/core/src/runtime/types.d.ts +335 -0
- package/dist/types/core/src/runtime/variableScope.d.ts +8 -0
- package/dist/types/core/src/safePath.d.ts +49 -0
- package/dist/types/core/src/sceneParts.d.ts +9 -0
- package/dist/types/core/src/speedRamp.d.ts +59 -0
- package/dist/types/core/src/tokenSlug.d.ts +12 -0
- package/dist/types/inspector/src/elementMap.d.ts +33 -0
- package/dist/types/inspector/src/engine.d.ts +35 -0
- package/dist/types/inspector/src/live.d.ts +18 -0
- package/dist/types/inspector/src/mapInspection.d.ts +76 -0
- package/dist/types/inspector/src/outputSchemas.d.ts +12 -0
- package/dist/types/inspector/src/pageQueries.d.ts +21 -0
- package/dist/types/inspector/src/pageServer.d.ts +2 -0
- package/dist/types/inspector/src/requests.d.ts +5 -0
- package/dist/types/inspector/src/service.d.ts +98 -0
- package/dist/types/inspector/src/sourceDependencies.d.ts +5 -0
- package/dist/types/inspector/src/sources.d.ts +49 -0
- package/dist/types/inspector/src/timelineReport.d.ts +28 -0
- package/dist/types/inspector/src/tools.d.ts +18 -0
- package/dist/types/inspector/src/types.d.ts +1 -0
- package/package.json +54 -3
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { TimelineRequest } from "../../core/src/runtime/timelineInspection.js";
|
|
2
|
+
import { type ElementMap } from "./elementMap.js";
|
|
3
|
+
import { mapInspection } from "./mapInspection.js";
|
|
4
|
+
import { type PageRunner } from "./pageQueries.js";
|
|
5
|
+
import type { Sources } from "./sources.js";
|
|
6
|
+
import { type TimelineReport } from "./timelineReport.js";
|
|
7
|
+
import type { InspectRequest, Snippet } from "./types.js";
|
|
8
|
+
export interface SourceContext {
|
|
9
|
+
sources: Sources;
|
|
10
|
+
map: ReturnType<Sources["mapper"]>;
|
|
11
|
+
}
|
|
12
|
+
export interface InspectionView {
|
|
13
|
+
readonly generation: string;
|
|
14
|
+
readonly sourceVersion: string;
|
|
15
|
+
readonly pageGeneration?: string;
|
|
16
|
+
sourceContext(): SourceContext;
|
|
17
|
+
assertCurrent(): Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
export type ComponentReport = ReturnType<typeof mapInspection>;
|
|
20
|
+
export type ElementMapReport = ElementMap & {
|
|
21
|
+
sourceVersion: string;
|
|
22
|
+
generation: string;
|
|
23
|
+
};
|
|
24
|
+
export declare function inspectComponents(runner: PageRunner, view: InspectionView, request: InspectRequest, context: {
|
|
25
|
+
catalog: Map<string, Snippet>;
|
|
26
|
+
reused: boolean;
|
|
27
|
+
start: number;
|
|
28
|
+
visualState?: {
|
|
29
|
+
time: number | undefined;
|
|
30
|
+
duration: number | undefined;
|
|
31
|
+
};
|
|
32
|
+
}): Promise<ComponentReport>;
|
|
33
|
+
export declare function inspectTimeline(runner: PageRunner, view: InspectionView, request: TimelineRequest, reused: boolean): Promise<TimelineReport>;
|
|
34
|
+
export declare function inspectElementMap(runner: PageRunner, view: InspectionView, file?: string): Promise<ElementMapReport>;
|
|
35
|
+
export type { PageRunner, TimelineReport };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { BundleScriptProvenance } from "../../core/src/compiler/htmlBundler.js";
|
|
2
|
+
import type { TimelineRequest } from "../../core/src/runtime/timelineInspection.js";
|
|
3
|
+
import { type ComponentReport, type ElementMapReport, type TimelineReport } from "./engine.js";
|
|
4
|
+
import { type PageRunner } from "./pageQueries.js";
|
|
5
|
+
import type { InspectRequest } from "./types.js";
|
|
6
|
+
export interface LiveInspection {
|
|
7
|
+
readonly html: string;
|
|
8
|
+
readonly generation: string;
|
|
9
|
+
finalizeDocument(servedHtml: string): void;
|
|
10
|
+
inspect(runner: PageRunner, request: InspectRequest): Promise<ComponentReport>;
|
|
11
|
+
timeline(runner: PageRunner, request: TimelineRequest): Promise<TimelineReport>;
|
|
12
|
+
elementMap(runner: PageRunner): Promise<ElementMapReport>;
|
|
13
|
+
}
|
|
14
|
+
export declare function prepareLiveInspection(projectDir: string, html: string, provenance: readonly BundleScriptProvenance[], sourceVersion: string): LiveInspection;
|
|
15
|
+
export declare function previewGeneration(runner: PageRunner): Promise<string | null>;
|
|
16
|
+
export { fingerprint } from "./sources.js";
|
|
17
|
+
export { componentsTool, timelineTool, toolContent, type InspectionTool } from "./tools.js";
|
|
18
|
+
export type { ComponentReport, ElementMapReport, PageRunner, TimelineReport };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Sources } from "./sources.js";
|
|
2
|
+
import type { InspectRequest, RuntimeResponse, Snippet } from "./types.js";
|
|
3
|
+
export declare function mapInspection(raw: RuntimeResponse, request: InspectRequest, context: {
|
|
4
|
+
sources: Sources;
|
|
5
|
+
map: ReturnType<Sources["mapper"]>;
|
|
6
|
+
catalog: Map<string, Snippet>;
|
|
7
|
+
generation: string;
|
|
8
|
+
sourceVersion: string;
|
|
9
|
+
reused: boolean;
|
|
10
|
+
start: number;
|
|
11
|
+
visualState?: {
|
|
12
|
+
time: number | undefined;
|
|
13
|
+
duration: number | undefined;
|
|
14
|
+
};
|
|
15
|
+
}): {
|
|
16
|
+
generation: string;
|
|
17
|
+
visualState: {
|
|
18
|
+
time: number | undefined;
|
|
19
|
+
duration: number | undefined;
|
|
20
|
+
} | undefined;
|
|
21
|
+
sourceVersion: string;
|
|
22
|
+
reused: boolean;
|
|
23
|
+
results: {
|
|
24
|
+
target: number;
|
|
25
|
+
status: "missing" | "found" | "ambiguous" | "stale-ref" | "invalid-selector";
|
|
26
|
+
candidates: import("./types.js").ElementRef[];
|
|
27
|
+
candidatesOmitted: number;
|
|
28
|
+
animations: number;
|
|
29
|
+
coTargets: import("./types.js").ElementRef[];
|
|
30
|
+
unmappedAnimations: number;
|
|
31
|
+
scopeTruncated: boolean;
|
|
32
|
+
}[];
|
|
33
|
+
snippets: Snippet[];
|
|
34
|
+
omitted: {
|
|
35
|
+
id: string;
|
|
36
|
+
bytes: number;
|
|
37
|
+
}[];
|
|
38
|
+
omittedCount: number;
|
|
39
|
+
nextOffset: number | null;
|
|
40
|
+
coverage: string[];
|
|
41
|
+
recordLimitReached: boolean;
|
|
42
|
+
hooked: boolean;
|
|
43
|
+
debugAvailable: boolean;
|
|
44
|
+
elapsedMs: number;
|
|
45
|
+
} | {
|
|
46
|
+
debug: RuntimeResponse;
|
|
47
|
+
generation: string;
|
|
48
|
+
visualState: {
|
|
49
|
+
time: number | undefined;
|
|
50
|
+
duration: number | undefined;
|
|
51
|
+
} | undefined;
|
|
52
|
+
sourceVersion: string;
|
|
53
|
+
reused: boolean;
|
|
54
|
+
results: {
|
|
55
|
+
target: number;
|
|
56
|
+
status: "missing" | "found" | "ambiguous" | "stale-ref" | "invalid-selector";
|
|
57
|
+
candidates: import("./types.js").ElementRef[];
|
|
58
|
+
candidatesOmitted: number;
|
|
59
|
+
animations: number;
|
|
60
|
+
coTargets: import("./types.js").ElementRef[];
|
|
61
|
+
unmappedAnimations: number;
|
|
62
|
+
scopeTruncated: boolean;
|
|
63
|
+
}[];
|
|
64
|
+
snippets: Snippet[];
|
|
65
|
+
omitted: {
|
|
66
|
+
id: string;
|
|
67
|
+
bytes: number;
|
|
68
|
+
}[];
|
|
69
|
+
omittedCount: number;
|
|
70
|
+
nextOffset: number | null;
|
|
71
|
+
coverage: string[];
|
|
72
|
+
recordLimitReached: boolean;
|
|
73
|
+
hooked: boolean;
|
|
74
|
+
debugAvailable: boolean;
|
|
75
|
+
elapsedMs: number;
|
|
76
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { TimelineEvent, TimelineRequest, TimelineRuntimeResult } from "../../core/src/runtime/timelineInspection.js";
|
|
2
|
+
import type { RuntimeQuery, RuntimeResponse } from "./types.js";
|
|
3
|
+
export interface PageRunner {
|
|
4
|
+
run<A, R>(fn: (arg: A) => R, arg: A): Promise<R>;
|
|
5
|
+
}
|
|
6
|
+
export interface PageTimeline extends TimelineRuntimeResult {
|
|
7
|
+
following: TimelineEvent[];
|
|
8
|
+
generation: string | null;
|
|
9
|
+
}
|
|
10
|
+
export interface PageRuntimeResponse extends RuntimeResponse {
|
|
11
|
+
generation: string | null;
|
|
12
|
+
}
|
|
13
|
+
export interface PlayerState {
|
|
14
|
+
time: number | undefined;
|
|
15
|
+
duration: number | undefined;
|
|
16
|
+
}
|
|
17
|
+
export declare function seekPage(time: number): void;
|
|
18
|
+
export declare function playerStatePage(): PlayerState;
|
|
19
|
+
export declare function queryPage(query: RuntimeQuery): PageRuntimeResponse;
|
|
20
|
+
export declare function timelinePage(request: TimelineRequest): PageTimeline;
|
|
21
|
+
export declare function liveGenerationPage(): string | null;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { TimelineRequest } from "../../core/src/runtime/timelineInspection.js";
|
|
2
|
+
import type { InspectRequest } from "./types.js";
|
|
3
|
+
export declare function validateInspectRequest(request: InspectRequest): void;
|
|
4
|
+
export declare function validateTimelineRequest(request: TimelineRequest): void;
|
|
5
|
+
export declare function assertGeneration(requested: string | undefined, current: string): void;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { TimelineRequest } from "../../core/src/runtime/timelineInspection.js";
|
|
2
|
+
import { type Page } from "puppeteer-core";
|
|
3
|
+
import type { InspectRequest, Snippet } from "./types.js";
|
|
4
|
+
export interface InspectorOptions {
|
|
5
|
+
executablePath?: string;
|
|
6
|
+
idleMs?: number;
|
|
7
|
+
instrument?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare class Inspector {
|
|
10
|
+
readonly options: InspectorOptions;
|
|
11
|
+
private session?;
|
|
12
|
+
private browser?;
|
|
13
|
+
private tail;
|
|
14
|
+
private timer?;
|
|
15
|
+
private closed;
|
|
16
|
+
private catalog;
|
|
17
|
+
readonly project: string;
|
|
18
|
+
readonly stats: {
|
|
19
|
+
browserStarts: number;
|
|
20
|
+
pageLoads: number;
|
|
21
|
+
sourceLoads: number;
|
|
22
|
+
queries: number;
|
|
23
|
+
seeks: number;
|
|
24
|
+
};
|
|
25
|
+
constructor(project: string, options?: InspectorOptions);
|
|
26
|
+
private serialize;
|
|
27
|
+
private closeSession;
|
|
28
|
+
private ensure;
|
|
29
|
+
private view;
|
|
30
|
+
private idle;
|
|
31
|
+
inspect(request: InspectRequest): Promise<{
|
|
32
|
+
generation: string;
|
|
33
|
+
visualState: {
|
|
34
|
+
time: number | undefined;
|
|
35
|
+
duration: number | undefined;
|
|
36
|
+
} | undefined;
|
|
37
|
+
sourceVersion: string;
|
|
38
|
+
reused: boolean;
|
|
39
|
+
results: {
|
|
40
|
+
target: number;
|
|
41
|
+
status: "missing" | "found" | "ambiguous" | "stale-ref" | "invalid-selector";
|
|
42
|
+
candidates: import("./types.js").ElementRef[];
|
|
43
|
+
candidatesOmitted: number;
|
|
44
|
+
animations: number;
|
|
45
|
+
coTargets: import("./types.js").ElementRef[];
|
|
46
|
+
unmappedAnimations: number;
|
|
47
|
+
scopeTruncated: boolean;
|
|
48
|
+
}[];
|
|
49
|
+
snippets: Snippet[];
|
|
50
|
+
omitted: {
|
|
51
|
+
id: string;
|
|
52
|
+
bytes: number;
|
|
53
|
+
}[];
|
|
54
|
+
omittedCount: number;
|
|
55
|
+
nextOffset: number | null;
|
|
56
|
+
coverage: string[];
|
|
57
|
+
recordLimitReached: boolean;
|
|
58
|
+
hooked: boolean;
|
|
59
|
+
debugAvailable: boolean;
|
|
60
|
+
elapsedMs: number;
|
|
61
|
+
} | {
|
|
62
|
+
debug: import("./types.js").RuntimeResponse;
|
|
63
|
+
generation: string;
|
|
64
|
+
visualState: {
|
|
65
|
+
time: number | undefined;
|
|
66
|
+
duration: number | undefined;
|
|
67
|
+
} | undefined;
|
|
68
|
+
sourceVersion: string;
|
|
69
|
+
reused: boolean;
|
|
70
|
+
results: {
|
|
71
|
+
target: number;
|
|
72
|
+
status: "missing" | "found" | "ambiguous" | "stale-ref" | "invalid-selector";
|
|
73
|
+
candidates: import("./types.js").ElementRef[];
|
|
74
|
+
candidatesOmitted: number;
|
|
75
|
+
animations: number;
|
|
76
|
+
coTargets: import("./types.js").ElementRef[];
|
|
77
|
+
unmappedAnimations: number;
|
|
78
|
+
scopeTruncated: boolean;
|
|
79
|
+
}[];
|
|
80
|
+
snippets: Snippet[];
|
|
81
|
+
omitted: {
|
|
82
|
+
id: string;
|
|
83
|
+
bytes: number;
|
|
84
|
+
}[];
|
|
85
|
+
omittedCount: number;
|
|
86
|
+
nextOffset: number | null;
|
|
87
|
+
coverage: string[];
|
|
88
|
+
recordLimitReached: boolean;
|
|
89
|
+
hooked: boolean;
|
|
90
|
+
debugAvailable: boolean;
|
|
91
|
+
elapsedMs: number;
|
|
92
|
+
}>;
|
|
93
|
+
private query;
|
|
94
|
+
timeline(request: TimelineRequest): Promise<import("./timelineReport.js").TimelineReport>;
|
|
95
|
+
elementMap(): Promise<import("./engine.js").ElementMapReport>;
|
|
96
|
+
withPage<T>(fn: (page: Page) => Promise<T>): Promise<T>;
|
|
97
|
+
dispose(): Promise<void>;
|
|
98
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { BundleScriptProvenance } from "../../core/src/compiler/htmlBundler.js";
|
|
2
|
+
import type { ElementRef, Snippet } from "./types.js";
|
|
3
|
+
import { type SourceRange } from "./sourceDependencies.js";
|
|
4
|
+
interface Chunk {
|
|
5
|
+
file: string;
|
|
6
|
+
text: string;
|
|
7
|
+
offset: number;
|
|
8
|
+
dependencies: (range: SourceRange) => SourceRange[];
|
|
9
|
+
statements: {
|
|
10
|
+
start: number;
|
|
11
|
+
end: number;
|
|
12
|
+
type: string;
|
|
13
|
+
}[];
|
|
14
|
+
}
|
|
15
|
+
interface SourceFile {
|
|
16
|
+
text: string;
|
|
17
|
+
lines: number[];
|
|
18
|
+
}
|
|
19
|
+
export declare function fingerprint(project: string): string;
|
|
20
|
+
export declare class Sources {
|
|
21
|
+
readonly project: string;
|
|
22
|
+
readonly files: Map<string, SourceFile>;
|
|
23
|
+
readonly chunks: Chunk[];
|
|
24
|
+
readonly cssRules: {
|
|
25
|
+
id: string;
|
|
26
|
+
selector: string;
|
|
27
|
+
file: string;
|
|
28
|
+
start: number;
|
|
29
|
+
end: number;
|
|
30
|
+
}[];
|
|
31
|
+
readonly htmlTags: {
|
|
32
|
+
file: string;
|
|
33
|
+
start: number;
|
|
34
|
+
end: number;
|
|
35
|
+
id?: string;
|
|
36
|
+
hfId?: string;
|
|
37
|
+
classes: string[];
|
|
38
|
+
tag: string;
|
|
39
|
+
}[];
|
|
40
|
+
constructor(project: string);
|
|
41
|
+
private addChunk;
|
|
42
|
+
private addCss;
|
|
43
|
+
slice(file: string, start: number, end: number, kind: string, target: number): Snippet | null;
|
|
44
|
+
markup(element: ElementRef, target: number): Snippet | null;
|
|
45
|
+
mapper(html: string, provenance: BundleScriptProvenance[]): (stack: string, target: number) => Snippet[];
|
|
46
|
+
}
|
|
47
|
+
export declare function markupSnippet(sources: Sources, element: ElementRef, target: number): Snippet | null;
|
|
48
|
+
export declare function mergeSnippets(snippets: Snippet[], sources: Sources): Snippet[];
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { TimelineEvent, TimelineRequest } from "../../core/src/runtime/timelineInspection.js";
|
|
2
|
+
import type { PageTimeline } from "./pageQueries.js";
|
|
3
|
+
import type { Sources } from "./sources.js";
|
|
4
|
+
type SourceMap = ReturnType<Sources["mapper"]>;
|
|
5
|
+
export interface TimelineReport {
|
|
6
|
+
text: string;
|
|
7
|
+
generation: string;
|
|
8
|
+
reused: boolean;
|
|
9
|
+
status: string;
|
|
10
|
+
candidates: PageTimeline["candidates"];
|
|
11
|
+
events: (Omit<TimelineEvent, "stack"> & {
|
|
12
|
+
stack: undefined;
|
|
13
|
+
sources: {
|
|
14
|
+
file: string;
|
|
15
|
+
line: number;
|
|
16
|
+
}[];
|
|
17
|
+
})[];
|
|
18
|
+
eventCount: number;
|
|
19
|
+
groupCount: number;
|
|
20
|
+
nextOffset: number | null;
|
|
21
|
+
warnings: string[];
|
|
22
|
+
}
|
|
23
|
+
export declare function formatTimeline(raw: PageTimeline, request: TimelineRequest, view: {
|
|
24
|
+
generation: string;
|
|
25
|
+
map: SourceMap;
|
|
26
|
+
reused: boolean;
|
|
27
|
+
}): TimelineReport;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type * from "../../core/src/runtime/inspectionTypes.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/inspector",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
|
|
3
|
+
"version": "0.8.150",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/heygen-com/hyperframes",
|
|
7
|
+
"directory": "packages/inspector"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist/service.js",
|
|
11
|
+
"dist/live.js",
|
|
12
|
+
"dist/inspection.js",
|
|
13
|
+
"dist/types",
|
|
14
|
+
"README.md"
|
|
15
|
+
],
|
|
16
|
+
"type": "module",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/types/inspector/src/service.d.ts",
|
|
20
|
+
"default": "./dist/service.js"
|
|
21
|
+
},
|
|
22
|
+
"./live": {
|
|
23
|
+
"types": "./dist/types/inspector/src/live.d.ts",
|
|
24
|
+
"default": "./dist/live.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@jridgewell/trace-mapping": "^0.3.29",
|
|
32
|
+
"acorn": "^8.17.0",
|
|
33
|
+
"esbuild": "^0.25.12",
|
|
34
|
+
"eslint-scope": "^9.1.2",
|
|
35
|
+
"postcss": "^8.5.8",
|
|
36
|
+
"puppeteer-core": "^25.8.0",
|
|
37
|
+
"@hyperframes/core": "0.8.151",
|
|
38
|
+
"@hyperframes/parsers": "0.8.151"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@types/node": "^25.0.10",
|
|
42
|
+
"typescript": "^5.0.0",
|
|
43
|
+
"vitest": "^4.1.11"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "node build.mjs",
|
|
47
|
+
"test": "vitest run",
|
|
48
|
+
"typecheck": "tsc --noEmit",
|
|
49
|
+
"serve": "bun run build && bun src/server.ts",
|
|
50
|
+
"mcp": "bun run build && bun src/mcp.ts",
|
|
51
|
+
"test:timeline": "bun tests/timeline.ts",
|
|
52
|
+
"test:timeline-compositions": "bun tests/timelineCompositions.ts",
|
|
53
|
+
"test:live": "bun run build && bun tests/live.ts",
|
|
54
|
+
"test:source-release": "bun tests/sourceRelease.ts",
|
|
55
|
+
"serve:node": "node dist/server.js"
|
|
56
|
+
}
|
|
6
57
|
}
|