@arbol-ai/maximus 7.2.1 → 7.2.2

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.
@@ -844,7 +844,7 @@ function createHttpHandler(manifest, hooks = {}) {
844
844
  const challenge = manifest.tokens.challenge?.(error, context);
845
845
  if (challenge) headers.set("www-authenticate", challenge);
846
846
  }
847
- if (error.code === "UNAUTHORIZED" && !headers.has("www-authenticate")) {
847
+ if (status === 401 && !headers.has("www-authenticate")) {
848
848
  const metadataUrl = challengeMetadataUrl(context);
849
849
  headers.set("www-authenticate", ownBearer || metadataUrl === null ? "Bearer" : `Bearer resource_metadata="${metadataUrl}"`);
850
850
  }
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { n as readBodyBytes, r as readBodyText } from "./chunks/body-BcMbreNd.js
4
4
  import { C as operationMatchesScopes, E as matchesScopes, T as operationScopes, a as createTokenVerifier, d as err, f as isResult, i as createTokenAuthorization, o as projectToken, p as ok, r as PrincipalSchema, y as isPublicOperation } from "./chunks/execution-C-ZHm0Ya.js";
5
5
  import { createHttpRouteResolver } from "./http-paths.js";
6
6
  import { _ as pageLimit, c as HexColorSchema, d as PhoneNumberSchema, f as PostalAddressSchema, g as PageQueryFields, h as PageInfoSchema, i as UuidSchema, l as HttpsUrlSchema, m as Page, n as OrganizationIdSchema, o as DeletedObjectSchema, p as SignedUrlSchema, s as EmailAddressSchema, t as EmptyInputSchema, u as NamedReferenceSchema, v as AttachmentOutputSchema } from "./chunks/schemas-q-51wBMQ.js";
7
- import { c as maximus, i as createOpenApi, n as t, r as createHttpHandler, s as protectedResourceMetadata, t as Type } from "./chunks/src-D-JmAzlF.js";
7
+ import { c as maximus, i as createOpenApi, n as t, r as createHttpHandler, s as protectedResourceMetadata, t as Type } from "./chunks/src-D0yQz-d-.js";
8
8
  import { i as reportUnexpected } from "./chunks/telemetry-DvZgrzZn.js";
9
9
  import { a as retryAfterSeconds, i as readJsonResponse, r as readJsonBody, t as isJsonMediaType } from "./chunks/json-Dwni3u4c.js";
10
10
 
package/dist/mcp/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { standardErrors } from "../errors.js";
2
2
  import { C as operationMatchesScopes, b as mcpOpenWorld, g as MAX_BODY_BYTES_CEILING, m as sha256Hex } from "../chunks/execution-C-ZHm0Ya.js";
3
- import { a as canonical, o as standaloneSchema } from "../chunks/src-D-JmAzlF.js";
3
+ import { a as canonical, o as standaloneSchema } from "../chunks/src-D0yQz-d-.js";
4
4
  import { i as reportUnexpected } from "../chunks/telemetry-DvZgrzZn.js";
5
5
  import { Type } from "@sinclair/typebox";
6
6
  import { Value } from "@sinclair/typebox/value";
@@ -2,7 +2,7 @@ import { r as parseInput } from "../chunks/validation-DWxKk1Js.js";
2
2
  import { r as isRequestId } from "../chunks/correlation-gaiEoMBr.js";
3
3
  import { standardErrors } from "../errors.js";
4
4
  import { d as err, p as ok, r as PrincipalSchema, t as executeOperation } from "../chunks/execution-C-ZHm0Ya.js";
5
- import { r as createHttpHandler } from "../chunks/src-D-JmAzlF.js";
5
+ import { r as createHttpHandler } from "../chunks/src-D0yQz-d-.js";
6
6
  import { a as telemetryEnabled, r as recordExecution, s as withTelemetry } from "../chunks/telemetry-DvZgrzZn.js";
7
7
  import { DurableObject, WorkerEntrypoint, tracing } from "cloudflare:workers";
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/maximus",
3
- "version": "7.2.1",
3
+ "version": "7.2.2",
4
4
  "description": "Maximus: define a service once and serve it over HTTP, MCP and Worker RPC on Cloudflare Workers, with its OpenAPI, typed client and CLI.",
5
5
  "keywords": [
6
6
  "api",