agent 1.7.0 + contracts 1.23.0: a demo scenario seeds whatever the church has installed

- contracts 1.23.0: the seed-scenario job (church, scenario, optional adminEmail; 45 minutes),
  SEED_SCENARIO_JOB_MIN_AGENT 1.7.0.
- agent 1.7.0: seed-scenario -> `crosscode demo <church> --scenario <s>`; seed-demo for
  accounts and app, and --scenario passed on to every product.
- crosscode script: `crosscode demo <church> --scenario <s>` loads the scenario on every product
  the church has here (Accounts, Events, the Website, the App), skipping the rest; every
  installed release checked first; the first failure stops the rest and names what's out of
  step (loaded / skipped in the report). `crosscode demo <church> app` says the App's demo comes
  with App 1.0.0.
- Docs: HANDOVER, APP-1.0-PLAN, VERSIONS, CHANGELOG, agent What's New.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-30 16:25:31 +02:00
co-authored by Claude Opus 5.5
parent 7391f97cfa
commit 2e8e4c04ca
17 changed files with 408 additions and 42 deletions
+13 -3
View File
@@ -58,10 +58,20 @@ export function crosscodeArgs(job: agent.AgentJob, opts: { exportFile?: string }
if (job.args.restart) out.push("--restart");
return out;
}
case "seed-demo":
case "seed-demo": {
// 1.6.0: the Website's demo names the product; Events' (no product) keeps its old form.
return ["demo", job.args.church, ...(job.args.product === "website" ? ["website"] : []), "--profile", job.args.profile,
...(job.args.adminEmail ? ["--admin-email", job.args.adminEmail] : [])];
// 1.7.0: the App's and Accounts' too, and a demo scenario passed on (`--scenario`), so each
// product can tell a scenario load from a single one.
const a = job.args;
const product = a.product && a.product !== "events" ? [a.product] : [];
return ["demo", a.church, ...product, "--profile", a.profile,
...(a.scenario ? ["--scenario", a.scenario] : []),
...(a.adminEmail ? ["--admin-email", a.adminEmail] : [])];
}
case "seed-scenario":
// 1.7.0: a whole demo scenario. No product named: the script loads every product the church
// has on this server, Accounts first, and skips the others.
return ["demo", job.args.church, "--scenario", job.args.scenario, ...(job.args.adminEmail ? ["--admin-email", job.args.adminEmail] : [])];
case "export":
if (!opts.exportFile) throw new Error("export needs a file to write");
return ["export", job.args.church, ...(job.args.products ?? []), "--out", opts.exportFile];
+1 -1
View File
@@ -12,7 +12,7 @@ import { paths } from "./paths";
* the tools that are there; anything missing is null rather than an error.
*/
export const AGENT_VERSION = "1.6.0";
export const AGENT_VERSION = "1.7.0";
function run(cmd: string, args: string[], timeoutMs = 10_000): Promise<string | null> {
return new Promise((resolve) => {