@teamscala/service-boot 0.23.503 → 0.23.505
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 +1 -1
- package/src/agreement-gate/signing-shell.test.ts +9 -15
- package/src/agreement-gate.test.ts +8 -15
- package/src/asset-proxy.test.ts +9 -9
- package/src/attach-portal-members.test.ts +9 -13
- package/src/attach-transfers-upload.test.ts +9 -10
- package/src/auth-gate.test.ts +8 -7
- package/src/build-client-assets/manifest.test.ts +8 -14
- package/src/build-client-assets/source-candidates.test.ts +9 -11
- package/src/build-client-assets/sourcemaps-upload.test.ts +8 -15
- package/src/build-client-assets/styles-build.test.ts +9 -15
- package/src/build-client-assets.test.ts +8 -12
- package/src/capability-slug.test.ts +9 -0
- package/src/compose-page-title.test.ts +8 -9
- package/src/content-gate/catalog.test.ts +8 -8
- package/src/content-gate/token.test.ts +8 -13
- package/src/content-page-floor.test.ts +9 -11
- package/src/csrf-body-limit.test.ts +9 -15
- package/src/handlers/messaging-send-reconcile-logic.test.ts +9 -11
- package/src/handlers/messaging-send-recording-logic.test.ts +9 -9
- package/src/handlers/messaging-send-recording-watch.test.ts +9 -11
- package/src/handlers/messaging-send-sweep-selection.test.ts +9 -7
- package/src/handlers/platform-fault-escalation/probe.test.ts +9 -10
- package/src/handlers/platform-fault-escalation-refresh.test.ts +9 -22
- package/src/handlers/platform-fault-escalation.test.ts +9 -10
- package/src/handlers/scala-tools-currency-watch.test.ts +9 -0
- package/src/handlers/singleton-tools-currency-watch.test.ts +9 -0
- package/src/handlers/whatsapp-liveness-handler.test.ts +9 -12
- package/src/handlers/whatsapp-liveness.test.ts +9 -9
- package/src/interpolate-meta.ts +123 -0
- package/src/is-react-element-type.test.ts +8 -9
- package/src/loader-errors.ts +41 -0
- package/src/module-not-found.test.ts +8 -12
- package/src/mount-orpc-router.test.ts +8 -9
- package/src/page-server-orpc/server-client.test.ts +8 -17
- package/src/read-html-template.test.ts +8 -12
- package/src/register-registry-page-route/apply-page-branding.test.ts +8 -19
- package/src/register-registry-page-route/captured-loader-config.test.ts +9 -13
- package/src/register-registry-page-route/graph-cache.test.ts +9 -12
- package/src/register-registry-page-route/live-loader-config.test.ts +8 -24
- package/src/register-registry-page-route/meta-title.ts +1 -1
- package/src/register-registry-page-route/page-data-shared.test.ts +9 -12
- package/src/register-registry-page-route/public-shell-page-data.test.ts +8 -19
- package/src/register-registry-page-route/resolve-entity-title.test.ts +8 -7
- package/src/register-registry-page-route/resolve-page-data.test.ts +9 -13
- package/src/register-registry-page-route/resolve-request-graph.test.ts +9 -13
- package/src/resolve-from-loader-config.test.ts +10 -14
- package/src/resolve-from-loader-config.ts +28 -115
- package/src/resolve-service-port.test.ts +8 -12
- package/src/resolvers/app-header.test.ts +9 -5
- package/src/resolvers/fetch-org-brand.ts +18 -2
- package/src/resolvers/portal-route-paths.test.ts +8 -13
- package/src/resource-chat-inject.page-assistant.test.ts +8 -28
- package/src/resource-chat-inject.test.ts +8 -25
- package/src/resource-not-found.test.ts +9 -8
- package/src/security-headers.test.ts +9 -12
- package/src/select-service-routes.test.ts +9 -0
- package/src/server-error-page.test.ts +8 -10
- package/src/theme-fonts-link.test.ts +8 -10
- package/src/two-phase-full-app.test.ts +8 -16
- package/src/two-phase-health-gate-client-only.test.ts +8 -28
- package/src/two-phase-health-gate.test.ts +8 -28
package/package.json
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* registry title falls back to the DB-driven default, the signing shell
|
|
11
|
-
* ALWAYS renders (registry failure falls back to the hardcoded shell), the
|
|
12
|
-
* shell is deep-cloned per call (injection mutates the tree in place), and
|
|
13
|
-
* the pre-placed-gate probe recognises an agreement gate by its context
|
|
14
|
-
* field — a PROPOSAL gate in the same region must not read as an agreement.
|
|
15
|
-
*/
|
|
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
|
+
|
|
16
10
|
import { describe, expect, mock, test } from "bun:test";
|
|
17
11
|
|
|
18
12
|
let registryBlocks: unknown = undefined;
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* A prior version of getBodyContentArray scored every region by top-level
|
|
10
|
-
* non-shell block count and picked the highest — which misruted to /header when
|
|
11
|
-
* the body wrapped its clauses inside a Container (body top-level count ~1-2
|
|
12
|
-
* vs nested clause count ~40). onUnauthorized then cleared the HEADER and
|
|
13
|
-
* injected the gate there, leaving the entire agreement body visible past the
|
|
14
|
-
* gate. This test pins the fix: the body is withheld, the header is untouched.
|
|
15
|
-
*/
|
|
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.
|
|
16
9
|
|
|
17
10
|
import { describe, expect, test } from "bun:test";
|
|
18
11
|
import { agreementGateConfig } from "./agreement-gate.ts";
|
package/src/asset-proxy.test.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
+
|
|
10
10
|
import { describe, expect, it } from "bun:test";
|
|
11
11
|
import { handleAssetProxy } from "./asset-proxy.ts";
|
|
12
12
|
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* a 400, and an unauthenticated caller never reaches the probe query at
|
|
11
|
-
* all), and a database fault is reported as resolve-failed rather than a
|
|
12
|
-
* 500 leaking driver detail.
|
|
13
|
-
*/
|
|
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
|
+
|
|
14
10
|
import { describe, expect, mock, test } from "bun:test";
|
|
15
11
|
import { Hono } from "hono";
|
|
16
12
|
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*/
|
|
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
|
+
|
|
11
10
|
import { describe, expect, it } from "bun:test";
|
|
12
11
|
import { attachTransfersUpload } from "./attach-transfers-upload.ts";
|
|
13
12
|
|
package/src/auth-gate.test.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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.
|
|
8
9
|
|
|
9
10
|
import { describe, expect, test } from "bun:test";
|
|
10
11
|
import { isStaticAssetPath } from "./auth-gate.ts";
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* (the unstyled-proposal incident): a manifest that never ran — or a first-boot
|
|
10
|
-
* tombstone carrying the unhashed FALLBACK_MANIFEST paths — read as a
|
|
11
|
-
* legitimate bundle and the service served pages whose stylesheet 404'd while
|
|
12
|
-
* every health surface reported ok. These tests pin the refusal for all three
|
|
13
|
-
* unbuilt shapes and the pass for a real build.
|
|
14
|
-
*/
|
|
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.
|
|
15
9
|
|
|
16
10
|
import { mkdir, mkdtemp, rm } from "node:fs/promises";
|
|
17
11
|
import { afterEach, beforeEach, describe, expect, test } from "bun:test";
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* kind:ui service's stylesheet (2026-09-01, operator-visible).
|
|
11
|
-
*/
|
|
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
|
+
|
|
12
10
|
import { describe, expect, test } from "bun:test";
|
|
13
11
|
import { mkdir, rm } from "node:fs/promises";
|
|
14
12
|
import { join } from "node:path";
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* POST it used returns HTTP 405 on GlitchTip, so NOTHING had ever uploaded.
|
|
10
|
-
* The CLI integration is verified live on the dev host (57/57 of the
|
|
11
|
-
* scala-roadmap release 3b940e0030 uploaded clean); in-test subprocess
|
|
12
|
-
* verification is deferred (spawnSync blocks the bun event loop, which would
|
|
13
|
-
* deadlock a same-process mock server). These tests cover the pure
|
|
14
|
-
* boundaries the verification layer depends on.
|
|
15
|
-
*/
|
|
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.
|
|
16
9
|
|
|
17
10
|
import { mkdtemp, mkdir, readdir, rm } from "node:fs/promises";
|
|
18
11
|
import { tmpdir } from "node:os";
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* surfaced as misleading downstream CSS errors, and inlineCssImports
|
|
11
|
-
* SWALLOWED unresolved imports, leaving literals that failed downstream
|
|
12
|
-
* instead of at the build. Every case below pins the ruled contract:
|
|
13
|
-
* resolve or THROW naming the specifier; remote https imports are skipped
|
|
14
|
-
* explicitly, never resolved and never thrown on.
|
|
15
|
-
*/
|
|
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
|
+
|
|
16
10
|
import { describe, expect, test } from "bun:test";
|
|
17
11
|
import { mkdir, rm } from "node:fs/promises";
|
|
18
12
|
import { join } from "node:path";
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* "https://rsms.me/inter/inter.css"`, a CDN our CSP forbids. The compiled
|
|
10
|
-
* bundle must carry zero remote @imports; the app loads its font from the
|
|
11
|
-
* CSP-allowlisted Google Fonts <link> in index.html instead.
|
|
12
|
-
*/
|
|
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.
|
|
13
9
|
|
|
14
10
|
import { mkdtemp, mkdir, rm } from "node:fs/promises";
|
|
15
11
|
import { tmpdir } from "node:os";
|
|
@@ -1,3 +1,12 @@
|
|
|
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
|
+
|
|
1
10
|
import { describe, expect, test } from "bun:test";
|
|
2
11
|
import { toCapabilitySlug } from "./capability-slug.ts";
|
|
3
12
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*/
|
|
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.
|
|
10
9
|
|
|
11
10
|
import { describe, expect, test } from "bun:test";
|
|
12
11
|
import { composePageTitle } from "./compose-page-title.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,17 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* binding that every gate relies on to withhold content from a link holder.
|
|
10
|
-
*/
|
|
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.
|
|
11
9
|
|
|
12
|
-
// A stable secret so secret() resolves deterministically in the test. Set BEFORE
|
|
13
|
-
// importing the module under test (secret() reads it at call time, so order is
|
|
14
|
-
// not strictly required, but this keeps the intent explicit).
|
|
15
10
|
process.env.AUTH_SECRET = "test-secret-at-least-16-chars-long";
|
|
16
11
|
|
|
17
12
|
import { describe, expect, test } from "bun:test";
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* region-slot shell (no page source — untouched).
|
|
11
|
-
*/
|
|
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
|
+
|
|
12
10
|
import { test, expect } from "bun:test";
|
|
13
11
|
import {
|
|
14
12
|
decideContentPageFloor,
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* - security-body-limit: a body over the global limit is refused 413 BEFORE
|
|
11
|
-
* any handler runs, and the transfers upload rejects an over-sized
|
|
12
|
-
* Content-Length without buffering the body.
|
|
13
|
-
* Proxy-is-not-behaviour guards: these exercise the real middleware through
|
|
14
|
-
* real Hono requests.
|
|
15
|
-
*/
|
|
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
|
+
|
|
16
10
|
import { describe, expect, it } from "bun:test";
|
|
17
11
|
import { Hono } from "hono";
|
|
18
12
|
import { bodyLimit } from "hono/body-limit";
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* candidate).
|
|
11
|
-
*/
|
|
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
|
+
|
|
12
10
|
import { describe, expect, test } from "bun:test";
|
|
13
11
|
import {
|
|
14
12
|
buildBackfillRow,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
+
|
|
10
10
|
import { describe, expect, test } from "bun:test";
|
|
11
11
|
import {
|
|
12
12
|
buildUnrecordedPayload,
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* the failure shape — without touching the real database.
|
|
11
|
-
*/
|
|
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
|
+
|
|
12
10
|
import { beforeEach, expect, mock, test } from "bun:test";
|
|
13
11
|
|
|
14
12
|
const recordEventCalls: Array<{ kind: string; payload: Record<string, unknown> }> = [];
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
+
|
|
8
10
|
import { describe, expect, test } from "bun:test";
|
|
9
11
|
import {
|
|
10
12
|
selectChatsToSweep,
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*/
|
|
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
|
+
|
|
11
10
|
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
|
|
12
11
|
import { probeHttpOk } from "./probe.ts";
|
|
13
12
|
|
|
@@ -1,25 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*
|
|
11
|
-
* WHAT THIS LOCKS. The sweep escalated once and then never wrote the row
|
|
12
|
-
* again, so an open episode's window facts froze at their escalation-time
|
|
13
|
-
* values while the fault kept firing. Measured 2026-08-28: the
|
|
14
|
-
* `host-command-bus.command.failed` row read `last_seen_at` fifteen hours old
|
|
15
|
-
* with 1,150 further events recorded after it, and a reader — this lane
|
|
16
|
-
* included — concluded from the row that the fault had stopped.
|
|
17
|
-
*
|
|
18
|
-
* The stale value is not only cosmetic: `decideSweep` falls back to
|
|
19
|
-
* `episode.lastSeenAt` once a kind drops out of the window, so a frozen
|
|
20
|
-
* timestamp makes a just-gone-quiet fault look quiet for hours and closes the
|
|
21
|
-
* episode immediately instead of after its configured resolve window.
|
|
22
|
-
*/
|
|
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
|
+
|
|
23
10
|
import { describe, expect, test } from "bun:test";
|
|
24
11
|
import { episodeNeedsRefresh, pagesOperator } from "./platform-fault-escalation-logic.ts";
|
|
25
12
|
|