ldrouter 1.11.2 → 1.11.3

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
@@ -4,7 +4,14 @@ All notable changes to this project are documented here. The format follows
4
4
  [Keep a Changelog](https://keepachangelog.com/) and the project adheres to
5
5
  [Semantic Versioning](https://semver.org/).
6
6
 
7
- ## [1.11.1] - 2026-09-02
7
+ ## [1.11.3] - 2026-09-03
8
+
9
+ ### Fixed
10
+
11
+ - **Model Test streaming endpoint no longer returns an opaque 500 "Gateway error"**: when the provider credential can't be decrypted (master-key mismatch after backup restore), it now returns a readable `authentication_error` prompting to re-save the provider API key.
12
+ - **Docker container restart no longer causes data loss**: added `docker-entrypoint.sh` that removes stale SQLite WAL/SHM files on startup and performs a checkpoint to ensure all data is persisted to the main database file before starting the gateway.
13
+
14
+ ## [1.11.2] - 2026-09-02
8
15
 
9
16
  ### Fixed
10
17
 
@@ -232,8 +232,9 @@ export async function registerModelRoutes(app) {
232
232
  protocol: 'openai',
233
233
  endpoint: 'chat/completions',
234
234
  };
235
+ let outcome;
235
236
  try {
236
- const outcome = await runner.execute(gatewayReq, ctx);
237
+ outcome = await runner.execute(gatewayReq, ctx);
237
238
  // Runner already wrote [DONE]. Append our own test_meta event so the
238
239
  // client knows the test finished with full stats.
239
240
  send('test_meta', {
@@ -251,6 +252,10 @@ export async function registerModelRoutes(app) {
251
252
  });
252
253
  }
253
254
  catch (e) {
255
+ // Never let a raw non-GatewayError (e.g. MasterKeyError from credential
256
+ // decryption) escape into the global handler as an opaque "Gateway error".
257
+ if (e instanceof GatewayError)
258
+ throw e;
254
259
  send('test_error', { message: e.message });
255
260
  }
256
261
  finally {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ldrouter",
3
- "version": "1.11.2",
3
+ "version": "1.11.3",
4
4
  "description": "LateDev Router — lightweight self-hosted LLM gateway with admin UI",
5
5
  "type": "module",
6
6
  "license": "MIT",