Skip to content

Commit ce1bc98

Browse files
author
Pedro Pombeiro
committed
chore(scripts): update opencode configuration and environment variables
Reorganize opencode configuration structure by moving the OPENCODE_MODEL environment variable to the top-level configuration, simplifying the configuration file paths to use the root gitlab directory instead of a nested .opencode subdirectory, and add provider configuration for GitLab with feature flags for duo agent platform agentic chat capabilities.
1 parent 4db730f commit ce1bc98

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

.config/yadm/scripts/update-work.zsh

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ ENABLE_SPRING = "1"
123123
GITLAB_USE_MODEL_LOAD_BALANCING = "1"
124124
GITLAB_VIM_URL = "https://gitlab.com"
125125
OP_BIOMETRIC_UNLOCK_ENABLED = "true"
126+
OPENCODE_MODEL = "gitlab/duo-chat-opus-4-6"
126127
PUMA_WORKER_TIMEOUT = "9999999"
127128
QA_GITLAB_URL = "http://gdk.test:3000"
128129
QA_LOG_LEVEL = "DEBUG"
@@ -137,13 +138,11 @@ EOF
137138
cat << EOF > "${GDK_ROOT}/gitlab/.mise.toml"
138139
## NOTE: Do not edit directly - Auto generated from ${0:A}
139140
[env]
140-
OPENCODE_CONFIG="{{env.GDK_ROOT}}/gitlab/.opencode/opencode.jsonc"
141141
EOF
142142

143143
# Populate opencode configuration
144-
mkdir -p "${GDK_ROOT}/gitlab/.opencode"
145-
rm -f "${GDK_ROOT}/gitlab/.opencode/opencode.json" && echo "Removed opencode.json file"
146-
cat << EOF > "${GDK_ROOT}/gitlab/.opencode/opencode.jsonc"
144+
rm -f "${GDK_ROOT}/gitlab/opencode.json" && echo "Removed opencode.json file"
145+
cat << EOF > "${GDK_ROOT}/gitlab/opencode.jsonc"
147146
// NOTE: Do not edit directly - Auto generated from ${0:A}
148147
{
149148
"\$schema": "https://opencode.ai/config.json",
@@ -165,6 +164,17 @@ EOF
165164
"standardrb": {
166165
"disabled": true
167166
}
167+
},
168+
"provider": {
169+
"gitlab": {
170+
"options": {
171+
"instanceUrl": "https://gitlab.com",
172+
"featureFlags": {
173+
"duo_agent_platform_agentic_chat": true,
174+
"duo_agent_platform": true
175+
}
176+
}
177+
}
168178
}
169179
}
170180
EOF

0 commit comments

Comments
 (0)