@arnilo/prism-server 0.0.16 → 0.0.18

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
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.18] - 2026-07-30
4
+
5
+ ### Changed
6
+ - Released with exact 0.0.18 graph.
7
+
8
+ ## [0.0.17] - 2026-07-29
9
+
10
+ ### Changed
11
+ - Released with exact 0.0.17 graph.
12
+
3
13
  ## [0.0.16] - 2026-07-26
4
14
 
5
15
  ### Changed
package/dist/health.js CHANGED
@@ -10,7 +10,7 @@ export function createPrismHealthHandler(options = {}) {
10
10
  throw new PrismServerError("Method not allowed", 405, "ERR_PRISM_SERVER_METHOD");
11
11
  }
12
12
  const url = new URL(request.url);
13
- const path = url.pathname.replace(/\/$/, "") || "/";
13
+ const path = url.pathname.replace(/\/+$/, "") || "/";
14
14
  const livePath = `${base}/livez`;
15
15
  const readyPath = `${base}/readyz`;
16
16
  if (path !== base && path !== livePath && path !== readyPath) {
@@ -84,7 +84,7 @@ function normalizeHealthBase(basePath) {
84
84
  if (!basePath.startsWith("/") || basePath.includes("?") || basePath.includes("#")) {
85
85
  throw new PrismServerError("Invalid health basePath", 500, "ERR_PRISM_SERVER_CONFIG");
86
86
  }
87
- return basePath.replace(/\/$/, "") || "/health";
87
+ return basePath.replace(/\/+$/, "") || "/health";
88
88
  }
89
89
  function assertSafeDetail(value) {
90
90
  for (const key of Object.keys(value)) {
package/dist/replay.js CHANGED
@@ -35,14 +35,14 @@ export function createPrismEventReplay(store, options = {}) {
35
35
  }
36
36
  /** Optional HTTP adapter: POST `{ sessionId, runId, cursor? }` → ownership-scoped page. */
37
37
  export function createPrismReplayHandler(options) {
38
- const base = (options.basePath ?? "/prism/replay/events").replace(/\/$/, "");
38
+ const base = (options.basePath ?? "/prism/replay/events").replace(/\/+$/, "");
39
39
  const limits = resolvePrismDeploymentLimits(options.limits);
40
40
  return async (request) => {
41
41
  try {
42
42
  if (request.method !== "POST") {
43
43
  throw new PrismServerError("Method not allowed", 405, "ERR_PRISM_SERVER_METHOD");
44
44
  }
45
- const path = new URL(request.url).pathname.replace(/\/$/, "");
45
+ const path = new URL(request.url).pathname.replace(/\/+$/, "");
46
46
  if (path !== base)
47
47
  throw new PrismServerError("Not found", 404, "ERR_PRISM_SERVER_NOT_FOUND");
48
48
  const ownership = await options.authorize(request);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arnilo/prism-server",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "Optional framework-free Web Request-to-Response handler for explicitly selected Prism agents and workflows.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -25,8 +25,8 @@
25
25
  "pack:dry-run": "npm pack --dry-run"
26
26
  },
27
27
  "peerDependencies": {
28
- "@arnilo/prism": "0.0.16",
29
- "@arnilo/prism-workflows": "0.0.16"
28
+ "@arnilo/prism": "0.0.18",
29
+ "@arnilo/prism-workflows": "0.0.18"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@arnilo/prism": "file:../..",