@inflexa-ai/harness 0.19.1 → 0.20.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.
Files changed (51) hide show
  1. package/dist/agents/report-session-agent.d.ts +7 -0
  2. package/dist/agents/report-session-agent.js +2 -1
  3. package/dist/auth/local-run-authorizer.d.ts +3 -2
  4. package/dist/auth/local-run-authorizer.js +4 -2
  5. package/dist/execution/run-authorizer.d.ts +18 -0
  6. package/dist/execution/run-canceler.d.ts +67 -0
  7. package/dist/execution/run-canceler.js +130 -0
  8. package/dist/index.d.ts +5 -2
  9. package/dist/index.js +6 -1
  10. package/dist/literature/sources/pubmed.js +2 -1
  11. package/dist/report-render/assets.d.ts +42 -0
  12. package/dist/report-render/assets.js +61 -0
  13. package/dist/report-render/chart.js +31 -10
  14. package/dist/report-render/design.d.ts +120 -0
  15. package/dist/report-render/design.js +808 -0
  16. package/dist/report-render/page.d.ts +32 -115
  17. package/dist/report-render/page.js +130 -273
  18. package/dist/report-render/render.js +34 -11
  19. package/dist/report-render/views/chart-view.d.ts +6 -3
  20. package/dist/report-render/views/chart-view.js +10 -5
  21. package/dist/report-render/views/page-view.d.ts +19 -8
  22. package/dist/report-render/views/page-view.js +31 -11
  23. package/dist/report-render/views/prose.d.ts +1 -0
  24. package/dist/report-render/views/prose.js +7 -13
  25. package/dist/report-render/views/references-view.js +5 -5
  26. package/dist/report-render/views/values.d.ts +15 -6
  27. package/dist/report-render/views/values.js +29 -10
  28. package/dist/runtime/assemble.d.ts +10 -0
  29. package/dist/runtime/assemble.js +1 -0
  30. package/dist/sandbox/k8s-client.js +12 -1
  31. package/dist/sandbox/types.d.ts +4 -0
  32. package/dist/state/analyses.d.ts +3 -26
  33. package/dist/state/analyses.js +6 -64
  34. package/dist/state/index.d.ts +2 -2
  35. package/dist/state/index.js +2 -2
  36. package/dist/state/init.js +3 -3
  37. package/dist/state/runs.d.ts +10 -0
  38. package/dist/state/runs.js +21 -0
  39. package/dist/tasks/data-profile.d.ts +7 -0
  40. package/dist/tasks/data-profile.js +14 -0
  41. package/dist/tools/approval/gateway.d.ts +8 -1
  42. package/dist/tools/approval/gateway.js +9 -2
  43. package/dist/tools/approval/queries.d.ts +9 -2
  44. package/dist/tools/approval/queries.js +12 -4
  45. package/dist/tools/report-session/index.d.ts +1 -1
  46. package/dist/tools/report-session/index.js +1 -1
  47. package/dist/tools/report-session/preview-report.d.ts +11 -1
  48. package/dist/tools/report-session/preview-report.js +35 -12
  49. package/dist/workflows/sandbox-step.d.ts +7 -0
  50. package/dist/workflows/sandbox-step.js +19 -2
  51. 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
+ };