build: bump version to 2026.3.22

This commit is contained in:
Peter Steinberger
2026-03-22 11:57:51 -07:00
parent 4113db7d78
commit 412a3eb1ac
89 changed files with 185 additions and 185 deletions

View File

@@ -31,7 +31,7 @@ describe("extra-params: OpenAI attribution", () => {
});
it("injects originator and release-based user agent for native OpenAI", () => {
process.env.OPENCLAW_VERSION = "2026.3.14";
process.env.OPENCLAW_VERSION = "2026.3.22";
const { headers } = applyAndCapture({
provider: "openai",
@@ -41,12 +41,12 @@ describe("extra-params: OpenAI attribution", () => {
expect(headers).toEqual({
originator: "openclaw",
"User-Agent": "openclaw/2026.3.14",
"User-Agent": "openclaw/2026.3.22",
});
});
it("overrides caller-supplied OpenAI attribution headers", () => {
process.env.OPENCLAW_VERSION = "2026.3.14";
process.env.OPENCLAW_VERSION = "2026.3.22";
const { headers } = applyAndCapture({
provider: "openai",
@@ -61,13 +61,13 @@ describe("extra-params: OpenAI attribution", () => {
expect(headers).toEqual({
originator: "openclaw",
"User-Agent": "openclaw/2026.3.14",
"User-Agent": "openclaw/2026.3.22",
"X-Custom": "1",
});
});
it("does not inject attribution on non-native OpenAI-compatible base URLs", () => {
process.env.OPENCLAW_VERSION = "2026.3.14";
process.env.OPENCLAW_VERSION = "2026.3.22";
const { headers } = applyAndCapture({
provider: "openai",
@@ -79,7 +79,7 @@ describe("extra-params: OpenAI attribution", () => {
});
it("injects attribution for ChatGPT-backed OpenAI Codex traffic", () => {
process.env.OPENCLAW_VERSION = "2026.3.14";
process.env.OPENCLAW_VERSION = "2026.3.22";
const { headers } = applyAndCapture({
provider: "openai-codex",
@@ -89,7 +89,7 @@ describe("extra-params: OpenAI attribution", () => {
expect(headers).toEqual({
originator: "openclaw",
"User-Agent": "openclaw/2026.3.14",
"User-Agent": "openclaw/2026.3.22",
});
});
});

View File

@@ -20,7 +20,7 @@ describe("provider attribution", () => {
it("returns a documented OpenRouter attribution policy", () => {
const policy = resolveProviderAttributionPolicy("openrouter", {
OPENCLAW_VERSION: "2026.3.14",
OPENCLAW_VERSION: "2026.3.22",
});
expect(policy).toEqual({
@@ -31,7 +31,7 @@ describe("provider attribution", () => {
docsUrl: "https://openrouter.ai/docs/app-attribution",
reviewNote: "Documented app attribution headers. Verified in OpenClaw runtime wrapper.",
product: "OpenClaw",
version: "2026.3.14",
version: "2026.3.22",
headers: {
"HTTP-Referer": "https://openclaw.ai",
"X-OpenRouter-Title": "OpenClaw",
@@ -43,7 +43,7 @@ describe("provider attribution", () => {
it("normalizes aliases when resolving provider headers", () => {
expect(
resolveProviderAttributionHeaders("OpenRouter", {
OPENCLAW_VERSION: "2026.3.14",
OPENCLAW_VERSION: "2026.3.22",
}),
).toEqual({
"HTTP-Referer": "https://openclaw.ai",
@@ -53,7 +53,7 @@ describe("provider attribution", () => {
});
it("returns a hidden-spec OpenAI attribution policy", () => {
expect(resolveProviderAttributionPolicy("openai", { OPENCLAW_VERSION: "2026.3.14" })).toEqual({
expect(resolveProviderAttributionPolicy("openai", { OPENCLAW_VERSION: "2026.3.22" })).toEqual({
provider: "openai",
enabledByDefault: true,
verification: "vendor-hidden-api-spec",
@@ -61,21 +61,21 @@ describe("provider attribution", () => {
reviewNote:
"OpenAI native traffic supports hidden originator/User-Agent attribution. Verified against the Codex wire contract.",
product: "OpenClaw",
version: "2026.3.14",
version: "2026.3.22",
headers: {
originator: "openclaw",
"User-Agent": "openclaw/2026.3.14",
"User-Agent": "openclaw/2026.3.22",
},
});
expect(resolveProviderAttributionHeaders("openai", { OPENCLAW_VERSION: "2026.3.14" })).toEqual({
expect(resolveProviderAttributionHeaders("openai", { OPENCLAW_VERSION: "2026.3.22" })).toEqual({
originator: "openclaw",
"User-Agent": "openclaw/2026.3.14",
"User-Agent": "openclaw/2026.3.22",
});
});
it("returns a hidden-spec OpenAI Codex attribution policy", () => {
expect(
resolveProviderAttributionPolicy("openai-codex", { OPENCLAW_VERSION: "2026.3.14" }),
resolveProviderAttributionPolicy("openai-codex", { OPENCLAW_VERSION: "2026.3.22" }),
).toEqual({
provider: "openai-codex",
enabledByDefault: true,
@@ -84,17 +84,17 @@ describe("provider attribution", () => {
reviewNote:
"OpenAI Codex ChatGPT-backed traffic supports the same hidden originator/User-Agent attribution contract.",
product: "OpenClaw",
version: "2026.3.14",
version: "2026.3.22",
headers: {
originator: "openclaw",
"User-Agent": "openclaw/2026.3.14",
"User-Agent": "openclaw/2026.3.22",
},
});
});
it("lists the current attribution support matrix", () => {
expect(
listProviderAttributionPolicies({ OPENCLAW_VERSION: "2026.3.14" }).map((policy) => [
listProviderAttributionPolicies({ OPENCLAW_VERSION: "2026.3.22" }).map((policy) => [
policy.provider,
policy.enabledByDefault,
policy.verification,