Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,18 @@ On npm: `@cap2ui5/cds-plugin@0.5.0` (since 2026-10-14; Node ≥ 22, peer
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.
pins a later one — read it from `plugin/package.json` there; it moved twice
within a day of this being written, and the weekly check run exists to say
when it moves again.

**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
`client.window_bind_tab( )` / `window_get_row( )`, which come with the
runtime `main` pins — 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.
Expand Down
2 changes: 1 addition & 1 deletion docs/.verify-refs-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ cap2ui5.timeout # the ms an async main( ) may take — config.js timeout
cap2ui5.agent # the MCP endpoint's switch and settings — config.js / lib/agent/policy.js agentConfig( ), since 0.5.0

# --- release numbers that are NOT the pinned runtime release ----------------
# The pin itself (1.148.0 today, on cap2UI5's main) is read from the checkout
# The pin itself (whatever cap2UI5's main pins) is read from the checkout
# and never listed here — listing it would keep the old number green after a
# pin move, which is the one defect the release check exists to catch.
#
Expand Down
11 changes: 6 additions & 5 deletions docs/api/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,15 @@ runtime from before transitions existed — the one plugin 0.3.x pins —

## The windowed table

::: warning Not released yet, and not in any pinned runtime
::: warning Not released yet
`client.window_bind_tab( )` and `client.window_get_row( )` are on cap2UI5's
`main`, after 0.5.0 — and they need an `@abap2ui5/node-runtime` **after**
`1.148.0`, the release `main` pins. On that runtime and every older one the
client does not have them, and a call throws:
`main`, after 0.5.0. They come with `@abap2ui5/node-runtime` `1.149.0`, the
release `main` pins; plugin 0.5.0 and its runtime have neither. On an older
runtime the client does not have the two methods, and a call throws, naming
the runtime in use:

```
client.window_bind_tab( ): z2ui5_if_client has no window_bind_tab in the abap2UI5 runtime this project runs on (@abap2ui5/node-runtime 1.148.0) - it came with a later release
client.window_bind_tab( ): z2ui5_if_client has no window_bind_tab in the abap2UI5 runtime this project runs on (@abap2ui5/node-runtime <version>) - it came with a later release
```

What follows is read from the plugin's code and abap2UI5's interface. It has
Expand Down
21 changes: 18 additions & 3 deletions docs/guide/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,24 @@ addon. The decision record is
[ADR-009](https://github.com/cap2UI5/cap2UI5/blob/main/docs/adr/adr-009-agent-endpoint.md).

::: warning What is verified here
This page is written from the plugin's code and its test suite
(`examples/bookshop/test/agent.test.mjs` and its siblings in cap2UI5). The
endpoint has not been run on BTP, and not behind an approuter.
**Measured**, with the published plugin 0.5.0 in a project of its own, on
localhost with CAP's mocked users: every status in the table
[below](#what-the-endpoint-answers-before-any-tool-runs) except the user
without an id; the four tools; opting in and the refusal for an app that did
not; the `"policy"` marks, the `confirm` and `forbidden` refusals; pending
values; the handover link opened in a browser as the same user and as another
one; another user's and an earlier session id; the rows of
`cap2ui5.AgentLog`, without the values entered; a session restored after a
restart; a misspelt setting and a `retention` that is no number failing the
start.

**Read from the code and the plugin's test suite, not run for this page**
(`examples/bookshop/test/agent.test.mjs` and its siblings in cap2UI5): the
hourly retention sweep and `purgeAgentLog`, a user without an id, a
transpiled ABAP app opted in through `apps`, tables, row actions and selection
dialogs.

**Not run at all:** on BTP, behind an approuter, with XSUAA or IAS.
:::

## Switch it on
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/ecosystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ abap2UI5 builds itself.

All three are on npm: `@cap2ui5/cds-plugin` 0.5.0 (Node ≥ 22, `@sap/cds` ≥ 9 as a peer),
`@abap2ui5/node-runtime`, of which the plugin pins one release exactly —
`1.147.0` in 0.5.0, `1.148.0` on `main`, which is not released yet —
`1.147.0` in 0.5.0, `1.149.0` on `main`, which is not released yet —
and `@cap2ui5/samples` 0.3.0, which needs plugin 0.5. `npm add @cap2ui5/cds-plugin` installs the first two — see the
[Quickstart](./getting-started). Up to 0.2.0 the plugin was the unscoped
package `cap2ui5`. On npm that name is now only a deprecated placeholder that
Expand Down
6 changes: 3 additions & 3 deletions docs/guide/roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ roundtrips of a process one at a time; and keeps the session of a stateful
ABAP app per user.

**On `main`, not released yet:** a `timeout` for an app's async `main( )`
(504 after a minute), `purgeDrafts` for a scheduled job, runtime 1.148.0, and
`client.window_bind_tab( )` / `window_get_row( )` — abap2UI5's windowed table,
which needs a runtime later than the one `main` pins. The details are in the plugin's
(504 after a minute), `purgeDrafts` for a scheduled job, and runtime 1.149.0
with `client.window_bind_tab( )` / `window_get_row( )` — abap2UI5's windowed
table. The details are in the plugin's
[CHANGELOG](https://github.com/cap2UI5/cap2UI5/blob/main/plugin/CHANGELOG.md).

## Known limits today
Expand Down
9 changes: 4 additions & 5 deletions docs/reference/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,19 +118,18 @@ There is nothing to add to your own `package.json`.
|---|---|---|
| 0.4.0 | `1.146.0` | the frontend's `X-CSRF-Token` handshake with the approuter, `accelerate( )`, `view_display`'s transitions |
| 0.5.0 | `1.147.0` | flat tables written to JSON directly, the draft kept as a digest, the developer tools as a bundle of their own |
| `main`, not released yet | `1.148.0` | fixes in the runtime underneath (`ASSIGN COMPONENT` of a name with a dash, `rescale( )`, `CREATE DATA` with a lower-case type name) |
| `main`, not released yet | `1.149.0` | the windowed table behind `client.window_bind_tab( )` and `window_get_row( )` — see [`client`](../api/client#the-windowed-table). The eight obsolete invisible custom controls (`z2ui5.cc.Timer`, `Focus`, `Scrolling`, `Title`, `LPTitle`, `Favicon`, `History`, `Info`) are gone from the frontend: a view that still names one fails to load |

The plugin's [CHANGELOG](https://github.com/cap2UI5/cap2UI5/blob/main/plugin/CHANGELOG.md)
has the full list per release. `client.window_bind_tab( )` and
`window_get_row( )` need a runtime **after** `1.148.0` — none of the three
rows has them, see [`client`](../api/client#the-windowed-table).
has the full list per release. No plugin release pinned the runtime between
the last two rows.

The runtime resolves as the plugin's own dependency, at the pinned version.
To load another release, use npm `overrides` in your `package.json`. The log
names what was loaded at startup — for a checkout of `main`:

```
[cap2ui5] - @abap2ui5/node-runtime 1.148.0 from …/node_modules/@abap2ui5/node-runtime
[cap2ui5] - @abap2ui5/node-runtime 1.149.0 from …/node_modules/@abap2ui5/node-runtime
[cap2ui5] - runtime accelerations active
```

Expand Down
Loading