@inflexa-ai/harness 0.19.1 → 0.19.2
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/dist/agents/report-session-agent.d.ts +7 -0
- package/dist/agents/report-session-agent.js +2 -1
- package/dist/auth/local-run-authorizer.d.ts +3 -2
- package/dist/auth/local-run-authorizer.js +4 -2
- package/dist/execution/run-authorizer.d.ts +18 -0
- package/dist/execution/run-canceler.d.ts +67 -0
- package/dist/execution/run-canceler.js +130 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.js +6 -1
- package/dist/report-render/assets.d.ts +42 -0
- package/dist/report-render/assets.js +61 -0
- package/dist/report-render/chart.js +31 -10
- package/dist/report-render/design.d.ts +120 -0
- package/dist/report-render/design.js +808 -0
- package/dist/report-render/page.d.ts +32 -115
- package/dist/report-render/page.js +130 -273
- package/dist/report-render/render.js +34 -11
- package/dist/report-render/views/chart-view.d.ts +6 -3
- package/dist/report-render/views/chart-view.js +10 -5
- package/dist/report-render/views/page-view.d.ts +19 -8
- package/dist/report-render/views/page-view.js +31 -11
- package/dist/report-render/views/prose.d.ts +1 -0
- package/dist/report-render/views/prose.js +7 -13
- package/dist/report-render/views/references-view.js +5 -5
- package/dist/report-render/views/values.d.ts +15 -6
- package/dist/report-render/views/values.js +29 -10
- package/dist/runtime/assemble.d.ts +10 -0
- package/dist/runtime/assemble.js +1 -0
- package/dist/sandbox/k8s-client.js +18 -0
- package/dist/sandbox/types.d.ts +6 -0
- package/dist/state/analyses.d.ts +3 -26
- package/dist/state/analyses.js +6 -64
- package/dist/state/index.d.ts +2 -2
- package/dist/state/index.js +2 -2
- package/dist/state/init.js +3 -3
- package/dist/state/runs.d.ts +10 -0
- package/dist/state/runs.js +21 -0
- package/dist/tasks/data-profile.d.ts +4 -0
- package/dist/tasks/data-profile.js +14 -0
- package/dist/tools/approval/gateway.d.ts +8 -1
- package/dist/tools/approval/gateway.js +9 -2
- package/dist/tools/approval/queries.d.ts +9 -2
- package/dist/tools/approval/queries.js +12 -4
- package/dist/tools/report-session/index.d.ts +1 -1
- package/dist/tools/report-session/index.js +1 -1
- package/dist/tools/report-session/preview-report.d.ts +11 -1
- package/dist/tools/report-session/preview-report.js +35 -12
- package/dist/workflows/sandbox-step.d.ts +4 -0
- package/dist/workflows/sandbox-step.js +21 -2
- package/package.json +5 -1
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The design sheet of the report page, and the ECharts theme.
|
|
3
|
+
*
|
|
4
|
+
* The page carries no external stylesheet and no CSS framework. Thus this module holds the whole identity:
|
|
5
|
+
* the tokens, the font faces, the typography, the components, the textures, the motion rules, and the print
|
|
6
|
+
* rules. The identity source is the Inflexa design system.
|
|
7
|
+
*
|
|
8
|
+
* Two invariants bind an edit of the sheet:
|
|
9
|
+
*
|
|
10
|
+
* - Each class rule matches a class that one view emits. A rule with no emitter is dead, and a dead rule is
|
|
11
|
+
* a cost with no visible effect.
|
|
12
|
+
* - Each font URL comes from the asset manifest. Thus the sheet and the stage step of the caller cannot
|
|
13
|
+
* disagree over a file name.
|
|
14
|
+
*
|
|
15
|
+
* The token block is the exception to the first invariant. The token set is the contract of the identity,
|
|
16
|
+
* thus it stays complete even where no current rule reads a token.
|
|
17
|
+
*/
|
|
18
|
+
/** The style rules of the page. The renderer inlines them in one `<style>` block. */
|
|
19
|
+
export declare const DESIGN_CSS: string;
|
|
20
|
+
/**
|
|
21
|
+
* The registered name of the ECharts theme. The registration script writes this name, and the bootstrap
|
|
22
|
+
* reads it. One source prevents a silent mismatch between the two sites.
|
|
23
|
+
*/
|
|
24
|
+
export declare const ECHARTS_THEME_NAME = "inflexa";
|
|
25
|
+
/**
|
|
26
|
+
* The ECharts theme as a plain object. The renderer serializes this object and registers it, thus the theme
|
|
27
|
+
* never rides a JSON file and no run-time read is necessary. The palette and the axis styles mirror the
|
|
28
|
+
* light design tokens above.
|
|
29
|
+
*/
|
|
30
|
+
export declare const ECHARTS_THEME: {
|
|
31
|
+
color: string[];
|
|
32
|
+
backgroundColor: string;
|
|
33
|
+
textStyle: {
|
|
34
|
+
fontFamily: string;
|
|
35
|
+
fontSize: number;
|
|
36
|
+
color: string;
|
|
37
|
+
};
|
|
38
|
+
title: {
|
|
39
|
+
show: boolean;
|
|
40
|
+
};
|
|
41
|
+
legend: {
|
|
42
|
+
bottom: number;
|
|
43
|
+
textStyle: {
|
|
44
|
+
fontSize: number;
|
|
45
|
+
color: string;
|
|
46
|
+
};
|
|
47
|
+
itemGap: number;
|
|
48
|
+
itemWidth: number;
|
|
49
|
+
itemHeight: number;
|
|
50
|
+
};
|
|
51
|
+
grid: {
|
|
52
|
+
left: number;
|
|
53
|
+
right: number;
|
|
54
|
+
top: number;
|
|
55
|
+
bottom: number;
|
|
56
|
+
containLabel: boolean;
|
|
57
|
+
};
|
|
58
|
+
tooltip: {
|
|
59
|
+
backgroundColor: string;
|
|
60
|
+
borderColor: string;
|
|
61
|
+
textStyle: {
|
|
62
|
+
color: string;
|
|
63
|
+
fontSize: number;
|
|
64
|
+
};
|
|
65
|
+
extraCssText: string;
|
|
66
|
+
};
|
|
67
|
+
toolbox: {
|
|
68
|
+
feature: {
|
|
69
|
+
saveAsImage: {
|
|
70
|
+
title: string;
|
|
71
|
+
pixelRatio: number;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
iconStyle: {
|
|
75
|
+
borderColor: string;
|
|
76
|
+
};
|
|
77
|
+
right: number;
|
|
78
|
+
top: number;
|
|
79
|
+
};
|
|
80
|
+
xAxis: {
|
|
81
|
+
axisLine: {
|
|
82
|
+
lineStyle: {
|
|
83
|
+
color: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
axisTick: {
|
|
87
|
+
lineStyle: {
|
|
88
|
+
color: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
axisLabel: {
|
|
92
|
+
color: string;
|
|
93
|
+
fontSize: number;
|
|
94
|
+
};
|
|
95
|
+
splitLine: {
|
|
96
|
+
lineStyle: {
|
|
97
|
+
color: string;
|
|
98
|
+
type: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
yAxis: {
|
|
103
|
+
axisLine: {
|
|
104
|
+
show: boolean;
|
|
105
|
+
};
|
|
106
|
+
axisTick: {
|
|
107
|
+
show: boolean;
|
|
108
|
+
};
|
|
109
|
+
axisLabel: {
|
|
110
|
+
color: string;
|
|
111
|
+
fontSize: number;
|
|
112
|
+
};
|
|
113
|
+
splitLine: {
|
|
114
|
+
lineStyle: {
|
|
115
|
+
color: string;
|
|
116
|
+
type: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
};
|