agentrail-edge 0.4.1 → 0.5.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 -3
- package/dist/edge.js +7 -4
- package/package.json +2 -2
package/dist/edge.d.ts
CHANGED
|
@@ -6,9 +6,12 @@ import { type MarkedHosts } from './links.js';
|
|
|
6
6
|
* `x-invocation-id` Vercel adds on the way to a function, `x-forwarded-*`;
|
|
7
7
|
* the `render-proxy-ttl`, `rndr-id` and `x-request-start` Render's proxy adds
|
|
8
8
|
* on the way to a service, which all 37 MCP steps recorded behind this edge
|
|
9
|
-
* on Render carried, 2026-11-19
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* on Render carried, 2026-11-19; the `x-amz-cf-*` and `cloudfront-*` names
|
|
10
|
+
* CloudFront adds, Fastly's `fastly-*` and Akamai's `akamai-*` and
|
|
11
|
+
* `x-akamai-*`, which no client's HTTP library writes), the
|
|
12
|
+
* `x-agentrail-trace-handoff` an Agentrail edge adds to the request it
|
|
13
|
+
* forwards (`requestForOrigin`), and Agentrail's own first-party mark. The
|
|
14
|
+
* contract's
|
|
12
15
|
* (`otlp.headerNames.addedOnTheWay`); the tests hold this copy to it.
|
|
13
16
|
*/
|
|
14
17
|
export declare const ADDED_ON_THE_WAY: RegExp;
|
package/dist/edge.js
CHANGED
|
@@ -49,12 +49,15 @@ const ACCEPT_ENCODING_LENGTH = 128;
|
|
|
49
49
|
* `x-invocation-id` Vercel adds on the way to a function, `x-forwarded-*`;
|
|
50
50
|
* the `render-proxy-ttl`, `rndr-id` and `x-request-start` Render's proxy adds
|
|
51
51
|
* on the way to a service, which all 37 MCP steps recorded behind this edge
|
|
52
|
-
* on Render carried, 2026-11-19
|
|
53
|
-
*
|
|
54
|
-
*
|
|
52
|
+
* on Render carried, 2026-11-19; the `x-amz-cf-*` and `cloudfront-*` names
|
|
53
|
+
* CloudFront adds, Fastly's `fastly-*` and Akamai's `akamai-*` and
|
|
54
|
+
* `x-akamai-*`, which no client's HTTP library writes), the
|
|
55
|
+
* `x-agentrail-trace-handoff` an Agentrail edge adds to the request it
|
|
56
|
+
* forwards (`requestForOrigin`), and Agentrail's own first-party mark. The
|
|
57
|
+
* contract's
|
|
55
58
|
* (`otlp.headerNames.addedOnTheWay`); the tests hold this copy to it.
|
|
56
59
|
*/
|
|
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;
|
|
60
|
+
export const ADDED_ON_THE_WAY = /^(?:x-forwarded-.*|x-amzn-.*|x-amz-cf-.*|x-vercel-.*|cf-.*|cloudfront-.*|fastly-.*|akamai-.*|x-akamai-.*|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;
|
|
58
61
|
/** The most header names an event keeps, and the most characters they take joined (`otlp.headerNames`). */
|
|
59
62
|
export const HEADER_NAMES_KEPT = { count: 40, characters: 512 };
|
|
60
63
|
/** 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.
|
|
3
|
+
"version": "0.5.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.
|
|
28
|
+
"agentrail-core": "0.5.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "24.13.3",
|