open-azdo 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/SECURITY.md +3 -1
- package/dist/open-azdo.js +693 -257
- package/dist/open-azdo.js.map +13 -13
- package/examples/azure-pipelines.review.debug.yml +1 -1
- package/examples/azure-pipelines.review.pnpm.yml +66 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -51,6 +51,19 @@ Optional flags:
|
|
|
51
51
|
- `--dry-run`
|
|
52
52
|
- `--json`
|
|
53
53
|
|
|
54
|
+
## Output And Logging
|
|
55
|
+
|
|
56
|
+
Operational logs are pretty, colorized, and written to `stderr` by default so humans can follow the run in local terminals and CI job logs.
|
|
57
|
+
The final command result stays on `stdout`.
|
|
58
|
+
|
|
59
|
+
Use `--json` when you want fully machine-readable output:
|
|
60
|
+
|
|
61
|
+
- command results stay on `stdout` as JSON
|
|
62
|
+
- operational logs stay on `stderr` as JSON
|
|
63
|
+
- `review` and `sandbox capture` both follow the same contract
|
|
64
|
+
|
|
65
|
+
During OpenCode execution, `open-azdo` now emits live progress milestones such as session start, retries, tool start/completion, todo-plan updates, and session errors. Raw assistant text deltas and full tool outputs are intentionally omitted from default logs to keep them readable.
|
|
66
|
+
|
|
54
67
|
## Sandbox Capture
|
|
55
68
|
|
|
56
69
|
Use the live capture command when you want to validate changes against a real Azure DevOps pull request without mutating PR threads:
|
|
@@ -99,11 +112,13 @@ Exit behavior:
|
|
|
99
112
|
|
|
100
113
|
- successful review runs return `0`, even when findings are posted
|
|
101
114
|
- operational failures return non-zero
|
|
115
|
+
- logs always use `stderr`; results always use `stdout`
|
|
102
116
|
|
|
103
117
|
## Azure Pipelines
|
|
104
118
|
|
|
105
119
|
The canonical example is in [examples/azure-pipelines.review.yml](./examples/azure-pipelines.review.yml).
|
|
106
120
|
For first-time rollout or debugging, use [examples/azure-pipelines.review.debug.yml](./examples/azure-pipelines.review.debug.yml).
|
|
121
|
+
For pnpm-managed repositories that want dependency install, `.NET` provisioning, restore, and experimental LSP access, use [examples/azure-pipelines.review.pnpm.yml](./examples/azure-pipelines.review.pnpm.yml).
|
|
107
122
|
|
|
108
123
|
Key requirements:
|
|
109
124
|
|
|
@@ -114,6 +129,7 @@ Key requirements:
|
|
|
114
129
|
- grant repository read and pull request thread read/write permissions
|
|
115
130
|
|
|
116
131
|
Attach the pipeline as a branch build-validation policy. Findings are posted as PR comments by default and do not fail the build.
|
|
132
|
+
`open-azdo` does not install language-specific prerequisites itself. LSP prerequisites are provided by the pipeline environment, and the pnpm example enables OpenCode's experimental LSP tool while provisioning `.NET` plus `dotnet restore` for C# projects.
|
|
117
133
|
|
|
118
134
|
```yaml
|
|
119
135
|
trigger: none
|
package/SECURITY.md
CHANGED
|
@@ -43,11 +43,13 @@ If required history is missing, `open-azdo` fails with a remediation message ins
|
|
|
43
43
|
|
|
44
44
|
Each review run starts a short-lived OpenCode server bound to `127.0.0.1` on a dynamically chosen port and shuts it down on exit. The generated `azdo-review` agent remains read-only:
|
|
45
45
|
|
|
46
|
-
- read/search/listing tools allowed
|
|
46
|
+
- read/search/listing tools and local LSP queries allowed
|
|
47
47
|
- edit and write denied
|
|
48
48
|
- web fetch and web search denied
|
|
49
49
|
- bash denied by default, with a narrow allowlist for read-style commands
|
|
50
50
|
|
|
51
|
+
LSP access remains local code-intelligence only and does not broaden edit, network, or general shell execution permissions.
|
|
52
|
+
|
|
51
53
|
OpenCode is prompted through the SDK v2 client with JSON-schema structured output. If structured output is unavailable or malformed, the workflow attempts JSON repair and then degrades to a summary-only `"concerns"` result instead of trusting arbitrary text as valid findings.
|
|
52
54
|
|
|
53
55
|
## Azure DevOps Mutations
|