chore: generate

This commit is contained in:
opencode-agent[bot]
2026-05-20 06:41:26 +00:00
parent 38b406fb35
commit 11f7e5a1b0
44 changed files with 354 additions and 543 deletions
@@ -1,12 +1,5 @@
import { Collapsible } from "@kobalte/core/collapsible"
import {
type ComponentProps,
type JSX,
For,
Show,
createMemo,
splitProps,
} from "solid-js"
import { type ComponentProps, type JSX, For, Show, createMemo, splitProps } from "solid-js"
import { DiffChanges } from "./diff-changes-v2"
import { TextShimmerV2 } from "./text-shimmer-v2"
import "./basic-tool-v2.css"
@@ -39,10 +32,7 @@ export interface BasicToolV2TriggerTitle {
}
const isTriggerTitle = (val: unknown): val is BasicToolV2TriggerTitle =>
typeof val === "object" &&
val !== null &&
"title" in val &&
(typeof Node === "undefined" || !(val instanceof Node))
typeof val === "object" && val !== null && "title" in val && (typeof Node === "undefined" || !(val instanceof Node))
export interface BasicToolV2Props extends Omit<ComponentProps<"div">, "children" | "title"> {
trigger: BasicToolV2TriggerTitle | JSX.Element
@@ -95,23 +85,18 @@ export function BasicToolV2(props: BasicToolV2Props) {
[local.class ?? ""]: !!local.class,
}}
>
<Collapsible.Trigger
as="div"
role="button"
data-slot="basic-tool-v2-trigger"
>
<Collapsible.Trigger as="div" role="button" data-slot="basic-tool-v2-trigger">
<div data-slot="basic-tool-v2-labels">
<Show
when={isTriggerTitle(local.trigger) && local.trigger}
fallback={local.trigger as JSX.Element}
>
<Show when={isTriggerTitle(local.trigger) && local.trigger} fallback={local.trigger as JSX.Element}>
{(title) => (
<>
<span data-slot="basic-tool-v2-title">
<TextShimmerV2 text={title().title} active={pending()} />
</span>
<Show when={!pending() && title().subtitle}>
<span data-slot="basic-tool-v2-sep" aria-hidden="true">·</span>
<span data-slot="basic-tool-v2-sep" aria-hidden="true">
·
</span>
<span
data-slot="basic-tool-v2-subtitle"
style={local.onSubtitleClick ? { cursor: "pointer" } : undefined}
@@ -126,20 +111,14 @@ export function BasicToolV2(props: BasicToolV2Props) {
</span>
</Show>
<Show when={!pending() && title().args?.length}>
<For each={title().args}>
{(arg) => (
<span data-slot="basic-tool-v2-arg">{arg}</span>
)}
</For>
<For each={title().args}>{(arg) => <span data-slot="basic-tool-v2-arg">{arg}</span>}</For>
</Show>
<Show when={!pending() && title().changes}>
<span data-slot="basic-tool-v2-diff">
<DiffChanges changes={title().changes!} />
</span>
</Show>
<Show when={!pending() && title().action}>
{(action) => action()}
</Show>
<Show when={!pending() && title().action}>{(action) => action()}</Show>
</>
)}
</Show>