@crvouga/mockingbird-service-junction 1.9.0 → 2.0.0

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/dist/cli.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  runCli,
5
5
  serveCommand,
6
6
  serveTarget
7
- } from "./chunk-S4CJ5QWE.js";
7
+ } from "./chunk-7LPCTLIJ.js";
8
8
  import {
9
9
  DEFAULT_JUNCTION_BASE_URL,
10
10
  createRuntime,
@@ -12,7 +12,7 @@ import {
12
12
  isSandboxKey,
13
13
  pullCorpus,
14
14
  verifyAgainstReal
15
- } from "./chunk-WL4WPDHG.js";
15
+ } from "./chunk-FZVFIPML.js";
16
16
  import {
17
17
  defaultCorpus
18
18
  } from "./chunk-C2UGIPPM.js";
package/dist/index.d.ts CHANGED
@@ -1545,6 +1545,8 @@ type JunctionRuntimeOptions = {
1545
1545
  clock?: Clock;
1546
1546
  /** Seeds fault rates and webhook retry jitter. */
1547
1547
  seed?: number | string;
1548
+ /** Prefix for all internal HTTP paths. Default /__admin. */
1549
+ adminPrefix?: string;
1548
1550
  /** Require `x-mockingbird-admin-key` on `/__admin/*`. */
1549
1551
  adminKey?: string;
1550
1552
  onLog?: (entry: RequestLog) => void;
@@ -1555,7 +1557,7 @@ type JunctionRuntime = ServiceRuntime<JunctionAPI> & {
1555
1557
  };
1556
1558
  /**
1557
1559
  * The Junction mock with Mockingbird's full service contract: unauthenticated
1558
- * `/health`, the `/__admin/*` control plane, per-request namespaces
1560
+ * `/__admin/health`, the `/__admin/*` control plane, per-request namespaces
1559
1561
  * (`x-mockingbird-namespace`), clock control, fault injection and request metrics.
1560
1562
  * Runtime-neutral: serve it with any Fetch-native server, or use `./server` for Node.
1561
1563
  */
@@ -1673,7 +1675,7 @@ type JunctionAPIOptions = APIOptions & {
1673
1675
  /** Users and orders to load into every namespace, re-applied on every `reset()`. */
1674
1676
  fixtures?: JunctionFixtures;
1675
1677
  };
1676
- /** What a loaded corpus covers, for `/health` and startup logs. */
1678
+ /** What a loaded corpus covers, for `/__admin/health` and startup logs. */
1677
1679
  type CorpusInfo = {
1678
1680
  label: string;
1679
1681
  recordedAt: string;
package/dist/index.js CHANGED
@@ -53,7 +53,7 @@ import {
53
53
  supportedOperationIds,
54
54
  verifyAgainstReal,
55
55
  verifySvix
56
- } from "./chunk-WL4WPDHG.js";
56
+ } from "./chunk-FZVFIPML.js";
57
57
  import {
58
58
  SEALED_CORPUS_VERSION,
59
59
  SUPPORTED_SEALED_CORPUS_VERSIONS,
package/dist/server.d.ts CHANGED
@@ -593,6 +593,7 @@ type CliOption = {
593
593
  };
594
594
  type CliValues = Record<string, string | boolean | undefined>;
595
595
  type CommonServeOptions = {
596
+ adminPrefix?: string;
596
597
  adminKey: string | undefined;
597
598
  seed: string | undefined;
598
599
  onLog: ((entry: RequestLog$1) => void) | undefined;
@@ -1708,7 +1709,7 @@ type JunctionAPIOptions = APIOptions & {
1708
1709
  /** Users and orders to load into every namespace, re-applied on every `reset()`. */
1709
1710
  fixtures?: JunctionFixtures;
1710
1711
  };
1711
- /** What a loaded corpus covers, for `/health` and startup logs. */
1712
+ /** What a loaded corpus covers, for `/__admin/health` and startup logs. */
1712
1713
  type CorpusInfo = {
1713
1714
  label: string;
1714
1715
  recordedAt: string;
@@ -1847,6 +1848,8 @@ type JunctionRuntimeOptions = {
1847
1848
  clock?: Clock;
1848
1849
  /** Seeds fault rates and webhook retry jitter. */
1849
1850
  seed?: number | string;
1851
+ /** Prefix for all internal HTTP paths. Default /__admin. */
1852
+ adminPrefix?: string;
1850
1853
  /** Require `x-mockingbird-admin-key` on `/__admin/*`. */
1851
1854
  adminKey?: string;
1852
1855
  onLog?: (entry: RequestLog) => void;
package/dist/server.js CHANGED
@@ -3,8 +3,8 @@ import {
3
3
  createServer,
4
4
  loadCorpus,
5
5
  serveTarget
6
- } from "./chunk-S4CJ5QWE.js";
7
- import "./chunk-WL4WPDHG.js";
6
+ } from "./chunk-7LPCTLIJ.js";
7
+ import "./chunk-FZVFIPML.js";
8
8
  import "./chunk-C2UGIPPM.js";
9
9
  import "./chunk-ISDNA2TU.js";
10
10
  export {