From 92560bf4c1f26189397a6b3b336caee237cb5a69 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 23:34:29 +0000 Subject: [PATCH 1/2] Run the check workflow weekly and on demand verify-refs compares the site with cap2UI5's main, which moves without a push here: a plugin release, a runtime pin. A weekly schedule and workflow_dispatch show that drift without waiting for the next pull request to trip over it. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_014YZFmESgvbsKSoDRf88S3G --- .github/workflows/check.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 }} From 4de777449bca865bf89c9e1be86340ee2480ece4 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 23:34:29 +0000 Subject: [PATCH 2/2] Bring the site to @cap2ui5/cds-plugin 0.5.0 and what is on cap2UI5's main New guide page on the MCP agent endpoint (the agent setting, defineApp's agent option, allowed / confirm / forbidden, the tools, who the caller is, the HTTP answers, cap2ui5.AgentLog and its retention). Reference: timeout and agent in the configuration, one roundtrip at a time, a plugin-to-runtime table; cap2ui5.AgentLog and purgeDrafts in the database model, and draft cleanup runs when an app is opened, not on every roundtrip; the scaling note for stateful ABAP sessions and the ^0.5.0 pin in deployment. API: view_display's transitions and cs_transition, get_event_arg past the eighth argument, set_session_stateful for JS and ABAP apps, and window_bind_tab / window_get_row. What is only on cap2UI5's main (timeout, the 504, the queue warning, purgeDrafts, the windowed table, runtime 1.148.0) is marked as not released yet. Recounted: the plugin's size and the samples (76 of 138, 73 by abap2js). Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_014YZFmESgvbsKSoDRf88S3G --- AGENTS.md | 51 +++-- docs/.verify-refs-ignore | 21 +- docs/.vitepress/config.mjs | 1 + docs/api/app-interface.md | 5 + docs/api/client.md | 93 +++++++- docs/guide/agents.md | 304 ++++++++++++++++++++++++++ docs/guide/ecosystem.md | 14 +- docs/guide/getting-started.md | 2 +- docs/guide/lifecycle.md | 2 +- docs/guide/migration-from-abap2ui5.md | 11 +- docs/guide/persistence.md | 19 +- docs/guide/project-structure.md | 2 +- docs/guide/roadmap.md | 37 +++- docs/guide/troubleshooting.md | 39 +++- docs/guide/vs-abap2ui5.md | 4 +- docs/reference/architecture.md | 2 +- docs/reference/configuration.md | 83 ++++++- docs/reference/database.md | 103 ++++++++- docs/reference/deployment.md | 41 +++- docs/reference/protocol.md | 4 +- 20 files changed, 763 insertions(+), 75 deletions(-) create mode 100644 docs/guide/agents.md 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.