@teamscala/service-boot 0.23.505 → 0.23.507
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/package.json +2 -1
- package/src/agreement-gate/signing-shell.test.ts +8 -8
- package/src/agreement-gate.test.ts +8 -8
- package/src/asset-proxy.test.ts +8 -8
- package/src/attach-portal-members.test.ts +8 -8
- package/src/attach-transfers-upload.test.ts +8 -8
- package/src/auth-gate.test.ts +8 -8
- package/src/bind-page-handler.ts +21 -8
- package/src/build-client-assets/manifest.test.ts +8 -8
- package/src/build-client-assets/source-candidates.test.ts +8 -8
- package/src/build-client-assets/sourcemaps-upload.test.ts +8 -8
- package/src/build-client-assets/styles-build.test.ts +8 -8
- package/src/build-client-assets.test.ts +8 -8
- package/src/capability-slug.test.ts +8 -8
- package/src/compose-page-title.test.ts +8 -8
- package/src/content-gate/access.ts +11 -0
- package/src/content-gate/catalog.test.ts +8 -8
- package/src/content-gate/config-types.ts +15 -0
- package/src/content-gate/gate-entry-clears.ts +41 -0
- package/src/content-gate/gate-entry-marker.test.ts +111 -0
- package/src/content-gate/gate.ts +16 -0
- package/src/content-gate/token.test.ts +8 -8
- package/src/content-page-floor.test.ts +8 -8
- package/src/csrf-body-limit.test.ts +8 -8
- package/src/handlers/messaging-send-reconcile-logic.test.ts +8 -8
- package/src/handlers/messaging-send-recording-logic.test.ts +8 -8
- package/src/handlers/messaging-send-recording-watch.test.ts +8 -8
- package/src/handlers/messaging-send-sweep-selection.test.ts +8 -8
- package/src/handlers/platform-fault-escalation/probe.test.ts +8 -8
- package/src/handlers/platform-fault-escalation-refresh.test.ts +8 -8
- package/src/handlers/platform-fault-escalation.test.ts +8 -8
- package/src/handlers/scala-tools-currency-watch.test.ts +8 -8
- package/src/handlers/singleton-tools-currency-watch.test.ts +8 -8
- package/src/handlers/whatsapp-liveness-handler.test.ts +8 -8
- package/src/handlers/whatsapp-liveness.test.ts +8 -8
- package/src/is-react-element-type.test.ts +8 -8
- package/src/module-not-found.test.ts +8 -8
- package/src/mount-orpc-router.test.ts +8 -8
- package/src/page-server-orpc/server-client.test.ts +8 -8
- package/src/quiz-gate.ts +10 -0
- package/src/read-html-template.test.ts +8 -8
- package/src/register-registry-page-route/apply-page-branding.test.ts +8 -8
- package/src/register-registry-page-route/captured-loader-config.test.ts +8 -8
- package/src/register-registry-page-route/graph-cache.test.ts +8 -8
- package/src/register-registry-page-route/live-loader-config.test.ts +8 -8
- package/src/register-registry-page-route/page-data-shared.test.ts +8 -8
- package/src/register-registry-page-route/public-shell-page-data.test.ts +8 -8
- package/src/register-registry-page-route/resolve-entity-title.test.ts +8 -8
- package/src/register-registry-page-route/resolve-page-data.test.ts +8 -8
- package/src/register-registry-page-route/resolve-request-graph.test.ts +8 -8
- package/src/resolve-from-loader-config.test.ts +115 -8
- package/src/resolve-service-port.test.ts +8 -8
- package/src/resolvers/app-header.test.ts +8 -8
- package/src/resolvers/portal-route-paths.test.ts +8 -8
- package/src/resource-chat-inject.page-assistant.test.ts +8 -8
- package/src/resource-chat-inject.test.ts +8 -8
- package/src/resource-not-found.test.ts +8 -8
- package/src/security-headers.test.ts +8 -8
- package/src/select-service-routes.test.ts +8 -8
- package/src/server-error-page.test.ts +8 -8
- package/src/theme-fonts-link.test.ts +8 -8
- package/src/two-phase-full-app.test.ts +8 -8
- package/src/two-phase-health-gate-client-only.test.ts +8 -8
- package/src/two-phase-health-gate.test.ts +8 -8
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
1
|
+
// @system codegen
|
|
2
|
+
// @status generated
|
|
3
|
+
// @edit change the suite in the owned-suites band, then re-run codegen. Hand-edits are overwritten.
|
|
4
|
+
//
|
|
5
|
+
// This suite's assertions are OWNED by the codegen band: the band module
|
|
6
|
+
// carries them verbatim, this file is the emission, and hand edits here are
|
|
7
|
+
// overwritten on the next run. The rationale each assertion carries moved
|
|
8
|
+
// with it into the band.
|
|
9
9
|
|
|
10
10
|
import { describe, expect, test } from "bun:test";
|
|
11
11
|
import { resolveFromLoaderConfig } from "./resolve-from-loader-config";
|
|
@@ -320,3 +320,110 @@ describe("required sources refuse unresolvable where refs", () => {
|
|
|
320
320
|
expect(captured.where).toEqual({ partner_id: null });
|
|
321
321
|
});
|
|
322
322
|
});
|
|
323
|
+
|
|
324
|
+
describe("non-UUID URL refs resolve absent, never throw into the breaker", () => {
|
|
325
|
+
// A URL param that is not a uuid (a slug link, a scanner path) can never
|
|
326
|
+
// match a uuid column. The query failure IS the resource being missing
|
|
327
|
+
// for this URL — the same state as a deleted row — so it resolves null
|
|
328
|
+
// and the upstream primary-missing check renders the branded 404.
|
|
329
|
+
// Throwing here instead counted every dead shape as a CONSECUTIVE
|
|
330
|
+
// render-budget failure: 53 scanner hits in a row on scala-quiz prod
|
|
331
|
+
// (2026-09-11) sat the layer DEGRADED fail-closed and every real page
|
|
332
|
+
// 503'd for hours.
|
|
333
|
+
const original = isServerClientRegistered() ? getServerClient() : null;
|
|
334
|
+
const sqlError = (msg: string) => {
|
|
335
|
+
const e = new Error(msg);
|
|
336
|
+
e.name = "SqlQueryError";
|
|
337
|
+
return e;
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
test("a required source rejecting a non-uuid URL ref resolves null", async () => {
|
|
341
|
+
setServerClient({
|
|
342
|
+
builda_pages: {
|
|
343
|
+
findFirst: async () => {
|
|
344
|
+
throw sqlError('invalid input syntax for type uuid: "launcha-authority-index"');
|
|
345
|
+
},
|
|
346
|
+
},
|
|
347
|
+
} as never);
|
|
348
|
+
try {
|
|
349
|
+
await expect(
|
|
350
|
+
resolveFromLoaderConfig(
|
|
351
|
+
{
|
|
352
|
+
sources: [
|
|
353
|
+
{
|
|
354
|
+
key: "assessment",
|
|
355
|
+
source: "orpc",
|
|
356
|
+
model: "builda_pages",
|
|
357
|
+
where: { id: ":id" },
|
|
358
|
+
optional: false,
|
|
359
|
+
},
|
|
360
|
+
],
|
|
361
|
+
},
|
|
362
|
+
{ id: "launcha-authority-index" },
|
|
363
|
+
),
|
|
364
|
+
).resolves.toEqual({ assessment: null });
|
|
365
|
+
} finally {
|
|
366
|
+
setServerClient(original as never);
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
|
|
370
|
+
test("a SqlQueryError that is NOT a non-uuid ref still throws", async () => {
|
|
371
|
+
setServerClient({
|
|
372
|
+
builda_pages: {
|
|
373
|
+
findFirst: async () => {
|
|
374
|
+
throw sqlError('column "page_id" does not exist');
|
|
375
|
+
},
|
|
376
|
+
},
|
|
377
|
+
} as never);
|
|
378
|
+
try {
|
|
379
|
+
await expect(
|
|
380
|
+
resolveFromLoaderConfig(
|
|
381
|
+
{
|
|
382
|
+
sources: [
|
|
383
|
+
{
|
|
384
|
+
key: "page",
|
|
385
|
+
source: "orpc",
|
|
386
|
+
model: "builda_pages",
|
|
387
|
+
where: { id: ":id" },
|
|
388
|
+
optional: false,
|
|
389
|
+
},
|
|
390
|
+
],
|
|
391
|
+
},
|
|
392
|
+
{ id: "p1" },
|
|
393
|
+
),
|
|
394
|
+
).rejects.toThrow('column "page_id" does not exist');
|
|
395
|
+
} finally {
|
|
396
|
+
setServerClient(original as never);
|
|
397
|
+
}
|
|
398
|
+
});
|
|
399
|
+
|
|
400
|
+
test("a non-SqlQueryError rejection on a required source still throws", async () => {
|
|
401
|
+
setServerClient({
|
|
402
|
+
builda_pages: {
|
|
403
|
+
findFirst: async () => {
|
|
404
|
+
throw new Error("connection refused");
|
|
405
|
+
},
|
|
406
|
+
},
|
|
407
|
+
} as never);
|
|
408
|
+
try {
|
|
409
|
+
await expect(
|
|
410
|
+
resolveFromLoaderConfig(
|
|
411
|
+
{
|
|
412
|
+
sources: [
|
|
413
|
+
{
|
|
414
|
+
key: "page",
|
|
415
|
+
source: "orpc",
|
|
416
|
+
model: "builda_pages",
|
|
417
|
+
where: { id: ":id" },
|
|
418
|
+
optional: false,
|
|
419
|
+
},
|
|
420
|
+
],
|
|
421
|
+
},
|
|
422
|
+
{ id: "p1" },
|
|
423
|
+
),
|
|
424
|
+
).rejects.toThrow("connection refused");
|
|
425
|
+
} finally {
|
|
426
|
+
setServerClient(original as never);
|
|
427
|
+
}
|
|
428
|
+
});
|
|
429
|
+
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
1
|
+
// @system codegen
|
|
2
|
+
// @status generated
|
|
3
|
+
// @edit change the suite in the owned-suites band, then re-run codegen. Hand-edits are overwritten.
|
|
4
|
+
//
|
|
5
|
+
// This suite's assertions are OWNED by the codegen band: the band module
|
|
6
|
+
// carries them verbatim, this file is the emission, and hand edits here are
|
|
7
|
+
// overwritten on the next run. The rationale each assertion carries moved
|
|
8
|
+
// with it into the band.
|
|
9
9
|
|
|
10
10
|
import { describe, expect, test } from "bun:test";
|
|
11
11
|
import { resolveServicePort } from "./resolve-service-port.ts";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
1
|
+
// @system codegen
|
|
2
|
+
// @status generated
|
|
3
|
+
// @edit change the suite in the owned-suites band, then re-run codegen. Hand-edits are overwritten.
|
|
4
|
+
//
|
|
5
|
+
// This suite's assertions are OWNED by the codegen band: the band module
|
|
6
|
+
// carries them verbatim, this file is the emission, and hand edits here are
|
|
7
|
+
// overwritten on the next run. The rationale each assertion carries moved
|
|
8
|
+
// with it into the band.
|
|
9
9
|
|
|
10
10
|
import { describe, expect, test } from "bun:test";
|
|
11
11
|
import { resolveAppHeader } from "./app-header.ts";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
1
|
+
// @system codegen
|
|
2
|
+
// @status generated
|
|
3
|
+
// @edit change the suite in the owned-suites band, then re-run codegen. Hand-edits are overwritten.
|
|
4
|
+
//
|
|
5
|
+
// This suite's assertions are OWNED by the codegen band: the band module
|
|
6
|
+
// carries them verbatim, this file is the emission, and hand edits here are
|
|
7
|
+
// overwritten on the next run. The rationale each assertion carries moved
|
|
8
|
+
// with it into the band.
|
|
9
9
|
|
|
10
10
|
import { describe, expect, test } from "bun:test";
|
|
11
11
|
import {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
1
|
+
// @system codegen
|
|
2
|
+
// @status generated
|
|
3
|
+
// @edit change the suite in the owned-suites band, then re-run codegen. Hand-edits are overwritten.
|
|
4
|
+
//
|
|
5
|
+
// This suite's assertions are OWNED by the codegen band: the band module
|
|
6
|
+
// carries them verbatim, this file is the emission, and hand edits here are
|
|
7
|
+
// overwritten on the next run. The rationale each assertion carries moved
|
|
8
|
+
// with it into the band.
|
|
9
9
|
|
|
10
10
|
import { describe, expect, mock, test } from "bun:test";
|
|
11
11
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
1
|
+
// @system codegen
|
|
2
|
+
// @status generated
|
|
3
|
+
// @edit change the suite in the owned-suites band, then re-run codegen. Hand-edits are overwritten.
|
|
4
|
+
//
|
|
5
|
+
// This suite's assertions are OWNED by the codegen band: the band module
|
|
6
|
+
// carries them verbatim, this file is the emission, and hand edits here are
|
|
7
|
+
// overwritten on the next run. The rationale each assertion carries moved
|
|
8
|
+
// with it into the band.
|
|
9
9
|
|
|
10
10
|
import { describe, expect, mock, test } from "bun:test";
|
|
11
11
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
1
|
+
// @system codegen
|
|
2
|
+
// @status generated
|
|
3
|
+
// @edit change the suite in the owned-suites band, then re-run codegen. Hand-edits are overwritten.
|
|
4
|
+
//
|
|
5
|
+
// This suite's assertions are OWNED by the codegen band: the band module
|
|
6
|
+
// carries them verbatim, this file is the emission, and hand edits here are
|
|
7
|
+
// overwritten on the next run. The rationale each assertion carries moved
|
|
8
|
+
// with it into the band.
|
|
9
9
|
|
|
10
10
|
import { describe, expect, it } from "bun:test";
|
|
11
11
|
import {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
1
|
+
// @system codegen
|
|
2
|
+
// @status generated
|
|
3
|
+
// @edit change the suite in the owned-suites band, then re-run codegen. Hand-edits are overwritten.
|
|
4
|
+
//
|
|
5
|
+
// This suite's assertions are OWNED by the codegen band: the band module
|
|
6
|
+
// carries them verbatim, this file is the emission, and hand edits here are
|
|
7
|
+
// overwritten on the next run. The rationale each assertion carries moved
|
|
8
|
+
// with it into the band.
|
|
9
9
|
|
|
10
10
|
import { describe, expect, it } from "bun:test";
|
|
11
11
|
import { Hono } from "hono";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
1
|
+
// @system codegen
|
|
2
|
+
// @status generated
|
|
3
|
+
// @edit change the suite in the owned-suites band, then re-run codegen. Hand-edits are overwritten.
|
|
4
|
+
//
|
|
5
|
+
// This suite's assertions are OWNED by the codegen band: the band module
|
|
6
|
+
// carries them verbatim, this file is the emission, and hand edits here are
|
|
7
|
+
// overwritten on the next run. The rationale each assertion carries moved
|
|
8
|
+
// with it into the band.
|
|
9
9
|
|
|
10
10
|
import { describe, expect, test } from "bun:test";
|
|
11
11
|
import { selectServiceRoutes } from "./select-service-routes.ts";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
1
|
+
// @system codegen
|
|
2
|
+
// @status generated
|
|
3
|
+
// @edit change the suite in the owned-suites band, then re-run codegen. Hand-edits are overwritten.
|
|
4
|
+
//
|
|
5
|
+
// This suite's assertions are OWNED by the codegen band: the band module
|
|
6
|
+
// carries them verbatim, this file is the emission, and hand edits here are
|
|
7
|
+
// overwritten on the next run. The rationale each assertion carries moved
|
|
8
|
+
// with it into the band.
|
|
9
9
|
|
|
10
10
|
import { describe, expect, test } from "bun:test";
|
|
11
11
|
import type { ErrorReport } from "@teamscala/os/errors/error-report";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
1
|
+
// @system codegen
|
|
2
|
+
// @status generated
|
|
3
|
+
// @edit change the suite in the owned-suites band, then re-run codegen. Hand-edits are overwritten.
|
|
4
|
+
//
|
|
5
|
+
// This suite's assertions are OWNED by the codegen band: the band module
|
|
6
|
+
// carries them verbatim, this file is the emission, and hand edits here are
|
|
7
|
+
// overwritten on the next run. The rationale each assertion carries moved
|
|
8
|
+
// with it into the band.
|
|
9
9
|
|
|
10
10
|
import { describe, expect, mock, test } from "bun:test";
|
|
11
11
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
1
|
+
// @system codegen
|
|
2
|
+
// @status generated
|
|
3
|
+
// @edit change the suite in the owned-suites band, then re-run codegen. Hand-edits are overwritten.
|
|
4
|
+
//
|
|
5
|
+
// This suite's assertions are OWNED by the codegen band: the band module
|
|
6
|
+
// carries them verbatim, this file is the emission, and hand edits here are
|
|
7
|
+
// overwritten on the next run. The rationale each assertion carries moved
|
|
8
|
+
// with it into the band.
|
|
9
9
|
|
|
10
10
|
import { describe, expect, test } from "bun:test";
|
|
11
11
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
1
|
+
// @system codegen
|
|
2
|
+
// @status generated
|
|
3
|
+
// @edit change the suite in the owned-suites band, then re-run codegen. Hand-edits are overwritten.
|
|
4
|
+
//
|
|
5
|
+
// This suite's assertions are OWNED by the codegen band: the band module
|
|
6
|
+
// carries them verbatim, this file is the emission, and hand edits here are
|
|
7
|
+
// overwritten on the next run. The rationale each assertion carries moved
|
|
8
|
+
// with it into the band.
|
|
9
9
|
|
|
10
10
|
import { beforeAll, describe, expect, test } from "bun:test";
|
|
11
11
|
import { Hono } from "hono";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
1
|
+
// @system codegen
|
|
2
|
+
// @status generated
|
|
3
|
+
// @edit change the suite in the owned-suites band, then re-run codegen. Hand-edits are overwritten.
|
|
4
|
+
//
|
|
5
|
+
// This suite's assertions are OWNED by the codegen band: the band module
|
|
6
|
+
// carries them verbatim, this file is the emission, and hand edits here are
|
|
7
|
+
// overwritten on the next run. The rationale each assertion carries moved
|
|
8
|
+
// with it into the band.
|
|
9
9
|
|
|
10
10
|
import { beforeAll, describe, expect, test } from "bun:test";
|
|
11
11
|
import { Hono } from "hono";
|