agentrail-edge 0.3.0 → 0.3.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 +3 -2
- package/dist/edge.js +4 -3
- package/package.json +2 -2
package/dist/edge.d.ts
CHANGED
|
@@ -2,8 +2,9 @@ import { type PrincipalKind } from 'agentrail-core';
|
|
|
2
2
|
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
|
-
* the way (Cloudflare's `cf-*`, Vercel's `x-vercel-*`, `
|
|
6
|
-
*
|
|
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
|
+
* and Agentrail's own first-party mark. The contract's
|
|
7
8
|
* (`otlp.headerNames.addedOnTheWay`); the tests hold this copy to it.
|
|
8
9
|
*/
|
|
9
10
|
export declare const ADDED_ON_THE_WAY: RegExp;
|
package/dist/edge.js
CHANGED
|
@@ -43,11 +43,12 @@ const ACCEPT_LENGTH = 256;
|
|
|
43
43
|
const ACCEPT_ENCODING_LENGTH = 128;
|
|
44
44
|
/**
|
|
45
45
|
* The header names no caller writes: what a proxy or the platform added on
|
|
46
|
-
* the way (Cloudflare's `cf-*`, Vercel's `x-vercel-*`, `
|
|
47
|
-
*
|
|
46
|
+
* the way (Cloudflare's `cf-*`, Vercel's `x-vercel-*`, and the `logs-url` and
|
|
47
|
+
* `x-invocation-id` Vercel adds on the way to a function, `x-forwarded-*`),
|
|
48
|
+
* and Agentrail's own first-party mark. The contract's
|
|
48
49
|
* (`otlp.headerNames.addedOnTheWay`); the tests hold this copy to it.
|
|
49
50
|
*/
|
|
50
|
-
export const ADDED_ON_THE_WAY = /^(?:x-forwarded-.*|x-amzn-.*|x-vercel-.*|cf-.*|forwarded|via|x-real-ip|cdn-loop|true-client-ip|agentrail-first-party)$/iu;
|
|
51
|
+
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;
|
|
51
52
|
/** The most header names an event keeps, and the most characters they take joined (`otlp.headerNames`). */
|
|
52
53
|
export const HEADER_NAMES_KEPT = { count: 40, characters: 512 };
|
|
53
54
|
/** 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.
|
|
3
|
+
"version": "0.3.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.3.
|
|
28
|
+
"agentrail-core": "0.3.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "24.13.3",
|