initial commit
This commit is contained in:
19
config/opencode/Dockerfile
Normal file
19
config/opencode/Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM node:22-slim
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
git curl ca-certificates python3 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN npm install -g \
|
||||
opencode-ai@1.17.9 \
|
||||
typescript \
|
||||
typescript-language-server \
|
||||
pyright
|
||||
|
||||
ENV NODE_PATH=/usr/local/lib/node_modules
|
||||
|
||||
COPY opencode.json /root/.config/opencode/opencode.json
|
||||
|
||||
WORKDIR /workspace
|
||||
|
||||
CMD ["sleep", "infinity"]
|
||||
31
config/opencode/opencode.json
Normal file
31
config/opencode/opencode.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"model": "weave/glm-5.2",
|
||||
"small_model": "weave/glm-5.2",
|
||||
"lsp": {
|
||||
"typescript": {
|
||||
"command": ["typescript-language-server", "--stdio"],
|
||||
"extensions": [".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs", ".mts", ".cts"]
|
||||
},
|
||||
"pyright": {
|
||||
"command": ["pyright-langserver", "--stdio"],
|
||||
"extensions": [".py", ".pyi"]
|
||||
}
|
||||
},
|
||||
"provider": {
|
||||
"weave": {
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
"options": { "baseURL": "https://weave.redpencil.io/v1", "apiKey": "{env:WEAVE_API_KEY}" },
|
||||
"models": {
|
||||
"deepinfra/anthropic/claude-4-opus": { "tools": true },
|
||||
"glm-5.2": { "tools": true }
|
||||
}
|
||||
}
|
||||
},
|
||||
"permission": {
|
||||
"read": "allow",
|
||||
"edit": "allow",
|
||||
"bash": "allow",
|
||||
"external_directory": "allow"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user