diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 00000000..b283fbed --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,8 @@ +FROM oven/bun:latest + +# Install Python, build tools for native modules, and Git for Husky +RUN apt-get update && apt-get install -y \ + python3 \ + build-essential \ + git \ + && rm -rf /var/lib/apt/lists/* \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..9de30c6c --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,14 @@ +{ + "name": "OpenCode Bun Dev", + "build": { + "dockerfile": "Dockerfile" + }, + "customizations": { + "vscode": { + "extensions": [ + "oven.bun-vscode" + ] + } + }, + "postCreateCommand": "bun install" +} \ No newline at end of file diff --git a/packages/opencode/src/command/index.ts b/packages/opencode/src/command/index.ts index 057754cd..30bfe8d1 100644 --- a/packages/opencode/src/command/index.ts +++ b/packages/opencode/src/command/index.ts @@ -9,6 +9,7 @@ import { MCP } from "../mcp" import { Skill } from "../skill" import PROMPT_INITIALIZE from "./template/initialize.txt" import PROMPT_REVIEW from "./template/review.txt" +import PROMPT_SCOTTY from "./template/scotty.txt" import { LegacyEvent } from "@opencode-ai/schema/legacy-event" type State = { @@ -46,6 +47,7 @@ export function hints(template: string) { export const Default = { INIT: "init", REVIEW: "review", + SCOTTY: "scotty", } as const export interface Interface { @@ -86,6 +88,15 @@ const layer = Layer.effect( subtask: true, hints: hints(PROMPT_REVIEW), } + commands[Default.SCOTTY] = { + name: Default.SCOTTY, + description: "print ASCII art of a cute Scottish terrier", + source: "command", + get template() { + return PROMPT_SCOTTY + }, + hints: hints(PROMPT_SCOTTY), + } for (const [name, command] of Object.entries(cfg.command ?? {})) { commands[name] = { diff --git a/packages/opencode/src/command/template/scotty.txt b/packages/opencode/src/command/template/scotty.txt new file mode 100644 index 00000000..e0d33aa9 --- /dev/null +++ b/packages/opencode/src/command/template/scotty.txt @@ -0,0 +1 @@ +Output an ASCII image of a Scottish Terrier named Scotty. Make him as cute as you can.