()
| 444 | host.appendChild(summary); |
| 445 | |
| 446 | function render() { |
| 447 | const c = state; |
| 448 | const lines = [ |
| 449 | "agents-cli scaffold create outage-recovery-bot \\", |
| 450 | " --agent adk \\", |
| 451 | ]; |
| 452 | lines.push(" --deployment-target " + c.target + " \\"); |
| 453 | if (c.session !== "in_memory") lines.push(" --session-type " + c.session + " \\"); |
| 454 | if (c.cicd !== "skip") lines.push(" --cicd-runner " + c.cicd + " \\"); |
| 455 | lines.push(c.bq === "yes" ? " --bq-analytics" : " --auto-approve"); |
| 456 | cmdCode.textContent = lines.join("\n"); |
| 457 | |
| 458 | // Crude file-count estimate using the deltas we know about. |
| 459 | let fileCount = 57; |
| 460 | if (c.cicd === "skip") fileCount -= 18; // strip .github/* + cicd terraform |
| 461 | if (c.bq === "no") fileCount -= 2; |
| 462 | const pieces = [ |
| 463 | c.cicd !== "skip" && (c.cicd === "github_actions" ? "GitHub Actions CI/CD" : "Cloud Build CI/CD"), |
| 464 | c.bq === "yes" && "BQ Analytics", |
| 465 | c.target === "agent_runtime" ? "Agent Runtime entrypoint" : c.target === "cloud_run" ? "Cloud Run service" : "GKE manifests", |
| 466 | ].filter(Boolean); |
| 467 | summary.innerHTML = "<strong>" + fileCount + " files</strong> · " + pieces.join(" · "); |
| 468 | } |
| 469 | render(); |
| 470 | } |
| 471 |
no test coverage detected