veryfront 0.1.647 → 0.1.648
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/esm/deno.js +1 -1
- package/esm/src/react/components/chat/chat/components/tool-ui.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/tool-ui.js +8 -6
- package/esm/src/server/handlers/dev/framework-candidates.generated.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/framework-candidates.generated.js +18 -1
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +1 -1
package/esm/deno.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-ui.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/components/tool-ui.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,KAAK,MAAM,kCAAkC,CAAC;AAU1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AA4B7F,gCAAgC;AAChC,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAS/E;
|
|
1
|
+
{"version":3,"file":"tool-ui.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/components/tool-ui.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,KAAK,MAAM,kCAAkC,CAAC;AAU1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AA4B7F,gCAAgC;AAChC,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAS/E;AAkFD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAC3B,IAAI,GACL,EAAE;IACD,IAAI,EAAE,YAAY,GAAG,mBAAmB,CAAC;CAC1C,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAgEpB"}
|
|
@@ -72,13 +72,17 @@ function renderOutputAsTable(output) {
|
|
|
72
72
|
return (React.createElement("tr", { key: i, className: "border-b border-[var(--border)]" }, keys.map((key) => (React.createElement("td", { key: key, className: "px-4 py-2 text-[var(--card-foreground)]" }, String(record?.[key] ?? ""))))));
|
|
73
73
|
})))));
|
|
74
74
|
}
|
|
75
|
+
function hasVisibleToolOutput(output) {
|
|
76
|
+
return output !== undefined && output !== null;
|
|
77
|
+
}
|
|
75
78
|
/**
|
|
76
79
|
* Tool call card component - renders tool invocations with parameters and results
|
|
77
80
|
* Styled to match AI Elements (https://ai-sdk.dev/elements)
|
|
78
81
|
*/
|
|
79
82
|
export function ToolCallCard({ tool, }) {
|
|
80
83
|
const [isExpanded, setIsExpanded] = React.useState(true);
|
|
81
|
-
const
|
|
84
|
+
const hasOutput = hasVisibleToolOutput(tool.output);
|
|
85
|
+
const tableOutput = hasOutput ? renderOutputAsTable(tool.output) : null;
|
|
82
86
|
return (React.createElement("div", { className: "not-prose w-full rounded-xl border border-[var(--border)] bg-[var(--card)]" },
|
|
83
87
|
React.createElement("button", { type: "button", onClick: () => setIsExpanded((v) => !v), className: "group flex w-full items-center justify-between gap-4 p-3 hover:bg-[var(--accent)] transition-all rounded-t-xl" },
|
|
84
88
|
React.createElement("div", { className: "flex items-center gap-2" },
|
|
@@ -90,11 +94,9 @@ export function ToolCallCard({ tool, }) {
|
|
|
90
94
|
tool.input === undefined ? null : (React.createElement("div", { className: "space-y-2 overflow-hidden p-4" },
|
|
91
95
|
React.createElement("h4", { className: "font-medium text-[var(--muted-foreground)] text-xs uppercase tracking-wide" }, "Parameters"),
|
|
92
96
|
React.createElement("div", { className: "rounded-lg bg-[var(--accent)] p-3" }, formatJsonWithHighlight(tool.input)))),
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
React.createElement("h4", { className: "font-medium text-[var(--muted-foreground)] text-xs uppercase tracking-wide" }, "Result"),
|
|
97
|
-
React.createElement("div", { className: "overflow-x-auto rounded-lg bg-[var(--accent)] text-[var(--foreground)]" }, tableOutput ?? React.createElement("div", { className: "p-3" }, formatJsonWithHighlight(tool.output))))),
|
|
97
|
+
!hasOutput ? null : (React.createElement("div", { className: "space-y-2 p-4 border-t border-[var(--border)]" },
|
|
98
|
+
React.createElement("h4", { className: "font-medium text-[var(--muted-foreground)] text-xs uppercase tracking-wide" }, "Result"),
|
|
99
|
+
React.createElement("div", { className: "overflow-x-auto rounded-lg bg-[var(--accent)] text-[var(--foreground)]" }, tableOutput ?? React.createElement("div", { className: "p-3" }, formatJsonWithHighlight(tool.output))))),
|
|
98
100
|
!tool.errorText ? null : (React.createElement("div", { className: "space-y-2 p-4 border-t border-[var(--border)]" },
|
|
99
101
|
React.createElement("h4", { className: "font-medium text-[var(--destructive)] text-xs uppercase tracking-wide" }, "Error"),
|
|
100
102
|
React.createElement("div", { className: "rounded-lg bg-[var(--destructive)]/10 text-[var(--destructive)] p-3 text-sm" }, tool.errorText)))))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework-candidates.generated.d.ts","sourceRoot":"","sources":["../../../../../src/src/server/handlers/dev/framework-candidates.generated.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,
|
|
1
|
+
{"version":3,"file":"framework-candidates.generated.d.ts","sourceRoot":"","sources":["../../../../../src/src/server/handlers/dev/framework-candidates.generated.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EAwkLjD,CAAC"}
|
|
@@ -27,6 +27,7 @@ export const FRAMEWORK_CANDIDATES = [
|
|
|
27
27
|
"!gap-0",
|
|
28
28
|
"!hasError",
|
|
29
29
|
"!hasInput",
|
|
30
|
+
"!hasOutput",
|
|
30
31
|
"!hideTabSwitcher",
|
|
31
32
|
"!isActive",
|
|
32
33
|
"!isBrowserEnvironment())",
|
|
@@ -1683,6 +1684,7 @@ export const FRAMEWORK_CANDIDATES = [
|
|
|
1683
1684
|
"Svg,",
|
|
1684
1685
|
"SvgProps",
|
|
1685
1686
|
"SvgProps):",
|
|
1687
|
+
"Swedish",
|
|
1686
1688
|
"Switch",
|
|
1687
1689
|
"Sync",
|
|
1688
1690
|
"System",
|
|
@@ -2099,6 +2101,7 @@ export const FRAMEWORK_CANDIDATES = [
|
|
|
2099
2101
|
"assertEquals(getTextContent(message),",
|
|
2100
2102
|
"assertEquals(groupPartsInOrder([]).length,",
|
|
2101
2103
|
"assertEquals(groups.length,",
|
|
2104
|
+
"assertEquals(html.includes(",
|
|
2102
2105
|
"assertEquals(isReasoningPart(part),",
|
|
2103
2106
|
"assertEquals(isToolPart(part),",
|
|
2104
2107
|
"assertEquals(nonce,",
|
|
@@ -2114,6 +2117,8 @@ export const FRAMEWORK_CANDIDATES = [
|
|
|
2114
2117
|
"assertExists(first);",
|
|
2115
2118
|
"assertExists(second);",
|
|
2116
2119
|
"assertExists(third);",
|
|
2120
|
+
"assertStringIncludes",
|
|
2121
|
+
"assertStringIncludes(html,",
|
|
2117
2122
|
"assistant",
|
|
2118
2123
|
"assistant:",
|
|
2119
2124
|
"assistant?:",
|
|
@@ -3246,8 +3251,11 @@ export const FRAMEWORK_CANDIDATES = [
|
|
|
3246
3251
|
"hasInput={!!input.trim()}",
|
|
3247
3252
|
"hasInput?:",
|
|
3248
3253
|
"hasMessages",
|
|
3254
|
+
"hasOutput",
|
|
3249
3255
|
"hasThreads",
|
|
3250
3256
|
"hasToolCalls",
|
|
3257
|
+
"hasVisibleToolOutput(output:",
|
|
3258
|
+
"hasVisibleToolOutput(tool.output);",
|
|
3251
3259
|
"head>",
|
|
3252
3260
|
"height:",
|
|
3253
3261
|
"height=",
|
|
@@ -4289,6 +4297,7 @@ export const FRAMEWORK_CANDIDATES = [
|
|
|
4289
4297
|
"p>{error}</p>",
|
|
4290
4298
|
"padding:",
|
|
4291
4299
|
"page.",
|
|
4300
|
+
"panel",
|
|
4292
4301
|
"panel.",
|
|
4293
4302
|
"parameters",
|
|
4294
4303
|
"parent-defined",
|
|
@@ -4439,6 +4448,7 @@ export const FRAMEWORK_CANDIDATES = [
|
|
|
4439
4448
|
"py-4",
|
|
4440
4449
|
"py-5",
|
|
4441
4450
|
"py-6",
|
|
4451
|
+
"query:",
|
|
4442
4452
|
"questions",
|
|
4443
4453
|
"quick",
|
|
4444
4454
|
"quickActions",
|
|
@@ -4586,11 +4596,12 @@ export const FRAMEWORK_CANDIDATES = [
|
|
|
4586
4596
|
"renderOutput,",
|
|
4587
4597
|
"renderOutput?:",
|
|
4588
4598
|
"renderOutputAsTable(output:",
|
|
4589
|
-
"renderOutputAsTable(tool.output)
|
|
4599
|
+
"renderOutputAsTable(tool.output)",
|
|
4590
4600
|
"renderReasoning)",
|
|
4591
4601
|
"renderReasoning,",
|
|
4592
4602
|
"renderReasoning?:",
|
|
4593
4603
|
"renderToString",
|
|
4604
|
+
"renderToString(<ToolCallCard",
|
|
4594
4605
|
"renderToString(element);",
|
|
4595
4606
|
"renderTool",
|
|
4596
4607
|
"renderTool(group.tool)",
|
|
@@ -4618,6 +4629,7 @@ export const FRAMEWORK_CANDIDATES = [
|
|
|
4618
4629
|
"requestAnimationFrame:",
|
|
4619
4630
|
"reset",
|
|
4620
4631
|
"reset:",
|
|
4632
|
+
"residency",
|
|
4621
4633
|
"resize",
|
|
4622
4634
|
"resize();",
|
|
4623
4635
|
"resize-none",
|
|
@@ -5146,6 +5158,7 @@ export const FRAMEWORK_CANDIDATES = [
|
|
|
5146
5158
|
"take",
|
|
5147
5159
|
"target",
|
|
5148
5160
|
"target=",
|
|
5161
|
+
"tax",
|
|
5149
5162
|
"tbody>",
|
|
5150
5163
|
"tc1",
|
|
5151
5164
|
"td",
|
|
@@ -5337,6 +5350,8 @@ export const FRAMEWORK_CANDIDATES = [
|
|
|
5337
5350
|
"tool-primitives.tsx",
|
|
5338
5351
|
"tool-result",
|
|
5339
5352
|
"tool-search",
|
|
5353
|
+
"tool-ui.tsx",
|
|
5354
|
+
"tool-web-search",
|
|
5340
5355
|
"tool.",
|
|
5341
5356
|
"tool.error",
|
|
5342
5357
|
"tool.errorText}",
|
|
@@ -5350,6 +5365,7 @@ export const FRAMEWORK_CANDIDATES = [
|
|
|
5350
5365
|
"tool.type",
|
|
5351
5366
|
"tool:",
|
|
5352
5367
|
"tool={group.tool}",
|
|
5368
|
+
"tool={tool}",
|
|
5353
5369
|
"tool?:",
|
|
5354
5370
|
"toolCall:",
|
|
5355
5371
|
"toolCallId",
|
|
@@ -5640,6 +5656,7 @@ export const FRAMEWORK_CANDIDATES = [
|
|
|
5640
5656
|
"waitFor(condition:",
|
|
5641
5657
|
"waiting",
|
|
5642
5658
|
"we",
|
|
5659
|
+
"web_search",
|
|
5643
5660
|
"when",
|
|
5644
5661
|
"which",
|
|
5645
5662
|
"while",
|