@nahuelcio/opencode-ado
v0.4.4
Published
Azure DevOps plugin for OpenCode — PR reviews, profiles, sidebar panel
Maintainers
Readme
@nahuelcio/opencode-ado
Azure DevOps plugin for OpenCode + Pi.
Install
OpenCode
npx @nahuelcio/opencode-ado initThis wizard:
- stores your PAT in
~/.azure-devops-cli/pat - registers the server plugin in
~/.config/opencode/opencode.json - registers the sidebar plugin in
~/.config/opencode/tui.json
Pi
pi install npm:@nahuelcio/opencode-adoThen create config with:
/ado:configCLI
npx @nahuelcio/opencode-ado init # interactive setup wizard
npx @nahuelcio/opencode-ado sync # register existing ADO config in OpenCode + TUI
npx @nahuelcio/opencode-ado show # show current config
npx @nahuelcio/opencode-ado --help # helpFor local workspace testing (without publishing):
node dist/bin/opencode-ado.js sync-localConfiguration
OpenCode (~/.config/opencode/opencode.json)
The plugin config is stored in OpenCode as plugin options:
{
"plugin": [
[
"@nahuelcio/opencode-ado",
{
"defaultProfile": "work",
"profiles": {
"work": {
"org": "https://dev.azure.com/myorg",
"project": "myproject",
"patEnvVar": "AZURE_DEVOPS_PAT",
"repos": ["backend", "frontend"],
"default": true
}
}
}
]
]
}Pi (~/.azure-devops-cli/config.json or .pi/settings.json)
{
"ado": {
"defaultProfile": "work",
"profiles": {
"work": {
"org": "https://dev.azure.com/myorg",
"project": "myproject",
"patEnvVar": "AZURE_DEVOPS_PAT",
"repos": ["backend", "frontend"]
}
}
}
}Pi config lookup order:
.pi/settings.json(project-local)~/.pi/agent/settings.json(global)~/.azure-devops-cli/config.json(shared fallback)
Authentication
Requires an Azure DevOps PAT with scopes:
- Code (Read & Write)
- Pull Request Contribute (Read & Write)
- Work Items (Read)
PAT resolution order:
AZURE_DEVOPS_PATenvironment variable~/.azure-devops-cli/pat
Available Tools
ado_prsado_prado_pr_threadsado_pr_commentado_reviewado_pr_diffado_pr_fileado_pr_review_contextado_select_prado_profileado_profilesado_profile_useado_work_itemsado_work_itemado_work_item_updateado_work_item_commentado_work_item_typesado_related_work_items
Pi Commands
/ado:status— show ADO connection status/ado:profiles— list configured profiles/ado:switch— switch active profile/ado:config— write config template to~/.azure-devops-cli/config.json
Development
npm install
npm run build
npm testLicense
MIT
