@imfusion/web-ui 0.6.4-dev.8.g41d03f2f → 0.6.4-dev.84.gbfc0d437

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 (139) hide show
  1. package/README.md +19 -55
  2. package/dist/assets/vendors/base-ui.d.ts +2 -3
  3. package/dist/breakpoints/min-width.d.ts +3 -7
  4. package/dist/breakpoints/registry.d.ts +3 -9
  5. package/dist/{code-Ce8uiPsv.js → code-D2lwxHgd.js} +15 -15
  6. package/dist/codegen/gen-breakpoints-css.d.ts +0 -4
  7. package/dist/codegen/gen-token-css.d.ts +0 -2
  8. package/dist/components/app-shell/app-shell.d.ts +7 -11
  9. package/dist/components/button/button.d.ts +7 -12
  10. package/dist/components/callout/callout.d.ts +11 -18
  11. package/dist/components/card/card.d.ts +11 -10
  12. package/dist/components/checkbox/checkbox.d.ts +2 -38
  13. package/dist/components/chip/chip.cva.d.ts +2 -4
  14. package/dist/components/chip/chip.d.ts +1 -1
  15. package/dist/components/code/code.d.ts +2 -2
  16. package/dist/components/collapsible/collapsible.d.ts +4 -35
  17. package/dist/components/copy-button/copy-button.d.ts +1 -1
  18. package/dist/components/drawer/drawer.d.ts +17 -100
  19. package/dist/components/field/field.d.ts +7 -67
  20. package/dist/components/fieldset/fieldset.d.ts +2 -15
  21. package/dist/components/icon/icon.d.ts +2 -2
  22. package/dist/components/input/input.d.ts +2 -8
  23. package/dist/components/logo/imfusion/imfusion.d.ts +2 -5
  24. package/dist/components/logo/imfusion/marks.d.ts +10 -0
  25. package/dist/components/logo/logo.d.ts +3 -3
  26. package/dist/components/navigation-menu/subs/flyout-link.d.ts +5 -19
  27. package/dist/components/navigation-menu/subs/inline-submenu.d.ts +2 -4
  28. package/dist/components/navigation-menu/subs/link.d.ts +6 -23
  29. package/dist/components/navigation-menu/subs/overlay.d.ts +6 -51
  30. package/dist/components/navigation-menu/subs/shared.d.ts +4 -14
  31. package/dist/components/navigation-menu/subs/structure.d.ts +7 -29
  32. package/dist/components/navigation-menu/subs/trigger.d.ts +11 -20
  33. package/dist/components/number-field/index.d.ts +2 -0
  34. package/dist/components/number-field/number-field.d.ts +72 -0
  35. package/dist/components/number-field/number-field.meta.d.ts +2 -0
  36. package/dist/components/popover/popover.d.ts +23 -98
  37. package/dist/components/row/row.d.ts +1 -1
  38. package/dist/components/select/select.d.ts +26 -189
  39. package/dist/components/separator/separator.d.ts +5 -4
  40. package/dist/components/slider/slider.d.ts +7 -77
  41. package/dist/components/spinner/spinner.d.ts +13 -8
  42. package/dist/components/stack/stack.d.ts +3 -4
  43. package/dist/components/switch/switch.d.ts +2 -31
  44. package/dist/components/table/table.d.ts +10 -18
  45. package/dist/components/tabs/tabs.d.ts +18 -52
  46. package/dist/components/toast/toast.d.ts +16 -103
  47. package/dist/components/toggle/toggle.d.ts +3 -21
  48. package/dist/components/toggle-group/toggle-group.d.ts +3 -20
  49. package/dist/components/tooltip/tooltip.d.ts +26 -85
  50. package/dist/components/typo/typo.d.ts +25 -25
  51. package/dist/docgen/gen-docgen.utils.d.ts +3 -4
  52. package/dist/hooks/use-color-scheme.d.ts +5 -11
  53. package/dist/hooks/use-media-query.d.ts +2 -7
  54. package/dist/{icons-Cy1HAosO.js → icons-CaGCCwG-.js} +7 -7
  55. package/dist/icons.js +1 -1
  56. package/dist/index.d.ts +1 -0
  57. package/dist/index.js +1486 -1368
  58. package/dist/integrations/code-highlight/highlighter.d.ts +1 -56
  59. package/dist/integrations/code-highlight.js +41 -189
  60. package/dist/integrations/image-display-options/image-display-options-view.utils.d.ts +0 -1
  61. package/dist/integrations/image-display-options.js +54 -54
  62. package/dist/llms/evals/runner/affected.d.ts +2 -0
  63. package/dist/llms/evals/runner/benchmark.d.ts +12 -0
  64. package/dist/llms/evals/runner/compare.d.ts +2 -0
  65. package/dist/llms/evals/runner/config.d.ts +29 -0
  66. package/dist/llms/evals/runner/evidence.d.ts +7 -0
  67. package/dist/llms/evals/runner/execute.d.ts +32 -0
  68. package/dist/llms/evals/runner/grade.d.ts +10 -0
  69. package/dist/llms/evals/runner/report-md.d.ts +2 -0
  70. package/dist/llms/evals/runner/report.d.ts +4 -0
  71. package/dist/llms/evals/runner/run.d.ts +2 -0
  72. package/dist/llms/evals/runner/scenario.d.ts +3 -0
  73. package/dist/llms/evals/runner/types.d.ts +140 -0
  74. package/dist/llms/evals/runner/workspace.d.ts +2 -0
  75. package/dist/llms/evals/runner/write-generated.d.ts +1 -0
  76. package/dist/provider/web-ui-provider.d.ts +4 -1
  77. package/dist/style.css +1 -1
  78. package/dist/{tabs-DIe1Utiy.js → tabs-By5ir2pt.js} +162 -159
  79. package/dist/tokens/apply.d.ts +4 -9
  80. package/dist/tokens/control-registry.d.ts +3 -6
  81. package/dist/tokens/types.d.ts +7 -24
  82. package/dist/tokens/use-token-controls.d.ts +3 -12
  83. package/dist/types/meta.d.ts +15 -32
  84. package/dist/utils/index.d.ts +1 -0
  85. package/dist/utils/resolve-state-props.d.ts +4 -0
  86. package/dist/vite/brand-assets.d.ts +3 -0
  87. package/dist/vite/index.d.ts +2 -0
  88. package/dist/vite/readable-css-module-names.d.ts +11 -0
  89. package/dist/vite.js +55 -0
  90. package/dist/web-ui-cli.js +322 -0
  91. package/docs/user-guide/AgentTooling.mdx +127 -0
  92. package/docs/user-guide/BrandAssets.mdx +102 -0
  93. package/docs/user-guide/Changelog.mdx +23 -0
  94. package/docs/user-guide/GettingStarted.mdx +70 -0
  95. package/docs/user-guide/HowItsBuilt.mdx +113 -0
  96. package/docs/user-guide/Tokens.mdx +87 -0
  97. package/docs/user-guide/UsagePatterns.mdx +122 -0
  98. package/package.json +27 -22
  99. package/src/assets/public/favicon/apple-touch-icon.png +0 -0
  100. package/src/assets/public/favicon/favicon-16.png +0 -0
  101. package/src/assets/public/favicon/favicon-32.png +0 -0
  102. package/src/assets/public/favicon/favicon.ico +0 -0
  103. package/src/assets/public/favicon/favicon.svg +7 -0
  104. package/src/assets/public/favicon/icon-192.png +0 -0
  105. package/src/assets/public/favicon/icon-512.png +0 -0
  106. package/src/assets/public/favicon/og-image.png +0 -0
  107. package/src/assets/public/spinner/imfusion-spinner-black.webp +0 -0
  108. package/src/assets/public/spinner/imfusion-spinner-blue.webp +0 -0
  109. package/src/assets/public/spinner/imfusion-spinner-white.webp +0 -0
  110. package/src/docgen/doc.gen.json +3255 -603
  111. package/src/llms/install-templates/AGENTS.md +4 -4
  112. package/src/llms/install-templates/hooks/baseline-staleness.sh +9 -2
  113. package/src/llms/llms.gen.txt +7 -1
  114. package/src/llms/skills/imf-web-ui/SKILL.md +44 -21
  115. package/src/llms/skills/imf-web-ui-audit/SKILL.md +25 -11
  116. package/src/llms/skills/imf-web-ui-components/SKILL.md +4 -1
  117. package/src/llms/skills/imf-web-ui-conventions/SKILL.md +2 -2
  118. package/src/llms/skills/imf-web-ui-conventions/templates/AUDIT_CHECKLIST.md +0 -1
  119. package/src/llms/skills/imf-web-ui-conventions/templates/REPORT.md +21 -2
  120. package/src/llms/skills/imf-web-ui-conventions/topics/agent-tooling.md +15 -10
  121. package/src/llms/skills/imf-web-ui-conventions/topics/assets.md +7 -4
  122. package/src/llms/skills/imf-web-ui-conventions/topics/data.md +3 -1
  123. package/src/llms/skills/imf-web-ui-conventions/topics/docs-structure.md +2 -2
  124. package/src/llms/skills/imf-web-ui-conventions/topics/git.md +4 -2
  125. package/src/llms/skills/imf-web-ui-conventions/topics/library-setup.md +10 -1
  126. package/src/llms/skills/imf-web-ui-conventions/topics/styling.md +2 -2
  127. package/src/llms/skills/imf-web-ui-conventions/topics/tokens.md +4 -2
  128. package/src/llms/skills/imf-web-ui-conventions/topics/tooling.md +13 -11
  129. package/src/llms/skills/imf-web-ui-setup/SKILL.md +17 -9
  130. package/src/llms/skills/imf-web-ui-update/SKILL.md +36 -14
  131. package/src/llms/skills/imf-web-ui-ux/SKILL.md +5 -3
  132. package/src/llms/tokens.gen.json +71 -7
  133. package/bin/install.js +0 -446
  134. package/dist/build/vite-css-module-names/index.d.ts +0 -20
  135. package/dist/build/vite-css-module-names.js +0 -17
  136. package/dist/components/spinner/spinner.geometry.d.ts +0 -37
  137. package/dist/integrations/code-highlight/languages/cmake.d.ts +0 -1
  138. package/dist/integrations/code-highlight/languages/cpp.d.ts +0 -1
  139. /package/dist/{meta-CySnRuVp.js → meta-j-7HGrWv.js} +0 -0
@@ -1,59 +1,4 @@
1
- declare const LANGUAGE_DEFINITIONS: {
2
- readonly tsx: {
3
- readonly aliases: readonly ["typescriptreact"];
4
- };
5
- readonly ts: {
6
- readonly aliases: readonly ["typescript"];
7
- };
8
- readonly css: {
9
- readonly aliases: readonly ["scss"];
10
- };
11
- readonly shell: {
12
- readonly aliases: readonly ["bash", "sh", "zsh", "shellscript"];
13
- };
14
- readonly json: {
15
- readonly aliases: readonly [];
16
- };
17
- readonly cpp: {
18
- readonly aliases: readonly ["c++", "cc", "cxx", "hpp"];
19
- };
20
- readonly python: {
21
- readonly aliases: readonly ["py"];
22
- };
23
- readonly cmake: {
24
- readonly aliases: readonly [];
25
- };
26
- readonly html: {
27
- readonly aliases: readonly ["htm", "xml", "angular-html"];
28
- };
29
- readonly js: {
30
- readonly aliases: readonly ["javascript", "mjs", "cjs", "js-vue"];
31
- };
32
- readonly jsx: {
33
- readonly aliases: readonly [];
34
- };
35
- readonly markdown: {
36
- readonly aliases: readonly ["md"];
37
- };
38
- readonly yaml: {
39
- readonly aliases: readonly ["yml"];
40
- };
41
- readonly sql: {
42
- readonly aliases: readonly [];
43
- };
44
- readonly dockerfile: {
45
- readonly aliases: readonly [];
46
- };
47
- readonly toml: {
48
- readonly aliases: readonly [];
49
- };
50
- };
51
1
  export declare const SUPPORTED_LANGUAGES: string[];
52
- type CanonicalLanguage = keyof typeof LANGUAGE_DEFINITIONS;
53
- type LanguageAlias = {
54
- [Language in CanonicalLanguage]: (typeof LANGUAGE_DEFINITIONS)[Language]["aliases"][number];
55
- }[CanonicalLanguage];
56
- export type SupportedLanguage = CanonicalLanguage | LanguageAlias;
2
+ export type SupportedLanguage = string;
57
3
  export declare function isSupportedLanguage(value: string): value is SupportedLanguage;
58
4
  export declare function highlightToHtml(code: string, language: SupportedLanguage): string;
59
- export {};
@@ -1,26 +1,13 @@
1
1
  import { t as e } from "../chunk-DmhlhrBa.js";
2
- import { t } from "../meta-CySnRuVp.js";
3
- import { i as n, n as r, r as i } from "../code-Ce8uiPsv.js";
2
+ import { t } from "../meta-j-7HGrWv.js";
3
+ import { i as n, n as r, r as i } from "../code-D2lwxHgd.js";
4
4
  import { jsx as a } from "react/jsx-runtime";
5
5
  import { cloneElement as o, useMemo as s } from "react";
6
6
  import { createHighlighter as c, defineLanguage as l, renderNodesToHtml as u, renderTokens as d } from "@tanstack/highlight/core";
7
- import { css as f } from "@tanstack/highlight/languages/css";
8
- import { dockerfile as p } from "@tanstack/highlight/languages/dockerfile";
9
- import { html as m } from "@tanstack/highlight/languages/html";
10
- import { js as h } from "@tanstack/highlight/languages/js";
11
- import { jsx as g } from "@tanstack/highlight/languages/jsx";
12
- import { json as _ } from "@tanstack/highlight/languages/json";
13
- import { markdown as v } from "@tanstack/highlight/languages/markdown";
14
- import { plaintext as y } from "@tanstack/highlight/languages/plaintext";
15
- import { shell as b } from "@tanstack/highlight/languages/shell";
16
- import { sql as x } from "@tanstack/highlight/languages/sql";
17
- import { toml as S } from "@tanstack/highlight/languages/toml";
18
- import { ts as C } from "@tanstack/highlight/languages/ts";
19
- import { tsx as w } from "@tanstack/highlight/languages/tsx";
20
- import { yaml as T } from "@tanstack/highlight/languages/yaml";
21
- import { python as E } from "@tanstack/highlight/languages/python";
7
+ import * as f from "@tanstack/highlight/languages";
8
+ import { python as p } from "@tanstack/highlight/languages/python";
22
9
  //#region src/integrations/code-highlight/language-patterns.ts
23
- function D(e, t, n = []) {
10
+ function m(e, t, n = []) {
24
11
  let r = [], i = new Uint8Array(e.length);
25
12
  for (let { start: e, end: t } of n) i.fill(1, e, t);
26
13
  for (let n of t) {
@@ -49,208 +36,73 @@ function D(e, t, n = []) {
49
36
  return r;
50
37
  }
51
38
  //#endregion
52
- //#region src/integrations/code-highlight/languages/cmake.ts
53
- var O = [
54
- {
55
- className: "string",
56
- regex: /"(?:\\.|[^"\\\n])*"|\[(=*)\[[\s\S]*?\]\1\]/g
57
- },
58
- {
59
- className: "comment",
60
- regex: /#[^\n]*/g
61
- },
62
- {
63
- className: "variable",
64
- regex: /\$(?:ENV|CACHE)?\{[^}\n]+\}/g
65
- },
66
- {
67
- className: "keyword",
68
- regex: /\b(?:break|continue|else|elseif|endforeach|endfunction|endif|endmacro|endwhile|if|include|macro|return|while)\b/gi
69
- },
70
- {
71
- className: "literal",
72
- regex: /\b(?:FALSE|IGNORE|NOTFOUND|NO|OFF|ON|TRUE|YES)\b/gi
73
- },
74
- {
75
- className: "function",
76
- regex: /\b[A-Za-z_][\w-]*(?=\s*\()/g
77
- },
78
- {
79
- className: "number",
80
- regex: /\b\d+(?:\.\d+)?\b/g
81
- },
82
- {
83
- className: "operator",
84
- regex: /(?:LESS_EQUAL|GREATER_EQUAL|STREQUAL|IN_LIST|MATCHES|EQUAL|LESS|GREATER|AND|OR|NOT|[=<>+*/!-])/gi
85
- }
86
- ], k = l({
87
- name: "cmake",
88
- tokenize(e) {
89
- return D(e, O);
90
- }
91
- }), A = [
92
- {
93
- className: "comment",
94
- regex: /\/\/[^\n]*|\/\*[\s\S]*?\*\//g
95
- },
96
- {
97
- className: "string",
98
- regex: /"(?:\\.|[^"\\\n])*"|'(?:\\.|[^'\\\n])*'/g
99
- },
100
- {
101
- className: "meta",
102
- regex: /^[ \t]*#[ \t]*(?:include|define|if|ifdef|ifndef|elif|else|endif|pragma|undef|error|warning)\b/gm
103
- },
104
- {
105
- className: "keyword",
106
- regex: /\b(?:alignas|alignof|and|asm|atomic_cancel|atomic_commit|atomic_noexcept|auto|bitand|bitor|break|case|catch|co_await|co_return|co_yield|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|default|delete|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|goto|if|inline|mutable|namespace|new|noexcept|not|operator|or|private|protected|public|reflexpr|register|reinterpret_cast|requires|return|sizeof|static|static_assert|static_cast|struct|switch|synchronized|template|this|thread_local|throw|try|typedef|typeid|typename|union|using|virtual|volatile|while|xor)\b/g
107
- },
108
- {
109
- className: "type",
110
- regex: /\b(?:bool|char|char8_t|char16_t|char32_t|double|float|int|long|short|signed|unsigned|void|wchar_t)\b/g
111
- },
112
- {
113
- className: "literal",
114
- regex: /\b(?:NULL|nullptr|true|false)\b/g
115
- },
116
- {
117
- className: "function",
118
- regex: /\b[A-Za-z_]\w*(?=\s*\()/g
119
- },
120
- {
121
- className: "number",
122
- regex: /\b(?:0[xX][\da-fA-F']+|0[bB][01']+|\d[\d']*(?:\.\d[\d']*)?(?:[eE][+-]?\d[\d']*)?[uUlLfF]*)\b/g
123
- },
124
- {
125
- className: "operator",
126
- regex: /(?:<<=?|>>=?|->\*|->|\+\+|--|&&|\|\||==|!=|<=|>=|::|\+=|-=|\*=|\/=|%=|&=|\|=|\^=|[-+*/%=&|^!<>?:~])/g
127
- }
128
- ], j = l({
129
- name: "cpp",
130
- aliases: [
131
- "c++",
132
- "cc",
133
- "cxx",
134
- "hpp"
135
- ],
136
- tokenize(e) {
137
- return D(e, A);
138
- }
139
- }), M = [{
39
+ //#region src/integrations/code-highlight/languages/python.ts
40
+ var h = [{
140
41
  className: "function",
141
42
  regex: /\b[A-Za-z_]\w*(?=\s*\()/g
142
- }], N = l({
43
+ }], g = l({
143
44
  name: "python",
144
45
  aliases: ["py"],
145
46
  tokenize(e, t) {
146
- let n = E.tokenize(e, t), r = D(e, M, n);
47
+ let n = p.tokenize(e, t), r = m(e, h, n);
147
48
  return [...n, ...r];
148
49
  }
149
- }), P = {
150
- tsx: { aliases: ["typescriptreact"] },
151
- ts: { aliases: ["typescript"] },
152
- css: { aliases: ["scss"] },
153
- shell: { aliases: [
154
- "bash",
155
- "sh",
156
- "zsh",
157
- "shellscript"
158
- ] },
159
- json: { aliases: [] },
160
- cpp: { aliases: [
161
- "c++",
162
- "cc",
163
- "cxx",
164
- "hpp"
165
- ] },
166
- python: { aliases: ["py"] },
167
- cmake: { aliases: [] },
168
- html: { aliases: [
169
- "htm",
170
- "xml",
171
- "angular-html"
172
- ] },
173
- js: { aliases: [
174
- "javascript",
175
- "mjs",
176
- "cjs",
177
- "js-vue"
178
- ] },
179
- jsx: { aliases: [] },
180
- markdown: { aliases: ["md"] },
181
- yaml: { aliases: ["yml"] },
182
- sql: { aliases: [] },
183
- dockerfile: { aliases: [] },
184
- toml: { aliases: [] }
185
- }, F = Object.keys(P), I = [...F, ...Object.values(P).flatMap(({ aliases: e }) => e)];
186
- function L(e) {
187
- return I.includes(e);
188
- }
189
- function R(e, t) {
190
- return e.aliases.includes(t);
50
+ }), _ = {
51
+ css: ["scss"],
52
+ shell: ["shellscript"],
53
+ tsx: ["typescriptreact"]
54
+ };
55
+ function v(e) {
56
+ let t = _[e.name];
57
+ return t == null ? e : {
58
+ ...e,
59
+ aliases: [...e.aliases ?? [], ...t]
60
+ };
191
61
  }
192
- function z(e) {
193
- for (let [t, n] of Object.entries(P)) if (R(n, e)) return t;
194
- return e;
62
+ var y = Object.values(f).map((e) => e.name === g.name ? g : e).map(v), b = [...new Set(y.flatMap(({ aliases: e = [], name: t }) => [t, ...e]))];
63
+ function x(e) {
64
+ return b.some((t) => t.toLowerCase() === e.trim().toLowerCase());
195
65
  }
196
- var B = c({
197
- languages: [
198
- w,
199
- C,
200
- f,
201
- b,
202
- _,
203
- j,
204
- N,
205
- k,
206
- m,
207
- h,
208
- g,
209
- v,
210
- T,
211
- x,
212
- p,
213
- S,
214
- y
215
- ],
66
+ var S = c({
67
+ languages: y,
216
68
  fallbackLanguage: "plaintext"
217
69
  });
218
- function V(e, t) {
219
- let n = z(t), { tokens: r } = B.tokenize(e, { lang: n });
220
- return u(d(r));
70
+ function C(e, t) {
71
+ let { tokens: n } = S.tokenize(e, { lang: t });
72
+ return u(d(n));
221
73
  }
222
74
  //#endregion
223
75
  //#region src/integrations/code-highlight/code-highlight.tsx
224
- var H = /* @__PURE__ */ e({
225
- Block: () => W,
226
- Inline: () => G,
76
+ var w = /* @__PURE__ */ e({
77
+ Block: () => E,
78
+ Inline: () => D,
227
79
  InlineLink: () => n
228
80
  });
229
- function U(e, t) {
81
+ function T(e, t) {
230
82
  return s(() => {
231
- if (!(t == null || e === "")) return /* @__PURE__ */ a("span", { dangerouslySetInnerHTML: { __html: V(e, t) } });
83
+ if (!(t == null || e === "")) return /* @__PURE__ */ a("span", { dangerouslySetInnerHTML: { __html: C(e, t) } });
232
84
  }, [e, t]);
233
85
  }
234
- function W({ language: e, children: t, ...n }) {
235
- let i = U(t, e);
86
+ function E({ language: e, children: t, ...n }) {
87
+ let i = T(t, e);
236
88
  return o(/* @__PURE__ */ a(r, {
237
89
  ...n,
238
90
  language: e,
239
91
  children: t
240
92
  }), { children: i ?? t });
241
93
  }
242
- W.displayName = "Code.Block";
243
- function G({ language: e, children: t, ...n }) {
244
- let r = U(t, e);
94
+ E.displayName = "Code.Block";
95
+ function D({ language: e, children: t, ...n }) {
96
+ let r = T(t, e);
245
97
  return o(/* @__PURE__ */ a(i, {
246
98
  ...n,
247
99
  children: t
248
100
  }), { children: r ?? t });
249
101
  }
250
- G.displayName = "Code.Inline";
102
+ D.displayName = "Code.Inline";
251
103
  //#endregion
252
104
  //#region src/integrations/code-highlight/code-highlight.meta.ts
253
- var K = {
105
+ var O = {
254
106
  name: "CodeHighlight",
255
107
  category: t.display,
256
108
  status: "experimental",
@@ -266,4 +118,4 @@ var K = {
266
118
  }
267
119
  };
268
120
  //#endregion
269
- export { H as Code, F as SUPPORTED_LANGUAGES, K as codeHighlightMeta, L as isSupportedLanguage };
121
+ export { w as Code, b as SUPPORTED_LANGUAGES, O as codeHighlightMeta, x as isSupportedLanguage };
@@ -19,7 +19,6 @@ export type FieldSpec = {
19
19
  step: number;
20
20
  format: Intl.NumberFormatOptions;
21
21
  };
22
- /** Per-slider bounds override. */
23
22
  type SliderRange = {
24
23
  min?: number;
25
24
  max?: number;
@@ -1,5 +1,5 @@
1
- import { t as e } from "../meta-CySnRuVp.js";
2
- import { _ as t, a as n, b as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, n as d, o as f, p, r as m, t as h, u as g, v as _, x as v, y } from "../tabs-DIe1Utiy.js";
1
+ import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, n as u, o as d, p as f, r as p, t as m, u as h, v as g, x as _, y as v } from "../tabs-By5ir2pt.js";
2
+ import { t as y } from "../meta-j-7HGrWv.js";
3
3
  import { cva as b } from "class-variance-authority";
4
4
  import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
5
5
  import { useId as w, useMemo as T, useState as E } from "react";
@@ -73,29 +73,29 @@ function F(e, t) {
73
73
  //#endregion
74
74
  //#region src/integrations/image-display-options/image-display-options-view.tsx
75
75
  var I = b(k.root);
76
- function L({ spec: e, value: n, row: i, onChange: a }) {
77
- let o = /* @__PURE__ */ C(_, {
78
- value: n,
79
- min: e.min,
80
- max: e.max,
81
- step: e.step,
82
- format: e.format,
76
+ function L({ spec: t, value: r, row: i, onChange: a }) {
77
+ let c = /* @__PURE__ */ C(g, {
78
+ value: r,
79
+ min: t.min,
80
+ max: t.max,
81
+ step: t.step,
82
+ format: t.format,
83
83
  onValueChange: (e) => {
84
84
  a(typeof e == "number" ? e : e[0]);
85
85
  },
86
- children: [/* @__PURE__ */ C(u, {
86
+ children: [/* @__PURE__ */ C(l, {
87
87
  justify: "between",
88
- children: [/* @__PURE__ */ S(t, { children: e.label }), /* @__PURE__ */ S(v, {})]
89
- }), /* @__PURE__ */ S(c, { children: /* @__PURE__ */ C(r, { children: [/* @__PURE__ */ S(s, {}), /* @__PURE__ */ S(y, { "aria-label": e.label })] }) })]
88
+ children: [/* @__PURE__ */ S(e, { children: t.label }), /* @__PURE__ */ S(_, {})]
89
+ }), /* @__PURE__ */ S(s, { children: /* @__PURE__ */ C(n, { children: [/* @__PURE__ */ S(o, {}), /* @__PURE__ */ S(v, { "aria-label": t.label })] }) })]
90
90
  });
91
91
  return i ? /* @__PURE__ */ S("div", {
92
92
  className: k.rowField,
93
- children: o
94
- }) : o;
93
+ children: c
94
+ }) : c;
95
95
  }
96
96
  function R({ checked: e, row: t, onChange: n }) {
97
97
  let r = w();
98
- return /* @__PURE__ */ C(u, {
98
+ return /* @__PURE__ */ C(l, {
99
99
  align: "center",
100
100
  justify: t ? "start" : "between",
101
101
  gap: "2",
@@ -104,18 +104,18 @@ function R({ checked: e, row: t, onChange: n }) {
104
104
  id: r,
105
105
  className: k.invertLabel,
106
106
  children: "Invert"
107
- }), /* @__PURE__ */ S(o, {
107
+ }), /* @__PURE__ */ S(a, {
108
108
  "aria-labelledby": r,
109
109
  checked: e,
110
110
  onCheckedChange: (e) => {
111
111
  n(e);
112
112
  },
113
- children: /* @__PURE__ */ S(p, {})
113
+ children: /* @__PURE__ */ S(f, {})
114
114
  })]
115
115
  });
116
116
  }
117
117
  function z({ active: e, onChange: t }) {
118
- return /* @__PURE__ */ C(g, {
118
+ return /* @__PURE__ */ C(h, {
119
119
  className: k.segment,
120
120
  "aria-label": "Display dimension",
121
121
  value: [e],
@@ -123,10 +123,10 @@ function z({ active: e, onChange: t }) {
123
123
  let n = e[0];
124
124
  (n === "2d" || n === "3d") && t(n);
125
125
  },
126
- children: [/* @__PURE__ */ S(a, {
126
+ children: [/* @__PURE__ */ S(i, {
127
127
  value: "2d",
128
128
  children: "2D"
129
- }), /* @__PURE__ */ S(a, {
129
+ }), /* @__PURE__ */ S(i, {
130
130
  value: "3d",
131
131
  children: "3D"
132
132
  })]
@@ -149,113 +149,113 @@ function B({ dimension: e, fields: t, options: n, row: r, onChange: i }) {
149
149
  }
150
150
  })] });
151
151
  }
152
- function V({ variant: e = "default", options: t, intensityRange: r, ranges: a, onOptionsChange: o, className: s, ...c }) {
153
- let [p, g] = E("2d"), _ = N(r, a), v = (e) => {
152
+ function V({ variant: e = "default", options: n, intensityRange: i, ranges: a, onOptionsChange: o, className: s, ...f }) {
153
+ let [h, g] = E("2d"), _ = N(i, a), v = (e) => {
154
154
  g(e === "3d" ? "3d" : "2d");
155
155
  };
156
156
  return /* @__PURE__ */ S("div", {
157
- ...c,
157
+ ...f,
158
158
  "data-imf-ui-component": "ImageDisplayOptions",
159
159
  className: I({ className: s }),
160
- children: e === "default" ? /* @__PURE__ */ C(n, {
161
- value: p,
160
+ children: e === "default" ? /* @__PURE__ */ C(t, {
161
+ value: h,
162
162
  onValueChange: v,
163
- children: [/* @__PURE__ */ C(d, { children: [
164
- /* @__PURE__ */ S(f, {
163
+ children: [/* @__PURE__ */ C(u, { children: [
164
+ /* @__PURE__ */ S(d, {
165
165
  value: "2d",
166
166
  children: "2D Slices"
167
167
  }),
168
- /* @__PURE__ */ S(f, {
168
+ /* @__PURE__ */ S(d, {
169
169
  value: "3d",
170
170
  children: "3D Volume"
171
171
  }),
172
- /* @__PURE__ */ S(h, {})
173
- ] }), /* @__PURE__ */ C(l, { children: [/* @__PURE__ */ S(m, {
172
+ /* @__PURE__ */ S(m, {})
173
+ ] }), /* @__PURE__ */ C(c, { children: [/* @__PURE__ */ S(p, {
174
174
  value: "2d",
175
- children: /* @__PURE__ */ S(i, {
175
+ children: /* @__PURE__ */ S(r, {
176
176
  gap: "3",
177
177
  children: /* @__PURE__ */ S(B, {
178
178
  dimension: "2d",
179
179
  fields: _["2d"],
180
- options: t,
180
+ options: n,
181
181
  row: !1,
182
182
  onChange: o
183
183
  })
184
184
  })
185
- }), /* @__PURE__ */ S(m, {
185
+ }), /* @__PURE__ */ S(p, {
186
186
  value: "3d",
187
- children: /* @__PURE__ */ S(i, {
187
+ children: /* @__PURE__ */ S(r, {
188
188
  gap: "3",
189
189
  children: /* @__PURE__ */ S(B, {
190
190
  dimension: "3d",
191
191
  fields: _["3d"],
192
- options: t,
192
+ options: n,
193
193
  row: !1,
194
194
  onChange: o
195
195
  })
196
196
  })
197
197
  })] })]
198
- }) : e === "horizontal" ? /* @__PURE__ */ C(n, {
198
+ }) : e === "horizontal" ? /* @__PURE__ */ C(t, {
199
199
  className: k.horizontalTabs,
200
200
  orientation: "vertical",
201
- value: p,
201
+ value: h,
202
202
  onValueChange: v,
203
- children: [/* @__PURE__ */ C(d, {
203
+ children: [/* @__PURE__ */ C(u, {
204
204
  fill: !0,
205
205
  children: [
206
- /* @__PURE__ */ S(f, {
206
+ /* @__PURE__ */ S(d, {
207
207
  value: "2d",
208
208
  children: "2D"
209
209
  }),
210
- /* @__PURE__ */ S(f, {
210
+ /* @__PURE__ */ S(d, {
211
211
  value: "3d",
212
212
  children: "3D"
213
213
  }),
214
- /* @__PURE__ */ S(h, {})
214
+ /* @__PURE__ */ S(m, {})
215
215
  ]
216
- }), /* @__PURE__ */ C(l, {
216
+ }), /* @__PURE__ */ C(c, {
217
217
  className: k.horizontalPanel,
218
- children: [/* @__PURE__ */ S(m, {
218
+ children: [/* @__PURE__ */ S(p, {
219
219
  value: "2d",
220
- children: /* @__PURE__ */ S(u, {
220
+ children: /* @__PURE__ */ S(l, {
221
221
  align: "center",
222
222
  gap: "3",
223
223
  className: k.strip,
224
224
  children: /* @__PURE__ */ S(B, {
225
225
  dimension: "2d",
226
226
  fields: _["2d"],
227
- options: t,
227
+ options: n,
228
228
  row: !0,
229
229
  onChange: o
230
230
  })
231
231
  })
232
- }), /* @__PURE__ */ S(m, {
232
+ }), /* @__PURE__ */ S(p, {
233
233
  value: "3d",
234
- children: /* @__PURE__ */ S(u, {
234
+ children: /* @__PURE__ */ S(l, {
235
235
  align: "center",
236
236
  gap: "3",
237
237
  className: k.strip,
238
238
  children: /* @__PURE__ */ S(B, {
239
239
  dimension: "3d",
240
240
  fields: _["3d"],
241
- options: t,
241
+ options: n,
242
242
  row: !0,
243
243
  onChange: o
244
244
  })
245
245
  })
246
246
  })]
247
247
  })]
248
- }) : /* @__PURE__ */ C(u, {
248
+ }) : /* @__PURE__ */ C(l, {
249
249
  align: "center",
250
250
  gap: "3",
251
251
  className: k.compactStrip,
252
252
  children: [/* @__PURE__ */ S(z, {
253
- active: p,
253
+ active: h,
254
254
  onChange: g
255
255
  }), /* @__PURE__ */ S(B, {
256
- dimension: p,
257
- fields: _[p],
258
- options: t,
256
+ dimension: h,
257
+ fields: _[h],
258
+ options: n,
259
259
  row: !0,
260
260
  onChange: o
261
261
  })]
@@ -295,7 +295,7 @@ H.displayName = "ImageDisplayOptions";
295
295
  //#region src/integrations/image-display-options/image-display-options.meta.ts
296
296
  var U = {
297
297
  name: "ImageDisplayOptions",
298
- category: e.inputs,
298
+ category: y.inputs,
299
299
  status: "experimental",
300
300
  description: "Panel and toolbar controls for an image dataset's display options, including window, level, gamma, and invert settings.",
301
301
  origin: "adapted",
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env -S npx tsx
2
+ export {};
@@ -0,0 +1,12 @@
1
+ import { Benchmark, RunResult } from './types';
2
+ type AggregateOptions = {
3
+ skillFamily: string;
4
+ runsPerScenario: number;
5
+ executorModel: string;
6
+ graderModel: string;
7
+ graderVotes: number;
8
+ tier: string;
9
+ };
10
+ export declare function aggregateBenchmark(runs: RunResult[], options: AggregateOptions): Benchmark;
11
+ export declare function mergeBenchmarkUpdate(previous: Benchmark | undefined, update: Benchmark, updatedEvalIds: string[]): Benchmark;
12
+ export {};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env -S npx tsx
2
+ export {};
@@ -0,0 +1,29 @@
1
+ export declare const EVALS_DIR: string;
2
+ export declare const NO_SKILLS: boolean;
3
+ export declare const EVAL_ROOT: string;
4
+ export declare const TEMPLATE: string;
5
+ export declare const CODEX_HOME_DIR: string;
6
+ export declare const RESULTS_DIR: string;
7
+ export declare const REPORT_PATH: string;
8
+ export declare const SCENARIOS_DIR: string;
9
+ export declare const FIXTURES_DIR: string;
10
+ export declare const SKILLS_DIR: string;
11
+ export declare const SKILL_FAMILY: string;
12
+ export declare const WORKSPACE_LABEL: string;
13
+ export declare const DEFAULT_FIXTURE = "fresh-install";
14
+ export declare const ROUND_TIMEOUT_MS = 600000;
15
+ export declare const MAX_TURNS = 60;
16
+ export declare const HOST_PLANS_DIR: string;
17
+ type TierName = string;
18
+ type Tier = {
19
+ runs: number;
20
+ graderVotes: number;
21
+ };
22
+ type EvalConfig = {
23
+ executorModel?: string;
24
+ graderModel?: string;
25
+ defaultTier?: TierName;
26
+ tiers?: Record<TierName, Tier>;
27
+ };
28
+ export declare const CONFIG: EvalConfig;
29
+ export {};
@@ -0,0 +1,7 @@
1
+ import { HostPlan, ToolUse, TranscriptEntry } from './types.ts';
2
+ export declare function isHostPlanPath(path: string): boolean;
3
+ export declare function extractToolUses(transcript: TranscriptEntry[]): ToolUse[];
4
+ export declare function extractSkillLoads(toolUses: ToolUse[]): string[];
5
+ export declare function findHostPlans(toolUses: ToolUse[]): HostPlan[];
6
+ export declare function renderConversation(transcript: TranscriptEntry[], maxChars?: number): string;
7
+ export declare function renderWorkspaceFiles(workdir: string, hostPlans?: HostPlan[], maxChars?: number): string;