MCPcopy Create free account
hub / github.com/anomalyco/opencode / trigger

Function trigger

packages/session-ui/src/components/message-part.tsx:1891–1914  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1889 }
1890
1891 const trigger = () => (
1892 <div data-component="task-tool-card">
1893 <div data-slot="basic-tool-tool-info-structured">
1894 <div data-slot="basic-tool-tool-info-main">
1895 <Show when={running()}>
1896 <span data-component="task-tool-spinner" style={{ color: tone() ?? "var(--icon-interactive-base)" }}>
1897 <Spinner />
1898 </span>
1899 </Show>
1900 <span data-component="task-tool-title" style={{ color: tone() ?? "var(--text-strong)" }}>
1901 {title()}
1902 </span>
1903 <Show when={subtitle()}>
1904 <span data-slot="basic-tool-tool-subtitle">{subtitle()}</span>
1905 </Show>
1906 </div>
1907 </div>
1908 <Show when={clickable()}>
1909 <div data-component="task-tool-action">
1910 <Icon name="square-arrow-top-right" size="small" />
1911 </div>
1912 </Show>
1913 </div>
1914 )
1915
1916 return (
1917 <BasicTool

Callers 2

ContextToolGroupFunction · 0.70
renderFunction · 0.70

Calls 3

titleContentFunction · 0.85
toneFunction · 0.70
titleFunction · 0.50

Tested by

no test coverage detected