Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .devcontainer/devcontainer-lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"features": {
"ghcr.io/devcontainers/features/git:1": {
"version": "1.3.8",
"resolved": "ghcr.io/devcontainers/features/git@sha256:fd75977de13a9979000e0e78baf949adb0ca71d2398995fa22e0a36d7e7e7fe2",
"integrity": "sha256:fd75977de13a9979000e0e78baf949adb0ca71d2398995fa22e0a36d7e7e7fe2"
}
}
}
11 changes: 11 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "opencode-dev",
"image": "oven/bun:1.3",
"features": {
"ghcr.io/devcontainers/features/git:1": {}
},
"remoteEnv": {
"PATH": "/root/.qlty/bin:${containerEnv:PATH}"
},
"postCreateCommand": "apt-get update && apt-get install -y python3 make g++ lcov curl xz-utils && curl https://qlty.sh | bash"
}
10 changes: 10 additions & 0 deletions packages/tui/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import { useConnected } from "./component/use-connected"
import { DialogMcp } from "./component/dialog-mcp"
import { DialogStatus } from "./component/dialog-status"
import { DialogDebug } from "./component/dialog-debug"
import { DialogScotty } from "./component/dialog-scotty"
import { DialogThemeList } from "./component/dialog-theme-list"
import { DialogHelp } from "./ui/dialog-help"
import { DialogAgent } from "./component/dialog-agent"
Expand Down Expand Up @@ -778,6 +779,15 @@ function App(props: { onSnapshot?: () => Promise<string[]>; pluginHost: TuiPlugi
},
category: "System",
},
{
name: "opencode.scotty",
title: "Show Scotty",
slashName: "scotty",
run: () => {
dialog.replace(() => <DialogScotty />)
},
category: "System",
},
{
name: "theme.switch",
title: "Switch theme",
Expand Down
51 changes: 51 additions & 0 deletions packages/tui/src/component/dialog-scotty.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import { TextAttributes } from "@opentui/core"
import { For } from "solid-js"
import { useTheme } from "../context/theme"
import { useDialog } from "../ui/dialog"

const SCOTTY = [
" __---__",
" _- -_",
" / \\",
" | O O |",
" | __ |",
" \\ |__| /",
" /```-.__________.-'```\\",
" / \\",
" _____/ CARNEGIE MELLON \\_____",
" | |",
" | __ __ __ __ __ |",
" \\_/ \\____/ \\____/ \\____/ \\____/ \\_/",
" | | | | | | | |",
" | | | | | | | |",
]

export function DialogScotty() {
const { theme } = useTheme()
const dialog = useDialog()

dialog.setSize("large")

return (
<box paddingLeft={2} paddingRight={2} gap={1} paddingBottom={1}>
<box flexDirection="row" justifyContent="space-between">
<text fg={theme.text} attributes={TextAttributes.BOLD}>
Scotty
</text>
<text fg={theme.textMuted} onMouseUp={() => dialog.clear()}>
esc
</text>
</box>
<box>
<For each={SCOTTY}>
{(line) => (
<text fg={theme.text} wrapMode="none">
{line}
</text>
)}
</For>
</box>
<text fg={theme.textMuted}>Go Tartans!</text>
</box>
)
}
Loading