Commit 9fb8936
authored
Add --messaging-endpoint flag; defer unset M365 endpoint; clean up setup output (#440)
* Add --messaging-endpoint flag; defer unset M365 endpoint; clean up setup output
- Add optional `--messaging-endpoint <url>` to `setup all` and
`setup blueprint --endpoint-only`, with an interactive prompt on
`setup all --m365` when none is configured.
- Treat an unset M365 messaging endpoint as deferred (a post-deploy
artifact) rather than a failure: the setup summary reports success
with a single Next steps pointer instead of an Action Required item.
- Normalize setup output to one indentation convention (section header
at column 0, content nested via Indent scopes, console prompts
aligned); collapse consecutive blank lines in the console formatter.
- Rework "backend configuration" jargon to "messaging endpoint" wording
across registration and cleanup.
- Fix the duplicate "Agent identity created" log line; demote the
"no tenant ID" and "no project detected" messages to debug/info.
- Add SetupContext.NonInteractive so the endpoint-prompt step defers
deterministically (fixes a Visual Studio test-host hang).
Tests and CHANGELOG updated. Full suite green (1649 passed).
* Address Copilot review comments on PR #440
- `--messaging-endpoint`: fail fast when supplied without its precondition
(`--m365` on `setup all`; `--endpoint-only` on `setup blueprint`) instead
of silently ignoring it.
- Distinguish "option omitted" from "explicitly passed empty" — an empty
`--messaging-endpoint ""` now errors with exit 1 rather than being treated
as omitted (which would prompt/defer/no-op).
- `setup blueprint --endpoint-only` now captures the registration result and
exits non-zero when the endpoint did not register, so scripting is reliable.
- Add handler-invocation tests for the three guards.
- review-staged skill: add generic Rules W (CLI option precondition
enforcement), X (Option<string?> empty-vs-omitted conflation), and Y
(ignored result-bearing call / missing exit code) so future reviews catch
this class of issue.1 parent 243bfec commit 9fb8936
22 files changed
Lines changed: 801 additions & 339 deletions
File tree
- .claude/skills/review-staged
- src
- Microsoft.Agents.A365.DevTools.Cli
- Commands
- SetupSubcommands
- Helpers
- Services
- Helpers
- Tests/Microsoft.Agents.A365.DevTools.Cli.Tests
- Commands
- Helpers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
138 | 158 | | |
139 | 159 | | |
140 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
| |||
Lines changed: 28 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
227 | 231 | | |
228 | 232 | | |
229 | 233 | | |
| |||
276 | 280 | | |
277 | 281 | | |
278 | 282 | | |
279 | | - | |
| 283 | + | |
280 | 284 | | |
281 | 285 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | 286 | | |
289 | 287 | | |
290 | 288 | | |
| |||
294 | 292 | | |
295 | 293 | | |
296 | 294 | | |
297 | | - | |
298 | | - | |
299 | | - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
300 | 298 | | |
301 | 299 | | |
302 | 300 | | |
| |||
529 | 527 | | |
530 | 528 | | |
531 | 529 | | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
536 | 534 | | |
537 | 535 | | |
538 | 536 | | |
| |||
1219 | 1217 | | |
1220 | 1218 | | |
1221 | 1219 | | |
1222 | | - | |
| 1220 | + | |
1223 | 1221 | | |
1224 | 1222 | | |
1225 | 1223 | | |
1226 | | - | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
1227 | 1231 | | |
1228 | | - | |
1229 | | - | |
1230 | | - | |
| 1232 | + | |
| 1233 | + | |
1231 | 1234 | | |
1232 | | - | |
1233 | | - | |
1234 | | - | |
1235 | | - | |
| 1235 | + | |
| 1236 | + | |
1236 | 1237 | | |
1237 | | - | |
1238 | | - | |
1239 | | - | |
1240 | 1238 | | |
1241 | 1239 | | |
1242 | 1240 | | |
| |||
0 commit comments