repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/code.tsx
packages/ui/src/components/code.tsx
import { type FileContents, File, FileOptions, LineAnnotation, type SelectedLineRange } from "@pierre/diffs" import { ComponentProps, createEffect, createMemo, onCleanup, splitProps } from "solid-js" import { createDefaultOptions, styleVariables } from "../pierre" import { getWorkerPool } from "../pierre/worker" type ...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/typewriter.tsx
packages/ui/src/components/typewriter.tsx
import { createEffect, onCleanup, Show, type ValidComponent } from "solid-js" import { createStore } from "solid-js/store" import { Dynamic } from "solid-js/web" export const Typewriter = <T extends ValidComponent = "p">(props: { text?: string; class?: string; as?: T }) => { const [store, setStore] = createStore({ ...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/logo.tsx
packages/ui/src/components/logo.tsx
export const Mark = (props: { class?: string }) => { return ( <svg data-component="logo-mark" classList={{ [props.class ?? ""]: !!props.class }} viewBox="0 0 16 20" fill="none" xmlns="http://www.w3.org/2000/svg" > <path data-slot="logo-logo-mark-shadow" d="M12 16H4V8H12V16Z...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/session-message-rail.tsx
packages/ui/src/components/session-message-rail.tsx
import { UserMessage } from "@opencode-ai/sdk/v2" import { ComponentProps, Show, splitProps } from "solid-js" import { MessageNav } from "./message-nav" import "./session-message-rail.css" export interface SessionMessageRailProps extends ComponentProps<"div"> { messages: UserMessage[] current?: UserMessage wide?...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/basic-tool.tsx
packages/ui/src/components/basic-tool.tsx
import { createEffect, createSignal, For, Match, Show, Switch, type JSX } from "solid-js" import { Collapsible } from "./collapsible" import { Icon, IconProps } from "./icon" export type TriggerTitle = { title: string titleClass?: string subtitle?: string subtitleClass?: string args?: string[] argsClass?: ...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/collapsible.tsx
packages/ui/src/components/collapsible.tsx
import { Collapsible as Kobalte, CollapsibleRootProps } from "@kobalte/core/collapsible" import { ComponentProps, ParentProps, splitProps } from "solid-js" import { Icon } from "./icon" export interface CollapsibleProps extends ParentProps<CollapsibleRootProps> { class?: string classList?: ComponentProps<"div">["c...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/avatar.tsx
packages/ui/src/components/avatar.tsx
import { type ComponentProps, splitProps, Show } from "solid-js" export interface AvatarProps extends ComponentProps<"div"> { fallback: string src?: string background?: string foreground?: string size?: "small" | "normal" | "large" } export function Avatar(props: AvatarProps) { const [split, rest] = split...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/toast.tsx
packages/ui/src/components/toast.tsx
import { Toast as Kobalte, toaster } from "@kobalte/core/toast" import type { ToastRootProps, ToastCloseButtonProps, ToastTitleProps, ToastDescriptionProps } from "@kobalte/core/toast" import type { ComponentProps, JSX } from "solid-js" import { Show } from "solid-js" import { Portal } from "solid-js/web" import { Icon...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/spinner.tsx
packages/ui/src/components/spinner.tsx
import { ComponentProps, For } from "solid-js" const outerIndices = new Set([0, 1, 2, 3, 4, 7, 8, 11, 12, 13, 14, 15]) const squares = Array.from({ length: 16 }, (_, i) => ({ id: i, x: (i % 4) * 4, y: Math.floor(i / 4) * 4, delay: Math.random() * 1.5, duration: 1 + Math.random() * 1, outer: outerIndices.ha...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/dialog.tsx
packages/ui/src/components/dialog.tsx
import { Dialog as Kobalte } from "@kobalte/core/dialog" import { ComponentProps, JSXElement, Match, ParentProps, Show, Switch } from "solid-js" import { IconButton } from "./icon-button" export interface DialogProps extends ParentProps { title?: JSXElement description?: JSXElement action?: JSXElement class?: ...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/tabs.tsx
packages/ui/src/components/tabs.tsx
import { Tabs as Kobalte } from "@kobalte/core/tabs" import { Show, splitProps, type JSX } from "solid-js" import type { ComponentProps, ParentProps } from "solid-js" export interface TabsProps extends ComponentProps<typeof Kobalte> { variant?: "normal" | "alt" orientation?: "horizontal" | "vertical" } export inte...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/provider-icon.tsx
packages/ui/src/components/provider-icon.tsx
import type { Component, JSX } from "solid-js" import { splitProps } from "solid-js" import sprite from "./provider-icons/sprite.svg" import type { IconName } from "./provider-icons/types" export type ProviderIconProps = JSX.SVGElementTags["svg"] & { id: IconName } export const ProviderIcon: Component<ProviderIconP...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/button.tsx
packages/ui/src/components/button.tsx
import { Button as Kobalte } from "@kobalte/core/button" import { type ComponentProps, Show, splitProps } from "solid-js" import { Icon, IconProps } from "./icon" export interface ButtonProps extends ComponentProps<typeof Kobalte>, Pick<ComponentProps<"button">, "class" | "classList" | "children"> { size?: "sm...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/icon-button.tsx
packages/ui/src/components/icon-button.tsx
import { Button as Kobalte } from "@kobalte/core/button" import { type ComponentProps, splitProps } from "solid-js" import { Icon, IconProps } from "./icon" export interface IconButtonProps extends ComponentProps<typeof Kobalte> { icon: IconProps["name"] size?: "normal" | "large" iconSize?: IconProps["size"] v...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/popover.tsx
packages/ui/src/components/popover.tsx
import { Popover as Kobalte } from "@kobalte/core/popover" import { ComponentProps, JSXElement, ParentProps, Show, splitProps } from "solid-js" import { IconButton } from "./icon-button" export interface PopoverProps extends ParentProps, Omit<ComponentProps<typeof Kobalte>, "children"> { trigger: JSXElement title?...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/file-icon.tsx
packages/ui/src/components/file-icon.tsx
import type { Component, JSX } from "solid-js" import { createMemo, splitProps } from "solid-js" import sprite from "./file-icons/sprite.svg" import type { IconName } from "./file-icons/types" export type FileIconProps = JSX.GSVGAttributes<SVGSVGElement> & { node: { path: string; type: "file" | "directory" } expan...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/progress-circle.tsx
packages/ui/src/components/progress-circle.tsx
import { type ComponentProps, createMemo, splitProps } from "solid-js" export interface ProgressCircleProps extends Pick<ComponentProps<"svg">, "class" | "classList"> { percentage: number size?: number strokeWidth?: number } export function ProgressCircle(props: ProgressCircleProps) { const [split, rest] = sp...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/tag.tsx
packages/ui/src/components/tag.tsx
import { type ComponentProps, splitProps } from "solid-js" export interface TagProps extends ComponentProps<"span"> { size?: "normal" | "large" } export function Tag(props: TagProps) { const [split, rest] = splitProps(props, ["size", "class", "classList", "children"]) return ( <span {...rest} da...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/diff-changes.tsx
packages/ui/src/components/diff-changes.tsx
import { createMemo, For, Match, Show, Switch } from "solid-js" export function DiffChanges(props: { class?: string changes: { additions: number; deletions: number } | { additions: number; deletions: number }[] variant?: "default" | "bars" }) { const variant = () => props.variant ?? "default" const addition...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/accordion.tsx
packages/ui/src/components/accordion.tsx
import { Accordion as Kobalte } from "@kobalte/core/accordion" import { splitProps } from "solid-js" import type { ComponentProps, ParentProps } from "solid-js" export interface AccordionProps extends ComponentProps<typeof Kobalte> {} export interface AccordionItemProps extends ComponentProps<typeof Kobalte.Item> {} e...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/dropdown-menu.tsx
packages/ui/src/components/dropdown-menu.tsx
import { DropdownMenu as Kobalte } from "@kobalte/core/dropdown-menu" import { splitProps } from "solid-js" import type { ComponentProps, ParentProps } from "solid-js" export interface DropdownMenuProps extends ComponentProps<typeof Kobalte> {} export interface DropdownMenuTriggerProps extends ComponentProps<typeof Ko...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/switch.tsx
packages/ui/src/components/switch.tsx
import { Switch as Kobalte } from "@kobalte/core/switch" import { Show, splitProps } from "solid-js" import type { ComponentProps, ParentProps } from "solid-js" export interface SwitchProps extends ParentProps<ComponentProps<typeof Kobalte>> { hideLabel?: boolean description?: string } export function Switch(prop...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/sticky-accordion-header.tsx
packages/ui/src/components/sticky-accordion-header.tsx
import { Accordion } from "./accordion" import { ParentProps } from "solid-js" export function StickyAccordionHeader( props: ParentProps<{ class?: string; classList?: Record<string, boolean | undefined> }>, ) { return ( <Accordion.Header data-component="sticky-accordion-header" classList={{ ...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/image-preview.tsx
packages/ui/src/components/image-preview.tsx
import { Dialog as Kobalte } from "@kobalte/core/dialog" import { IconButton } from "./icon-button" export interface ImagePreviewProps { src: string alt?: string } export function ImagePreview(props: ImagePreviewProps) { return ( <div data-component="image-preview"> <div data-slot="image-preview-conta...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/markdown.tsx
packages/ui/src/components/markdown.tsx
import { useMarked } from "../context/marked" import { ComponentProps, createResource, splitProps } from "solid-js" export function Markdown( props: ComponentProps<"div"> & { text: string class?: string classList?: Record<string, boolean> }, ) { const [local, others] = splitProps(props, ["text", "cla...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/list.tsx
packages/ui/src/components/list.tsx
import { type FilteredListProps, useFilteredList } from "@opencode-ai/ui/hooks" import { createEffect, createSignal, For, onCleanup, type JSX, on, Show } from "solid-js" import { createStore } from "solid-js/store" import { Icon, type IconProps } from "./icon" import { IconButton } from "./icon-button" import { TextFie...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/session-turn.tsx
packages/ui/src/components/session-turn.tsx
import { AssistantMessage, Message as MessageType, Part as PartType, type PermissionRequest, TextPart, ToolPart, } from "@opencode-ai/sdk/v2/client" import { useData } from "../context" import { useDiffComponent } from "../context/diff" import { getDirectory, getFilename } from "@opencode-ai/util/path" imp...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/resize-handle.tsx
packages/ui/src/components/resize-handle.tsx
import { splitProps, type JSX } from "solid-js" export interface ResizeHandleProps extends Omit<JSX.HTMLAttributes<HTMLDivElement>, "onResize"> { direction: "horizontal" | "vertical" size: number min: number max: number onResize: (size: number) => void onCollapse?: () => void collapseThreshold?: number }...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/card.tsx
packages/ui/src/components/card.tsx
import { type ComponentProps, splitProps } from "solid-js" export interface CardProps extends ComponentProps<"div"> { variant?: "normal" | "error" | "warning" | "success" | "info" } export function Card(props: CardProps) { const [split, rest] = splitProps(props, ["variant", "class", "classList"]) return ( <...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/text-field.tsx
packages/ui/src/components/text-field.tsx
import { TextField as Kobalte } from "@kobalte/core/text-field" import { createSignal, Show, splitProps } from "solid-js" import type { ComponentProps } from "solid-js" import { IconButton } from "./icon-button" import { Tooltip } from "./tooltip" export interface TextFieldProps extends ComponentProps<typeof Kobalte...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/tooltip.tsx
packages/ui/src/components/tooltip.tsx
import { Tooltip as KobalteTooltip } from "@kobalte/core/tooltip" import { children, createSignal, Match, onMount, splitProps, Switch, type JSX } from "solid-js" import type { ComponentProps } from "solid-js" export interface TooltipProps extends ComponentProps<typeof KobalteTooltip> { value: JSX.Element class?: s...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/diff.tsx
packages/ui/src/components/diff.tsx
import { checksum } from "@opencode-ai/util/encode" import { FileDiff } from "@pierre/diffs" import { createEffect, createMemo, onCleanup, splitProps } from "solid-js" import { createDefaultOptions, type DiffProps, styleVariables } from "../pierre" import { getWorkerPool } from "../pierre/worker" export function Diff<...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/radio-group.tsx
packages/ui/src/components/radio-group.tsx
import { SegmentedControl as Kobalte } from "@kobalte/core/segmented-control" import { For, splitProps } from "solid-js" import type { ComponentProps, JSX } from "solid-js" export type RadioGroupProps<T> = Omit< ComponentProps<typeof Kobalte>, "value" | "defaultValue" | "onChange" | "children" > & { options: T[]...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/message-part.tsx
packages/ui/src/components/message-part.tsx
import { Component, createEffect, createMemo, createSignal, For, Match, Show, Switch, onCleanup, type JSX, } from "solid-js" import { Dynamic } from "solid-js/web" import { AgentPart, AssistantMessage, FilePart, Message as MessageType, Part as PartType, ReasoningPart, TextPart, ToolP...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/diff-ssr.tsx
packages/ui/src/components/diff-ssr.tsx
import { DIFFS_TAG_NAME, FileDiff } from "@pierre/diffs" import { PreloadMultiFileDiffResult } from "@pierre/diffs/ssr" import { onCleanup, onMount, Show, splitProps } from "solid-js" import { Dynamic, isServer } from "solid-js/web" import { createDefaultOptions, styleVariables, type DiffProps } from "../pierre" import...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/select.tsx
packages/ui/src/components/select.tsx
import { Select as Kobalte } from "@kobalte/core/select" import { createMemo, splitProps, type ComponentProps, type JSX } from "solid-js" import { pipe, groupBy, entries, map } from "remeda" import { Button, ButtonProps } from "./button" import { Icon } from "./icon" export type SelectProps<T> = Omit<ComponentProps<ty...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/session-review.tsx
packages/ui/src/components/session-review.tsx
import { Accordion } from "./accordion" import { Button } from "./button" import { RadioGroup } from "./radio-group" import { DiffChanges } from "./diff-changes" import { FileIcon } from "./file-icon" import { Icon } from "./icon" import { StickyAccordionHeader } from "./sticky-accordion-header" import { useDiffCompone...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/font.tsx
packages/ui/src/components/font.tsx
import { Style, Link } from "@solidjs/meta" import inter from "../assets/fonts/inter.woff2" import ibmPlexMonoRegular from "../assets/fonts/ibm-plex-mono.woff2" import ibmPlexMonoMedium from "../assets/fonts/ibm-plex-mono-medium.woff2" import ibmPlexMonoBold from "../assets/fonts/ibm-plex-mono-bold.woff2" import casca...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/favicon.tsx
packages/ui/src/components/favicon.tsx
import { Link, Meta } from "@solidjs/meta" export const Favicon = () => { return ( <> <Link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96" /> <Link rel="shortcut icon" href="/favicon.ico" /> <Link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" /> ...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/icon.tsx
packages/ui/src/components/icon.tsx
import { splitProps, type ComponentProps } from "solid-js" const icons = { "align-right": `<path d="M12.292 6.04167L16.2503 9.99998L12.292 13.9583M2.91699 9.99998H15.6253M17.0837 3.75V16.25" stroke="currentColor" stroke-linecap="square"/>`, "arrow-up": `<path fill-rule="evenodd" clip-rule="evenodd" d="M9.99991 2.2...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/message-nav.tsx
packages/ui/src/components/message-nav.tsx
import { UserMessage } from "@opencode-ai/sdk/v2" import { ComponentProps, For, Match, Show, splitProps, Switch } from "solid-js" import { DiffChanges } from "./diff-changes" import { Tooltip } from "@kobalte/core/tooltip" export function MessageNav( props: ComponentProps<"ul"> & { messages: UserMessage[] cu...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/checkbox.tsx
packages/ui/src/components/checkbox.tsx
import { Checkbox as Kobalte } from "@kobalte/core/checkbox" import { Show, splitProps } from "solid-js" import type { ComponentProps, JSX, ParentProps } from "solid-js" export interface CheckboxProps extends ParentProps<ComponentProps<typeof Kobalte>> { hideLabel?: boolean description?: string icon?: JSX.Elemen...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/provider-icons/types.ts
packages/ui/src/components/provider-icons/types.ts
// This file is generated by icon spritesheet generator export const iconNames = [ "zhipuai", "zhipuai-coding-plan", "zenmux", "zai", "zai-coding-plan", "xiaomi", "xai", "wandb", "vultr", "vercel", "venice", "v0", "upstage", "togetherai", "synthetic", "submodel", "siliconflow", "sil...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/components/file-icons/types.ts
packages/ui/src/components/file-icons/types.ts
// This file is generated by icon spritesheet generator export const iconNames = [ "Zip", "Zig", "Zeabur_light", "Zeabur", "Yarn", "Yang", "Yaml", "Xml", "Xmake", "Xaml", "Wxt", "Wrangler", "Word", "Wolframlanguage", "Windicss", "Werf", "Wepy", "Webpack", "Webhint", "Webassembly...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/theme/default-themes.ts
packages/ui/src/theme/default-themes.ts
import type { DesktopTheme } from "./types" import oc1ThemeJson from "./themes/oc-1.json" import tokyoThemeJson from "./themes/tokyonight.json" import draculaThemeJson from "./themes/dracula.json" import monokaiThemeJson from "./themes/monokai.json" import solarizedThemeJson from "./themes/solarized.json" import nordTh...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/theme/color.ts
packages/ui/src/theme/color.ts
import type { HexColor, OklchColor } from "./types" export function hexToRgb(hex: HexColor): { r: number; g: number; b: number } { const h = hex.replace("#", "") const full = h.length === 3 ? h .split("") .map((c) => c + c) .join("") : h const num = parseInt(full, 1...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/theme/context.tsx
packages/ui/src/theme/context.tsx
import { onMount, onCleanup, createEffect } from "solid-js" import { createStore } from "solid-js/store" import type { DesktopTheme } from "./types" import { resolveThemeVariant, themeToCss } from "./resolve" import { DEFAULT_THEMES } from "./default-themes" import { createSimpleContext } from "../context/helper" expo...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/theme/loader.ts
packages/ui/src/theme/loader.ts
import type { DesktopTheme, ResolvedTheme } from "./types" import { resolveThemeVariant, themeToCss } from "./resolve" let activeTheme: DesktopTheme | null = null const THEME_STYLE_ID = "opencode-theme" function ensureLoaderStyleElement(): HTMLStyleElement { const existing = document.getElementById(THEME_STYLE_ID) ...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/theme/resolve.ts
packages/ui/src/theme/resolve.ts
import type { ColorValue, DesktopTheme, HexColor, ResolvedTheme, ThemeVariant } from "./types" import { generateNeutralScale, generateScale, hexToOklch, oklchToHex, withAlpha } from "./color" export function resolveThemeVariant(variant: ThemeVariant, isDark: boolean): ResolvedTheme { const { seeds, overrides = {} } ...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/theme/types.ts
packages/ui/src/theme/types.ts
export type HexColor = `#${string}` export interface OklchColor { l: number // Lightness 0-1 c: number // Chroma 0-0.4+ h: number // Hue 0-360 } export interface ThemeSeedColors { neutral: HexColor primary: HexColor success: HexColor warning: HexColor error: HexColor info: HexColor interactive: He...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/theme/index.ts
packages/ui/src/theme/index.ts
export type { DesktopTheme, ThemeSeedColors, ThemeVariant, HexColor, OklchColor, ResolvedTheme, ColorValue, CssVarRef, } from "./types" export { hexToRgb, rgbToHex, hexToOklch, oklchToHex, rgbToOklch, oklchToRgb, generateScale, generateNeutralScale, generateAlphaScale, mixColors, ...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/pierre/index.ts
packages/ui/src/pierre/index.ts
import { DiffLineAnnotation, FileContents, FileDiffOptions } from "@pierre/diffs" import { ComponentProps } from "solid-js" export type DiffProps<T = {}> = FileDiffOptions<T> & { before: FileContents after: FileContents annotations?: DiffLineAnnotation<T>[] class?: string classList?: ComponentProps<"div">["c...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/pierre/worker.ts
packages/ui/src/pierre/worker.ts
import { WorkerPoolManager } from "@pierre/diffs/worker" import ShikiWorkerUrl from "@pierre/diffs/worker/worker.js?worker&url" export type WorkerPoolStyle = "unified" | "split" export function workerFactory(): Worker { return new Worker(ShikiWorkerUrl, { type: "module" }) } function createPool(lineDiffType: "none...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/context/code.tsx
packages/ui/src/context/code.tsx
import type { ValidComponent } from "solid-js" import { createSimpleContext } from "./helper" const ctx = createSimpleContext<ValidComponent, { component: ValidComponent }>({ name: "CodeComponent", init: (props) => props.component, }) export const CodeComponentProvider = ctx.provider export const useCodeComponent...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/context/helper.tsx
packages/ui/src/context/helper.tsx
import { createContext, createMemo, Show, useContext, type ParentProps, type Accessor } from "solid-js" export function createSimpleContext<T, Props extends Record<string, any>>(input: { name: string init: ((input: Props) => T) | (() => T) }) { const ctx = createContext<T>() return { provider: (props: Par...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/context/dialog.tsx
packages/ui/src/context/dialog.tsx
import { createContext, createSignal, getOwner, Owner, ParentProps, runWithOwner, Show, useContext, type JSX, } from "solid-js" import { Dialog as Kobalte } from "@kobalte/core/dialog" type DialogElement = () => JSX.Element const Context = createContext<ReturnType<typeof init>>() function init() { ...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/context/worker-pool.tsx
packages/ui/src/context/worker-pool.tsx
import type { WorkerPoolManager } from "@pierre/diffs/worker" import { createSimpleContext } from "./helper" export type WorkerPools = { unified: WorkerPoolManager | undefined split: WorkerPoolManager | undefined } const ctx = createSimpleContext<WorkerPools, { pools: WorkerPools }>({ name: "WorkerPool", init...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/context/data.tsx
packages/ui/src/context/data.tsx
import type { Message, Session, Part, FileDiff, SessionStatus, PermissionRequest } from "@opencode-ai/sdk/v2" import { createSimpleContext } from "./helper" import { PreloadMultiFileDiffResult } from "@pierre/diffs/ssr" type Data = { session: Session[] session_status: { [sessionID: string]: SessionStatus } ...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/context/diff.tsx
packages/ui/src/context/diff.tsx
import type { ValidComponent } from "solid-js" import { createSimpleContext } from "./helper" const ctx = createSimpleContext<ValidComponent, { component: ValidComponent }>({ name: "DiffComponent", init: (props) => props.component, }) export const DiffComponentProvider = ctx.provider export const useDiffComponent...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/context/marked.tsx
packages/ui/src/context/marked.tsx
import { marked } from "marked" import markedKatex from "marked-katex-extension" import markedShiki from "marked-shiki" import { bundledLanguages, type BundledLanguage } from "shiki" import { createSimpleContext } from "./helper" import { getSharedHighlighter, registerCustomTheme, ThemeRegistrationResolved } from "@pie...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/src/context/index.ts
packages/ui/src/context/index.ts
export * from "./helper" export * from "./data" export * from "./diff" export * from "./dialog"
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/ui/script/tailwind.ts
packages/ui/script/tailwind.ts
#!/usr/bin/env bun const colors = await Bun.file(import.meta.dir + "/colors.txt").text() const variables = [] for (const line of colors.split("\n")) { if (!line.trim()) continue const [variable] = line.trim().split(":") const name = variable!.trim().substring(2) variables.push(`--color-${name}: var(--${name})...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/sst-env.d.ts
packages/sdk/js/sst-env.d.ts
/* This file is auto-generated by SST. Do not edit. */ /* tslint:disable */ /* eslint-disable */ /* deno-fmt-ignore-file */ /// <reference path="../../../sst-env.d.ts" /> import "sst" export {}
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/client.ts
packages/sdk/js/src/client.ts
export * from "./gen/types.gen.js" import { createClient } from "./gen/client/client.gen.js" import { type Config } from "./gen/client/types.gen.js" import { OpencodeClient } from "./gen/sdk.gen.js" export { type Config as OpencodeClientConfig, OpencodeClient } export function createOpencodeClient(config?: Config & {...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/server.ts
packages/sdk/js/src/server.ts
import { spawn } from "node:child_process" import { type Config } from "./gen/types.gen.js" export type ServerOptions = { hostname?: string port?: number signal?: AbortSignal timeout?: number config?: Config } export type TuiOptions = { project?: string model?: string session?: string agent?: string...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/index.ts
packages/sdk/js/src/index.ts
export * from "./client.js" export * from "./server.js" import { createOpencodeClient } from "./client.js" import { createOpencodeServer } from "./server.js" import type { ServerOptions } from "./server.js" export async function createOpencode(options?: ServerOptions) { const server = await createOpencodeServer({ ...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/gen/types.gen.ts
packages/sdk/js/src/gen/types.gen.ts
// This file is auto-generated by @hey-api/openapi-ts export type EventServerInstanceDisposed = { type: "server.instance.disposed" properties: { directory: string } } export type EventInstallationUpdated = { type: "installation.updated" properties: { version: string } } export type EventInstallat...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
true
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/gen/client.gen.ts
packages/sdk/js/src/gen/client.gen.ts
// This file is auto-generated by @hey-api/openapi-ts import type { ClientOptions } from "./types.gen.js" import { type Config, type ClientOptions as DefaultClientOptions, createClient, createConfig } from "./client/index.js" /** * The `createClientConfig()` function will be called on client initialization * and th...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/gen/sdk.gen.ts
packages/sdk/js/src/gen/sdk.gen.ts
// This file is auto-generated by @hey-api/openapi-ts import type { Options as ClientOptions, TDataShape, Client } from "./client/index.js" import type { GlobalEventData, GlobalEventResponses, ProjectListData, ProjectListResponses, ProjectCurrentData, ProjectCurrentResponses, PtyListData, PtyListRespon...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
true
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/gen/core/params.gen.ts
packages/sdk/js/src/gen/core/params.gen.ts
// This file is auto-generated by @hey-api/openapi-ts type Slot = "body" | "headers" | "path" | "query" export type Field = | { in: Exclude<Slot, "body"> /** * Field name. This is the name we want the user to see and use. */ key: string /** * Field mapped name. This is t...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/gen/core/utils.gen.ts
packages/sdk/js/src/gen/core/utils.gen.ts
// This file is auto-generated by @hey-api/openapi-ts import type { QuerySerializer } from "./bodySerializer.gen.js" import { type ArraySeparatorStyle, serializeArrayParam, serializeObjectParam, serializePrimitiveParam, } from "./pathSerializer.gen.js" export interface PathSerializer { path: Record<string, ...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/gen/core/queryKeySerializer.gen.ts
packages/sdk/js/src/gen/core/queryKeySerializer.gen.ts
// This file is auto-generated by @hey-api/openapi-ts /** * JSON-friendly union that mirrors what Pinia Colada can hash. */ export type JsonValue = null | string | number | boolean | JsonValue[] | { [key: string]: JsonValue } /** * Replacer that converts non-JSON values (bigint, Date, etc.) to safe substitutes. *...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/gen/core/auth.gen.ts
packages/sdk/js/src/gen/core/auth.gen.ts
// This file is auto-generated by @hey-api/openapi-ts export type AuthToken = string | undefined export interface Auth { /** * Which part of the request do we use to send the auth? * * @default 'header' */ in?: "header" | "query" | "cookie" /** * Header or query parameter name. * * @default...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/gen/core/bodySerializer.gen.ts
packages/sdk/js/src/gen/core/bodySerializer.gen.ts
// This file is auto-generated by @hey-api/openapi-ts import type { ArrayStyle, ObjectStyle, SerializerOptions } from "./pathSerializer.gen.js" export type QuerySerializer = (query: Record<string, unknown>) => string export type BodySerializer = (body: any) => any export interface QuerySerializerOptions { allowRe...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/gen/core/types.gen.ts
packages/sdk/js/src/gen/core/types.gen.ts
// This file is auto-generated by @hey-api/openapi-ts import type { Auth, AuthToken } from "./auth.gen.js" import type { BodySerializer, QuerySerializer, QuerySerializerOptions } from "./bodySerializer.gen.js" export interface Client<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never> { /** ...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/gen/core/serverSentEvents.gen.ts
packages/sdk/js/src/gen/core/serverSentEvents.gen.ts
// This file is auto-generated by @hey-api/openapi-ts import type { Config } from "./types.gen.js" export type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, "method"> & Pick<Config, "method" | "responseTransformer" | "responseValidator"> & { /** * Callback invoked when a network or parsing e...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/gen/core/pathSerializer.gen.ts
packages/sdk/js/src/gen/core/pathSerializer.gen.ts
// This file is auto-generated by @hey-api/openapi-ts interface SerializeOptions<T> extends SerializePrimitiveOptions, SerializerOptions<T> {} interface SerializePrimitiveOptions { allowReserved?: boolean name: string } export interface SerializerOptions<T> { /** * @default true */ explode: boolean s...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/gen/client/utils.gen.ts
packages/sdk/js/src/gen/client/utils.gen.ts
// This file is auto-generated by @hey-api/openapi-ts import { getAuthToken } from "../core/auth.gen.js" import type { QuerySerializerOptions } from "../core/bodySerializer.gen.js" import { jsonBodySerializer } from "../core/bodySerializer.gen.js" import { serializeArrayParam, serializeObjectParam, serializePrimitiveP...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/gen/client/types.gen.ts
packages/sdk/js/src/gen/client/types.gen.ts
// This file is auto-generated by @hey-api/openapi-ts import type { Auth } from "../core/auth.gen.js" import type { ServerSentEventsOptions, ServerSentEventsResult } from "../core/serverSentEvents.gen.js" import type { Client as CoreClient, Config as CoreConfig } from "../core/types.gen.js" import type { Middleware } ...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/gen/client/client.gen.ts
packages/sdk/js/src/gen/client/client.gen.ts
// This file is auto-generated by @hey-api/openapi-ts import { createSseClient } from "../core/serverSentEvents.gen.js" import type { Client, Config, RequestOptions, ResolvedRequestOptions } from "./types.gen.js" import { buildUrl, createConfig, createInterceptors, getParseAs, mergeConfigs, mergeHeaders, ...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/gen/client/index.ts
packages/sdk/js/src/gen/client/index.ts
// This file is auto-generated by @hey-api/openapi-ts export type { Auth } from "../core/auth.gen.js" export type { QuerySerializerOptions } from "../core/bodySerializer.gen.js" export { formDataBodySerializer, jsonBodySerializer, urlSearchParamsBodySerializer, } from "../core/bodySerializer.gen.js" export { bui...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/v2/client.ts
packages/sdk/js/src/v2/client.ts
export * from "./gen/types.gen.js" import { createClient } from "./gen/client/client.gen.js" import { type Config } from "./gen/client/types.gen.js" import { OpencodeClient } from "./gen/sdk.gen.js" export { type Config as OpencodeClientConfig, OpencodeClient } export function createOpencodeClient(config?: Config & {...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/v2/server.ts
packages/sdk/js/src/v2/server.ts
import { spawn } from "node:child_process" import { type Config } from "./gen/types.gen.js" export type ServerOptions = { hostname?: string port?: number signal?: AbortSignal timeout?: number config?: Config } export type TuiOptions = { project?: string model?: string session?: string agent?: string...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/v2/index.ts
packages/sdk/js/src/v2/index.ts
export * from "./client.js" export * from "./server.js" import { createOpencodeClient } from "./client.js" import { createOpencodeServer } from "./server.js" import type { ServerOptions } from "./server.js" export async function createOpencode(options?: ServerOptions) { const server = await createOpencodeServer({ ...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/v2/gen/types.gen.ts
packages/sdk/js/src/v2/gen/types.gen.ts
// This file is auto-generated by @hey-api/openapi-ts export type ClientOptions = { baseUrl: `${string}://${string}` | (string & {}) } export type EventInstallationUpdated = { type: "installation.updated" properties: { version: string } } export type EventInstallationUpdateAvailable = { type: "installa...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
true
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/v2/gen/client.gen.ts
packages/sdk/js/src/v2/gen/client.gen.ts
// This file is auto-generated by @hey-api/openapi-ts import { type ClientOptions, type Config, createClient, createConfig } from "./client/index.js" import type { ClientOptions as ClientOptions2 } from "./types.gen.js" /** * The `createClientConfig()` function will be called on client initialization * and the retu...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/v2/gen/sdk.gen.ts
packages/sdk/js/src/v2/gen/sdk.gen.ts
// This file is auto-generated by @hey-api/openapi-ts import { client } from "./client.gen.js" import { buildClientParams, type Client, type Options as Options2, type TDataShape } from "./client/index.js" import type { AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, Auth as Auth2, AuthSe...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
true
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/v2/gen/core/params.gen.ts
packages/sdk/js/src/v2/gen/core/params.gen.ts
// This file is auto-generated by @hey-api/openapi-ts type Slot = "body" | "headers" | "path" | "query" export type Field = | { in: Exclude<Slot, "body"> /** * Field name. This is the name we want the user to see and use. */ key: string /** * Field mapped name. This is t...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/v2/gen/core/utils.gen.ts
packages/sdk/js/src/v2/gen/core/utils.gen.ts
// This file is auto-generated by @hey-api/openapi-ts import type { BodySerializer, QuerySerializer } from "./bodySerializer.gen.js" import { type ArraySeparatorStyle, serializeArrayParam, serializeObjectParam, serializePrimitiveParam, } from "./pathSerializer.gen.js" export interface PathSerializer { path:...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/v2/gen/core/queryKeySerializer.gen.ts
packages/sdk/js/src/v2/gen/core/queryKeySerializer.gen.ts
// This file is auto-generated by @hey-api/openapi-ts /** * JSON-friendly union that mirrors what Pinia Colada can hash. */ export type JsonValue = null | string | number | boolean | JsonValue[] | { [key: string]: JsonValue } /** * Replacer that converts non-JSON values (bigint, Date, etc.) to safe substitutes. *...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/v2/gen/core/auth.gen.ts
packages/sdk/js/src/v2/gen/core/auth.gen.ts
// This file is auto-generated by @hey-api/openapi-ts export type AuthToken = string | undefined export interface Auth { /** * Which part of the request do we use to send the auth? * * @default 'header' */ in?: "header" | "query" | "cookie" /** * Header or query parameter name. * * @default...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/v2/gen/core/bodySerializer.gen.ts
packages/sdk/js/src/v2/gen/core/bodySerializer.gen.ts
// This file is auto-generated by @hey-api/openapi-ts import type { ArrayStyle, ObjectStyle, SerializerOptions } from "./pathSerializer.gen.js" export type QuerySerializer = (query: Record<string, unknown>) => string export type BodySerializer = (body: any) => any type QuerySerializerOptionsObject = { allowReserv...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/v2/gen/core/types.gen.ts
packages/sdk/js/src/v2/gen/core/types.gen.ts
// This file is auto-generated by @hey-api/openapi-ts import type { Auth, AuthToken } from "./auth.gen.js" import type { BodySerializer, QuerySerializer, QuerySerializerOptions } from "./bodySerializer.gen.js" export type HttpMethod = "connect" | "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "tra...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/v2/gen/core/serverSentEvents.gen.ts
packages/sdk/js/src/v2/gen/core/serverSentEvents.gen.ts
// This file is auto-generated by @hey-api/openapi-ts import type { Config } from "./types.gen.js" export type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, "method"> & Pick<Config, "method" | "responseTransformer" | "responseValidator"> & { /** * Fetch API implementation. You can use this o...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/v2/gen/core/pathSerializer.gen.ts
packages/sdk/js/src/v2/gen/core/pathSerializer.gen.ts
// This file is auto-generated by @hey-api/openapi-ts interface SerializeOptions<T> extends SerializePrimitiveOptions, SerializerOptions<T> {} interface SerializePrimitiveOptions { allowReserved?: boolean name: string } export interface SerializerOptions<T> { /** * @default true */ explode: boolean s...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/v2/gen/client/utils.gen.ts
packages/sdk/js/src/v2/gen/client/utils.gen.ts
// This file is auto-generated by @hey-api/openapi-ts import { getAuthToken } from "../core/auth.gen.js" import type { QuerySerializerOptions } from "../core/bodySerializer.gen.js" import { jsonBodySerializer } from "../core/bodySerializer.gen.js" import { serializeArrayParam, serializeObjectParam, serializePrimitiveP...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/v2/gen/client/types.gen.ts
packages/sdk/js/src/v2/gen/client/types.gen.ts
// This file is auto-generated by @hey-api/openapi-ts import type { Auth } from "../core/auth.gen.js" import type { ServerSentEventsOptions, ServerSentEventsResult } from "../core/serverSentEvents.gen.js" import type { Client as CoreClient, Config as CoreConfig } from "../core/types.gen.js" import type { Middleware } ...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/v2/gen/client/client.gen.ts
packages/sdk/js/src/v2/gen/client/client.gen.ts
// This file is auto-generated by @hey-api/openapi-ts import { createSseClient } from "../core/serverSentEvents.gen.js" import type { HttpMethod } from "../core/types.gen.js" import { getValidRequestBody } from "../core/utils.gen.js" import type { Client, Config, RequestOptions, ResolvedRequestOptions } from "./types....
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/src/v2/gen/client/index.ts
packages/sdk/js/src/v2/gen/client/index.ts
// This file is auto-generated by @hey-api/openapi-ts export type { Auth } from "../core/auth.gen.js" export type { QuerySerializerOptions } from "../core/bodySerializer.gen.js" export { formDataBodySerializer, jsonBodySerializer, urlSearchParamsBodySerializer, } from "../core/bodySerializer.gen.js" export { bui...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false
anomalyco/opencode
https://github.com/anomalyco/opencode/blob/0f9130b649f65a8f5d08492e764f47b38f441dca/packages/sdk/js/example/example.ts
packages/sdk/js/example/example.ts
import { createOpencodeClient, createOpencodeServer } from "@opencode-ai/sdk" const server = await createOpencodeServer() const client = createOpencodeClient({ baseUrl: server.url }) const input = await Array.fromAsync(new Bun.Glob("packages/core/*.ts").scan()) const tasks: Promise<void>[] = [] for await (const file...
typescript
MIT
0f9130b649f65a8f5d08492e764f47b38f441dca
2026-01-04T15:39:55.906013Z
false