Skip to content

Describe plugin 0.5.0 and what is on cap2UI5's main: the agent endpoint, timeout, purgeDrafts, stateful sessions, windowed tables - #38

Merged
oblomov-dev merged 2 commits into
mainfrom
claude/docs-0.5.0
Nov 16, 2026
Merged

oblomov-dev merged 2 commits into
mainfrom
claude/docs-0.5.0

Conversation

@oblomov-dev

Copy link
Copy Markdown
Member

The site described plugin 0.4.0 and runtime 1.146.0. This brings it to the published @cap2ui5/cds-plugin 0.5.0 and to what is on cap2UI5's main (at 0f8d821), with everything that is only on main marked not released yet.

Written from the plugin's code on cap2UI5 main (plugin/CHANGELOG.md, README.md, index.cds, index.d.ts, cds-plugin.js, lib/config.js, lib/define-app.js, lib/sessions.js, lib/draft-store.js, lib/agent/*, docs/adr/adr-009-agent-endpoint.md), abap2UI5's z2ui5_if_client and handler, and npm's registry for what is published.

What changed

Commit 1 — the check workflow

  • .github/workflows/check.yml gets a weekly schedule (Mondays 05:17 UTC) and workflow_dispatch, so drift against cap2UI5 main shows without a push here.

Commit 2 — the docs

  • New page guide/agents.md, in the sidebar under "Working With It": the agent setting, defineApp's agent option, allowed / confirm / forbidden and the handover link, the four tools, who the caller is, the HTTP answers before a tool runs, cap2ui5.AgentLog, retention and purgeAgentLog, sessions after a restart.
  • reference/configuration.md: timeout and agent in the settings table, a section "One roundtrip at a time" (the queue, the 504, the queue warning), a plugin-to-runtime table (0.4.0 → 1.146.0, 0.5.0 → 1.147.0, main → 1.148.0), the 500/504 error bodies.
  • reference/database.md: the cap2ui5.AgentLog entity and why its table is unconditional, purgeDrafts, and a correction — draft cleanup runs when an app is opened, not once per roundtrip (z2ui5_cl_ui5_handler, the first-start branch). The same claim is corrected in guide/persistence.md and guide/troubleshooting.md.
  • reference/deployment.md: a "Scaling" section — "no sticky sessions" holds for JavaScript apps; a stateful transpiled ABAP app keeps its session in the process and needs sticky routing; roundtrips run one at a time per process. The pin is ^0.5.0.
  • api/client.md: view_display's transition / transition_back and cs_transition; get_event_arg past the eighth argument (0.5.0); the set_session_stateful row for JS and ABAP apps; window_bind_tab( ) / window_get_row( ).
  • guide/troubleshooting.md: a 504 entry.
  • Recounted: the plugin is about 4,800 lines of code on main (about 2,000 of them abap2js) plus about 1,950 vendored for the agent endpoint, not "about 640"; @cap2ui5/samples 0.3.0 is 76 of abap2UI5's 138 samples, 73 by abap2js and three by hand (was 71 / 69 of 129).
  • Smaller follow-ups in api/app-interface.md, guide/ecosystem.md, guide/roadmap.md, guide/project-structure.md, guide/getting-started.md, guide/lifecycle.md, guide/migration-from-abap2ui5.md, guide/vs-abap2ui5.md, reference/protocol.md, reference/architecture.md.
  • AGENTS.md: the ground-truth versions, the plugin's file list, and a rule that the site describes both the published release and main, marking the latter.

Released or not

where
the agent endpoint, cap2ui5.AgentLog, purgeAgentLog, one roundtrip at a time, per-user stateful sessions, get_event_arg without a limit 0.5.0, on npm (pins runtime 1.147.0)
timeout and the 504, the queue warning, purgeDrafts, runtime 1.148.0 cap2UI5 main, marked not released yet
window_bind_tab( ) / window_get_row( ) cap2UI5 main, and they need a runtime after 1.148.0 — main's own pin does not have them; the page says so

Check results

Against cap2UI5 main at 0f8d821 (pins @abap2ui5/node-runtime 1.148.0, plugin 0.5.0) and abap2UI5 main, cloned the way the workflow checks them out:

  • Before, on main of this repository: npm run check:ci failed with 11 stale references (nine naming runtime 1.146.0, two naming plugin 0.4.x).
  • After: npm ci ok; npm run check:ci — verify-refs: OK — every documented path, class, app id and option resolves, VitePress build complete. npm run check without checkouts also builds.

Adjusted for the checker

  • docs/.verify-refs-ignore gains cap2ui5.timeout and cap2ui5.agent: verify-refs reads option names from the plugin's package.json, and these two have their defaults in plugin/lib/config.js.
  • It also gains 1.146.0 and 1.147.0, because the site now says which plugin release pinned which runtime. The trade-off is written next to the entries: a page that still called one of them the current pin would now pass.

Unverified

  • Nothing here was run. The pages are read from code, tests and changelogs; I did not boot a server against the agent endpoint, the timeout or the windowed table. AGENTS.md asks to measure framework behaviour before documenting it — this PR does not meet that bar and says so on the agent page and in the windowed-table section.
  • Nothing was run on BTP, behind an approuter, on SAP HANA or under MTX.
  • The windowed table cannot be run on any runtime cap2UI5 pins today.
  • The log lines shown for the agent endpoint, the queue warning and the timeout are composed from the format strings in the code, with example numbers.
  • The sample log line in the Quickstart (76 apps) is the count of modules in @cap2ui5/samples' srv/apps/, not a captured line.
  • 1.149.0 exists on npm, but cap2UI5 main does not pin it, so the site does not name it.

Generated by Claude Code

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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014YZFmESgvbsKSoDRf88S3G
…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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014YZFmESgvbsKSoDRf88S3G
@oblomov-dev
oblomov-dev merged commit 8fe12d1 into main Nov 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants