diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 22fa71a..9e221d6 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,10 +10,21 @@ # to run locally, so a green machine and a green CI mean the same thing. name: check +# The schedule is for the drift nobody here causes. Every reference check +# compares this site with cap2UI5's main, and that moves without a push to +# this repository: a plugin release, a runtime pin, a renamed file. Without +# it the site went stale in silence - eleven references, when plugin 0.5.0 +# and a runtime pin had landed over there - and the next pull request here, +# whatever it was about, would have been the one to go red. Once a week the +# job says so by itself, and workflow_dispatch runs it on demand, right +# after a plugin release for one. on: push: branches: [main] pull_request: + schedule: + - cron: '17 5 * * 1' # Mondays 05:17 UTC - off the hour, when Actions is less busy + workflow_dispatch: concurrency: group: check-${{ github.ref }} diff --git a/AGENTS.md b/AGENTS.md index c7e2bd9..307f768 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -62,13 +62,31 @@ against the repos, don't guess): | [abap2UI5/abap2UI5](https://github.com/abap2UI5/abap2UI5) | the framework itself, in ABAP. Downported and transpiled, it is published as `@abap2ui5/node-runtime` | | [cap2UI5/docs](https://github.com/cap2UI5/docs) | this site | -On npm: `@cap2ui5/cds-plugin@0.4.0` (since 2026-09-30; Node ≥ 22, peer +On npm: `@cap2ui5/cds-plugin@0.5.0` (since 2026-10-14; Node ≥ 22, peer `@sap/cds` ≥ 9), published by the npm organisation `cap2ui5`, and -`@cap2ui5/samples@0.2.0` (peer `^0.4.0`). The plugin pins -`@abap2ui5/node-runtime@1.146.0` **exactly**, the first runtime whose frontend -does the approuter's `X-CSRF-Token` handshake and has `accelerate( )`. -verify-refs reads that pin from `plugin/package.json`, not from the stand-in -`runtime/package.json`. Up to 0.2.0 the plugin was the unscoped +`@cap2ui5/samples@0.3.0` (peer `^0.5.0`; 76 of abap2UI5's 138 samples). The +plugin pins one `@abap2ui5/node-runtime` release **exactly**: 0.4.0 pinned +1.146.0 (the first runtime whose frontend does the approuter's `X-CSRF-Token` +handshake and has `accelerate( )`), 0.5.0 pins 1.147.0, and cap2UI5's `main` +pins 1.148.0. + +**The site describes two things, and says which is which.** verify-refs +compares against cap2UI5's `main`, so `main`'s pin is the number it accepts +(read from `plugin/package.json`, not from the stand-in +`runtime/package.json`), and a reader installs the newest release on npm. What +is on `main` under the CHANGELOG's "Unreleased" — at the time of writing +`cds.requires.cap2ui5.timeout`, `purgeDrafts`, the queue warning, and +`client.window_bind_tab( )` / `window_get_row( )`, which also need a runtime +after 1.148.0 — is documented, and marked **not released yet** wherever it +appears. Move the mark when the release happens; do not present an unreleased +thing as installable. Older pins are named only with the plugin version they +belong to, and are in `docs/.verify-refs-ignore` for that reason. + +Since 0.5.0 the plugin also serves an MCP endpoint for AI agents +(`cds.requires.cap2ui5.agent`, off by default; `plugin/lib/agent/`, ADR-009), +adds a second entity, `cap2ui5.AgentLog`, runs the roundtrips of a process one +at a time, and keeps a stateful ABAP app's session per CAP user in the process +(`plugin/lib/sessions.js`). Up to 0.2.0 the plugin was the unscoped package `cap2ui5`. On npm that name is now only a deprecated placeholder, `cap2ui5@0.0.1-placeholder` (since 2026-09-30, cap2UI5/cap2UI5#97): no `main`, and a `cap2ui5` bin that prints where to go and exits 1. It installs nothing an @@ -93,20 +111,27 @@ the roundtrip route answers a GET with embeds the whole UI5 component, so the plugin serves no frontend files (`/z2ui5/webapp/index.html` answers 404, and cap2UI5's `scripts/consumer-test.mjs` asserts it). `plugin/package.json` defines `apps`, `roles` and `routes` under `cds.requires.cap2ui5` (next to -CAP's own `model`); the plugin also reads `body_parser.limit`, which has no -default there. 0.1.0's top-level `cds.cap2ui5`, with `requires` for the +CAP's own `model`); the plugin also reads `body_parser.limit`, `compression`, +`accelerate`, `timeout` and `agent`, which have no default there — their +defaults are in `plugin/lib/config.js`, and verify-refs, which reads the +option names from `package.json`, needs the ones the site writes as +`cds.requires.cap2ui5.