@nylorun/runtime 0.15.1-beta → 0.15.2-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.15.2-beta
4
+
5
+ ### Patch Changes
6
+
7
+ - 0cbd5c9: The stream relay's lag is never negative: an idle relay confirms one byte past `pg_current_wal_lsn()`, which reported a lag of -1 and failed `/v1/admin/status` validation (400), so Studio showed an idle, healthy Tenant as unavailable.
8
+
3
9
  ## 0.15.1-beta
4
10
 
5
11
  ### Patch Changes
@@ -145,7 +145,9 @@ export function createPgoutputSource(options) {
145
145
  ]);
146
146
  },
147
147
  async lag() {
148
- const { rows } = await pool.query(`SELECT pg_wal_lsn_diff(pg_current_wal_lsn(), confirmed_flush_lsn)::text AS lag
148
+ // An idle relay confirms one byte past the last record, ahead of pg_current_wal_lsn():
149
+ // that is no lag, not -1 (the Admin status refuses a negative lag).
150
+ const { rows } = await pool.query(`SELECT GREATEST(pg_wal_lsn_diff(pg_current_wal_lsn(), confirmed_flush_lsn), 0)::text AS lag
149
151
  FROM pg_replication_slots WHERE slot_name = $1`, [slot]);
150
152
  return rows[0]?.lag == null ? undefined : Number(rows[0].lag);
151
153
  },
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.2.0",
3
3
  "info": {
4
4
  "title": "Nylorun Runtime: Admin API",
5
- "version": "0.15.1-beta",
5
+ "version": "0.15.2-beta",
6
6
  "description": "The Host's status, its Tenant's state and shutdown, with the admin key. Served on the operator listener when the Host has one; the public listener answers these routes with the opaque 404.",
7
7
  "x-nylorun-protocol": {
8
8
  "min": 4,
package/dist/openapi.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.2.0",
3
3
  "info": {
4
4
  "title": "Nylorun Runtime: Tenant API",
5
- "version": "0.15.1-beta",
5
+ "version": "0.15.2-beta",
6
6
  "description": "Agents, sessions and their events, vaults, access and the Tenant's settings. A Runtime serves one Tenant: its URL is the Tenant's, and no request names it. Every request sends `Nylorun-Protocol`. Who may call each operation is its `security` and its `x-nylorun-credentials`, `x-nylorun-scopes` (the subject scopes that reach it) and `x-nylorun-browser` fields.",
7
7
  "x-nylorun-protocol": {
8
8
  "min": 4,
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const RUNTIME_VERSION = "0.15.1-beta";
1
+ export declare const RUNTIME_VERSION = "0.15.2-beta";
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // Kept in step with package.json by runtime/scripts/check-package.mjs, which runs in npm run check.
2
2
  // release:prepare also rewrites this when it bumps @nylorun/runtime.
3
- export const RUNTIME_VERSION = "0.15.1-beta";
3
+ export const RUNTIME_VERSION = "0.15.2-beta";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nylorun/runtime",
3
- "version": "0.15.1-beta",
3
+ "version": "0.15.2-beta",
4
4
  "description": "Nylorun Runtime: the agent execution Host on Postgres, Restate and S2, and model providers.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",