agentrail-edge 0.4.0 → 0.4.1
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/edge.d.ts +6 -2
- package/dist/edge.js +7 -3
- package/package.json +2 -2
package/dist/edge.d.ts
CHANGED
|
@@ -3,8 +3,12 @@ import { type MarkedHosts } from './links.js';
|
|
|
3
3
|
/**
|
|
4
4
|
* The header names no caller writes: what a proxy or the platform added on
|
|
5
5
|
* the way (Cloudflare's `cf-*`, Vercel's `x-vercel-*`, and the `logs-url` and
|
|
6
|
-
* `x-invocation-id` Vercel adds on the way to a function, `x-forwarded
|
|
7
|
-
*
|
|
6
|
+
* `x-invocation-id` Vercel adds on the way to a function, `x-forwarded-*`;
|
|
7
|
+
* the `render-proxy-ttl`, `rndr-id` and `x-request-start` Render's proxy adds
|
|
8
|
+
* on the way to a service, which all 37 MCP steps recorded behind this edge
|
|
9
|
+
* on Render carried, 2026-11-19), the `x-agentrail-trace-handoff` an
|
|
10
|
+
* Agentrail edge adds to the request it forwards (`requestForOrigin`), and
|
|
11
|
+
* Agentrail's own first-party mark. The contract's
|
|
8
12
|
* (`otlp.headerNames.addedOnTheWay`); the tests hold this copy to it.
|
|
9
13
|
*/
|
|
10
14
|
export declare const ADDED_ON_THE_WAY: RegExp;
|
package/dist/edge.js
CHANGED
|
@@ -46,11 +46,15 @@ const ACCEPT_ENCODING_LENGTH = 128;
|
|
|
46
46
|
/**
|
|
47
47
|
* The header names no caller writes: what a proxy or the platform added on
|
|
48
48
|
* the way (Cloudflare's `cf-*`, Vercel's `x-vercel-*`, and the `logs-url` and
|
|
49
|
-
* `x-invocation-id` Vercel adds on the way to a function, `x-forwarded
|
|
50
|
-
*
|
|
49
|
+
* `x-invocation-id` Vercel adds on the way to a function, `x-forwarded-*`;
|
|
50
|
+
* the `render-proxy-ttl`, `rndr-id` and `x-request-start` Render's proxy adds
|
|
51
|
+
* on the way to a service, which all 37 MCP steps recorded behind this edge
|
|
52
|
+
* on Render carried, 2026-11-19), the `x-agentrail-trace-handoff` an
|
|
53
|
+
* Agentrail edge adds to the request it forwards (`requestForOrigin`), and
|
|
54
|
+
* Agentrail's own first-party mark. The contract's
|
|
51
55
|
* (`otlp.headerNames.addedOnTheWay`); the tests hold this copy to it.
|
|
52
56
|
*/
|
|
53
|
-
export const ADDED_ON_THE_WAY = /^(?:x-forwarded-.*|x-amzn-.*|x-vercel-.*|cf-.*|forwarded|via|x-real-ip|cdn-loop|true-client-ip|logs-url|x-invocation-id|agentrail-first-party)$/iu;
|
|
57
|
+
export const ADDED_ON_THE_WAY = /^(?:x-forwarded-.*|x-amzn-.*|x-vercel-.*|cf-.*|forwarded|via|x-real-ip|cdn-loop|true-client-ip|logs-url|x-invocation-id|render-proxy-ttl|rndr-id|x-request-start|x-agentrail-trace-handoff|agentrail-first-party)$/iu;
|
|
54
58
|
/** The most header names an event keeps, and the most characters they take joined (`otlp.headerNames`). */
|
|
55
59
|
export const HEADER_NAMES_KEPT = { count: 40, characters: 512 };
|
|
56
60
|
/** The longest `Sec-Fetch-*` value the collector takes; the browsers' are one word. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentrail-edge",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "The Agentrail edge: in front of a site on Cloudflare Workers, Vercel or any Fetch API runtime, it records each request and marks the links agents follow.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"node": ">=22"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"agentrail-core": "0.4.
|
|
28
|
+
"agentrail-core": "0.4.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "24.13.3",
|