Diego Rodrigues de Sa e Souza
22b89a273b
fix(config): keep the SQLite driver out of the client bundle ( #10692 ) ( #10695 )
...
* fix(sse): import localDb through its real .ts extension (#10674 )
`open-sse/services/combo.ts` imported "../../src/lib/localDb.js" — a .js suffix
on a module that only exists as .ts. Turbopack resolved it by accident until the
dependency-tree change in #10647 ; after that the instrumentation hook died at boot
with MODULE_NOT_FOUND, breaking `npm run dev` and the production build (60
consecutive red `Build App` runs on release/v3.8.50).
Fixes the same latent pattern in src/lib/usage/usageLedger.ts, which survived only
because it is an `import type` and is erased before resolution.
Adds a guard rejecting relative .js specifiers across open-sse/ and src/. Package
specifiers are untouched: publishing ESM as .js is legitimate there (e.g.
@modelcontextprotocol/sdk), and only first-party relative imports are first-party
TypeScript.
Closes #10674
* fix(config): keep the SQLite driver out of the client bundle (#10692 )
The `aihorde` entry in IMAGE_PROVIDERS imported its live-catalog service directly.
IMAGE_PROVIDERS is reachable from "use client" dashboard pages — they read its KEYS
to derive which providers support which media kind — so that import dragged
aihordeImageCatalog → safeOutboundFetch → proxyFetch → featureFlags → db/core →
sqljsAdapter into the browser graph. The build then tried to bundle fs/net/tls for
the browser and failed with 28 Module not found errors, leaving `Build App` red for
60 consecutive runs and no artifact buildable from the branch.
A dynamic import() does not fix this: the bundler still has to make the module
browser-loadable. The dependency is inverted instead — the registry entry knows only
a pure registration module, and the server-only service registers itself on import,
which every server path needing live models already does. With nothing registered the
getter yields [], exactly what the live catalog returned before its first poll.
Validated by a full `npm run build:release`: 0 Module not found, artifact produced.
Closes #10692
---------
Co-authored-by: Xiangzhe <bakryun0718@proton.me >
2026-08-18 19:23:46 -03:00
..
2026-08-18 12:27:46 -03:00
2026-08-06 05:24:21 -03:00
2026-08-18 11:31:46 -03:00
2026-08-18 11:31:46 -03:00
2026-08-12 08:41:03 -03:00
2026-08-18 11:31:46 -03:00
2026-08-18 12:13:48 -03:00
2026-07-21 21:42:36 -03:00
2026-08-11 04:30:29 -03:00
2026-08-12 16:54:50 -03:00
2026-08-12 08:40:18 -03:00
2026-08-18 10:50:35 -03:00
2026-08-18 10:51:38 -03:00
2026-03-05 08:41:44 -03:00
2026-08-09 14:15:53 -03:00
2026-08-09 17:02:47 -03:00
2026-08-09 17:54:23 -03:00
2026-08-09 00:21:52 -03:00
2026-08-03 17:22:08 +03:00
2026-08-09 17:54:23 -03:00
2026-08-09 17:02:47 -03:00
2026-08-09 10:07:17 -03:00
2026-08-09 17:02:47 -03:00
2026-07-18 03:17:09 -03:00
2026-07-18 21:18:34 -03:00
2026-08-18 19:23:46 -03:00
2026-08-11 04:25:23 -03:00
2026-08-11 04:25:23 -03:00
2026-08-11 04:25:23 -03:00
2026-08-11 04:25:23 -03:00
2026-08-11 04:25:23 -03:00
2026-08-11 04:25:23 -03:00
2026-08-06 06:05:58 -03:00
2026-07-22 20:41:19 -03:00
2026-07-22 20:41:19 -03:00
2026-07-22 20:41:19 -03:00
2026-06-29 08:40:06 -03:00
2026-07-22 20:41:19 -03:00
2026-08-17 08:23:41 -03:00
2026-08-09 17:54:23 -03:00
2026-08-11 04:25:13 -03:00
2026-07-19 14:46:33 -03:00
2026-07-22 20:41:19 -03:00
2026-06-29 16:51:03 -03:00
2026-06-29 08:40:06 -03:00
2026-08-08 11:45:54 -03:00
2026-07-13 09:12:40 -03:00
2026-07-21 11:50:14 -03:00
2026-05-26 23:51:47 -03:00
2026-08-13 00:02:25 -03:00
2026-08-12 08:41:03 -03:00
2026-08-12 08:41:03 -03:00
2026-08-11 04:31:24 -03:00
2026-07-20 15:56:40 -03:00
2026-07-06 02:25:17 -03:00
2026-05-29 13:21:36 -03:00
2026-07-27 19:06:59 -03:00
2026-08-11 09:53:39 -03:00
2026-08-09 09:51:56 -03:00
2026-04-13 14:43:32 -03:00
2026-08-18 10:50:49 -03:00
2026-06-16 01:00:40 -03:00
2026-06-27 09:07:12 -03:00
2026-08-13 00:40:05 -03:00
2026-04-19 19:50:30 -03:00
2026-04-12 22:41:12 -03:00
2026-08-06 05:24:13 -03:00
2026-08-18 10:49:48 -03:00
2026-06-25 13:17:40 -03:00
2026-07-27 19:06:59 -03:00
2026-07-19 02:31:26 -03:00
2026-06-25 13:17:40 -03:00
2026-05-15 12:51:07 -03:00
2026-07-21 12:19:01 -03:00
2026-05-02 00:48:54 -03:00
2026-06-29 08:40:06 -03:00
2026-05-23 01:46:59 -03:00
2026-07-04 13:00:30 -03:00
2026-08-05 22:40:33 -03:00
2026-07-04 13:00:30 -03:00
2026-08-18 19:23:16 -03:00
2026-08-11 04:35:20 -03:00
2026-08-13 23:02:48 -03:00
2026-06-23 03:08:29 -03:00
2026-08-11 09:08:23 -03:00
2026-08-11 09:08:23 -03:00
2026-08-18 12:27:46 -03:00
2026-08-11 09:08:23 -03:00
2026-08-11 09:08:23 -03:00
2026-05-29 12:44:29 -03:00
2026-08-11 09:59:45 -03:00
2026-08-18 11:32:33 -03:00
2026-08-18 11:32:33 -03:00
2026-05-24 18:05:58 -03:00
2026-07-13 09:12:40 -03:00
2026-08-07 11:23:27 -03:00
2026-08-11 04:25:23 -03:00
2026-07-13 09:12:40 -03:00
2026-07-19 20:52:54 -03:00
2026-07-04 13:00:30 -03:00
2026-06-13 17:27:40 -03:00
2026-08-16 00:16:27 -03:00
2026-05-26 23:51:47 -03:00
2026-08-09 15:21:37 -03:00
2026-07-18 03:17:09 -03:00
2026-06-29 08:40:06 -03:00
2026-08-18 11:31:46 -03:00
2026-07-23 05:17:35 -03:00
2026-05-29 13:21:36 -03:00
2026-07-13 09:12:40 -03:00
2026-04-11 09:38:17 -03:00
2026-08-18 12:27:46 -03:00
2026-07-17 10:43:37 -03:00
2026-07-23 01:33:32 -03:00
2026-07-20 15:57:29 -03:00
2026-07-20 15:57:29 -03:00
2026-07-26 12:11:02 -03:00
2026-07-27 19:06:59 -03:00
2026-07-04 13:00:30 -03:00
2026-07-19 02:31:26 -03:00
2026-07-26 03:53:06 -03:00
2026-08-12 16:09:34 -03:00
2026-08-11 08:40:48 -03:00
2026-05-23 01:46:59 -03:00
2026-08-05 16:07:21 -03:00
2026-05-24 18:05:58 -03:00
2026-07-13 09:12:40 -03:00
2026-08-05 21:42:52 -03:00
2026-07-13 09:12:40 -03:00
2026-07-27 11:30:33 -03:00
2026-07-27 19:06:59 -03:00
2026-05-10 00:55:06 -03:00
2026-06-19 06:49:01 -03:00
2026-08-18 10:52:33 -03:00
2026-04-12 10:34:10 -03:00
2026-08-18 05:47:27 -03:00
2026-08-12 09:04:41 -03:00
2026-08-12 09:04:41 -03:00
2026-08-12 09:04:41 -03:00
2026-05-29 12:44:29 -03:00
2026-04-22 01:39:49 -03:00
2026-08-06 10:40:20 -03:00
2026-07-23 12:17:58 -03:00
2026-07-27 17:25:43 -03:00
2026-07-27 19:06:59 -03:00
2026-07-22 06:59:24 -03:00
2026-08-18 12:27:46 -03:00
2026-07-20 15:57:15 -03:00
2026-08-11 09:51:35 -03:00
2026-07-14 21:45:23 -03:00
2026-07-13 09:12:40 -03:00
2026-07-20 22:26:13 -03:00
2026-07-18 03:11:01 -03:00
2026-07-18 03:11:01 -03:00
2026-08-05 22:31:10 -03:00
2026-07-27 19:06:59 -03:00
2026-08-06 00:08:52 -03:00
2026-08-18 12:27:46 -03:00
2026-08-04 10:06:31 -03:00
2026-08-11 04:34:23 -03:00
2026-07-25 02:52:55 -03:00
2026-08-06 10:41:04 -03:00
2026-05-10 00:55:06 -03:00
2026-06-07 07:20:02 -03:00
2026-07-27 19:08:12 -03:00
2026-07-27 19:08:12 -03:00
2026-07-04 13:00:30 -03:00
2026-08-06 10:40:20 -03:00
2026-08-06 10:40:20 -03:00
2026-07-13 09:12:40 -03:00
2026-07-27 19:08:05 -03:00
2026-07-27 17:25:47 -03:00
2026-04-13 13:11:30 -03:00
2026-08-14 15:40:33 -03:00
2026-08-13 00:02:25 -03:00
2026-06-21 08:56:51 -03:00
2026-08-07 11:13:20 -03:00
2026-08-13 07:52:12 -03:00
2026-08-16 00:14:35 -03:00
2026-08-14 00:57:58 -03:00
2026-08-18 10:50:15 -03:00
2026-07-13 09:12:40 -03:00
2026-08-09 09:55:02 -03:00
2026-07-22 11:28:16 -03:00
2026-07-21 09:15:27 -03:00
2026-07-02 10:47:13 -03:00
2026-08-06 10:41:04 -03:00
2026-07-13 09:12:40 -03:00
2026-05-29 13:21:36 -03:00
2026-06-04 20:05:38 -03:00
2026-05-29 13:21:36 -03:00
2026-08-06 10:41:04 -03:00
2026-05-10 00:55:06 -03:00
2026-05-10 00:55:06 -03:00
2026-08-05 22:31:10 -03:00
2026-08-18 10:50:31 -03:00
2026-08-10 18:16:13 -03:00
2026-06-25 13:17:40 -03:00
2026-08-17 07:04:48 -03:00
2026-07-18 21:18:34 -03:00
2026-07-27 19:07:30 -03:00
2026-06-25 13:17:40 -03:00
2026-08-13 07:53:12 -03:00
2026-08-10 18:16:13 -03:00
2026-07-20 17:53:04 -03:00
2026-07-20 17:53:04 -03:00
2026-05-10 00:55:06 -03:00
2026-05-10 00:55:06 -03:00
2026-07-27 19:06:59 -03:00
2026-06-13 17:27:40 -03:00
2026-08-12 08:41:03 -03:00
2026-06-19 06:49:01 -03:00
2026-08-17 08:23:41 -03:00
2026-06-04 20:05:38 -03:00
2026-07-06 02:25:17 -03:00
2026-08-13 07:52:41 -03:00
2026-08-18 10:50:35 -03:00
2026-07-18 03:17:09 -03:00
2026-08-18 10:50:31 -03:00
2026-03-30 12:58:45 -03:00
2026-08-03 18:22:14 -03:00
2026-07-27 23:57:23 -03:00
2026-08-07 18:08:44 -03:00
2026-06-22 03:17:02 -03:00
2026-06-08 00:48:01 -03:00
2026-04-17 23:21:02 -03:00
2026-04-03 00:15:35 -03:00
2026-08-18 10:52:52 -03:00
2026-07-26 12:11:02 -03:00
2026-08-12 15:58:40 -03:00