- 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>
92 lines
4.4 KiB
Markdown
92 lines
4.4 KiB
Markdown
# What's new in the server agent
|
|
|
|
What each version of the Cross Code server agent changes, for whoever runs the Hub. The Hub shows
|
|
these notes on its Releases page and when you pick a version under Update agent.
|
|
|
|
<!--
|
|
How this file is used: the Cross Code Hub reads it from main every 15 minutes (release source
|
|
"Server agent", tags agent@1.2.3) and shows a section only once its version is tagged, so write it
|
|
before tagging; fixes to old sections show straight away. Each version is a "## 1.2.3" heading; add
|
|
"— urgent" (or "security") to the heading for a security or serious bug fix. Under it, lines
|
|
starting with "- " show as a list and other lines as paragraphs.
|
|
Write for the person updating servers: what the agent can now do from the Hub, and which Hub or
|
|
contracts version needs it. The developer log is the commit history of apps/agent.
|
|
-->
|
|
|
|
## 1.7.0
|
|
|
|
- **Demo scenarios.** The Hub (2.26.0 and later) can load a whole demo church on a demo client:
|
|
Accounts first, then Cross Events, the Website and the App, the same church and people in each.
|
|
It's one job: the server loads **whatever the client has installed** and skips the rest, so a
|
|
client with only Accounts and the Website gets both. Every product's release is checked first
|
|
(Accounts 1.9.0, Events 3.8.0, Website 1.8.0); if one fails part-way, the report says which
|
|
products are out of step. The agent also runs single demo jobs for Accounts and (from App
|
|
1.0.0) the Church App. Single-product demo data works as before.
|
|
|
|
## 1.6.0
|
|
|
|
- **Demo data for the Church Website.** The Hub (2.25.0 and later) can load one of the Website's
|
|
eight demo churches on a demo site, as it already could for Cross Events. Needs Website 1.3.0 on
|
|
the site. Cross Events' demo data works as before.
|
|
|
|
## 1.5.0
|
|
|
|
- **One product of a church at a time.** Uninstall, export and purge jobs can name products: only
|
|
those go, and the church keeps the others. Naming every product it still has removes the whole
|
|
church, so the last product to go takes the church with it. Before, uninstalling a church's Cross
|
|
Events also removed its Accounts.
|
|
- The Hub (2.12.0 and later) uninstalls one product only on servers with this agent; older agents
|
|
can only remove the whole church.
|
|
|
|
## 1.4.0
|
|
|
|
- **frp's config from the Hub.** The agent finds frps's config (central server) or frpc's (church
|
|
server) wherever it is: the path set on the Hub, the `-c` in the systemd unit, or the usual places.
|
|
It reads INI and TOML.
|
|
- **Changing it from the Hub:** the agent checks the new file with `frp* verify`, keeps a backup,
|
|
restarts frp if asked, and puts the old file back if frp doesn't start. Secret values never leave
|
|
the server.
|
|
- **Ports checked before an install:** the Hub asks this server and the central server which ports
|
|
are free, so a new install gets ports free on both.
|
|
- Needed for frp config on a server's page and port checks (Hub 2.11.0).
|
|
|
|
## 1.3.1
|
|
|
|
- **Fix:** 1.3.0 reported itself as 1.2.0, so the Hub refused its .env jobs. It now reports its
|
|
real version. Install this instead of 1.3.0.
|
|
|
|
## 1.3.0
|
|
|
|
- **A site's .env from the Hub.** The agent reads an install's .env (secret values hidden) and
|
|
changes it: one file at a time, rebuilding the site when its frontend settings changed,
|
|
restarting it, and putting the old file back if the site doesn't answer.
|
|
- Needed for the Settings (.env) tab on an install's page (Hub 2.8.0).
|
|
|
|
## 1.2.0
|
|
|
|
- **Demo data from the Hub.** The agent loads a demo profile onto a site marked as a demo: a backup
|
|
first, then the demo data, keeping one admin account.
|
|
- Needed for demo sites (Hub 2.4.0).
|
|
|
|
## 1.1.1
|
|
|
|
- **Fix:** the server's stats now keep going while a long job runs. Before, a 30-minute install
|
|
stopped them and the Hub alerted that the server was down.
|
|
- **Fix:** 1.1.0 reported itself as 1.0.1; it now reports its real version.
|
|
|
|
## 1.1.0
|
|
|
|
- **Accounts installs.** The agent installs Accounts, and adds a product next to a church's others
|
|
on the same server (with the ports and release the Hub chose).
|
|
|
|
## 1.0.1
|
|
|
|
- **Fix:** on the central server, Check status failed (it has no `crosscode` script). It now answers
|
|
with its own stats, including whether frps is running.
|
|
|
|
## 1.0.0
|
|
|
|
- **The first server agent.** It polls the Hub every 30 seconds for signed jobs, runs the
|
|
`crosscode` script for them (install, update, status, export, uninstall), sends the results, and
|
|
sends the server's stats every minute. It listens on no port: every request goes out to the Hub.
|