@arbol-ai/maximus 8.7.0 → 8.7.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.
Files changed (39) hide show
  1. package/dist/analytics/analytics.d.ts +1 -1
  2. package/dist/body.d.ts +1 -1
  3. package/dist/capture/index.d.ts +1 -1
  4. package/dist/chunks/{define-app-CRKaiTzi.js → define-app-DLftS8E6.js} +1 -1
  5. package/dist/chunks/{http-layout-CB6MdZOO.js → http-layout-CaZSEy2I.js} +1 -1
  6. package/dist/chunks/{meter-Mddtgv9_.js → meter-77troMd8.js} +1 -1
  7. package/dist/chunks/{openapi-tJeJfq1G.js → openapi-7EYOVkFi.js} +1 -1
  8. package/dist/chunks/{openapi-file-D1Fz9-oO.js → openapi-file-DK8aTUmo.js} +1 -1
  9. package/dist/chunks/{pages-DzAPVx2p.js → pages-DEnVoMAV.js} +1 -1
  10. package/dist/chunks/{runtime-D-yNrgEP.js → runtime-B7DDXiOv.js} +3 -3
  11. package/dist/chunks/{server-D49V-Sd4.js → server-1mO5c8-V.js} +1 -1
  12. package/dist/chunks/{src-DPB9t4u0.js → src-pzoGmAK9.js} +5 -5
  13. package/dist/chunks/{tokens-CS3E9OGg.js → tokens-BtC4LJ8a.js} +4 -5
  14. package/dist/chunks/{types-hP7p4Rsp.d.ts → types-CkaHVgDO.d.ts} +9 -4
  15. package/dist/chunks/{workers-types-qWuu8LZ0.d.ts → workers-types-BjNko_ZU.d.ts} +1 -1
  16. package/dist/client.d.ts +1 -1
  17. package/dist/diagnostics.d.ts +1 -1
  18. package/dist/errors.d.ts +1 -1
  19. package/dist/http-paths.d.ts +1 -1
  20. package/dist/index.d.ts +1 -1
  21. package/dist/index.js +3 -3
  22. package/dist/internals.d.ts +1 -1
  23. package/dist/internals.js +2 -2
  24. package/dist/mcp/index.d.ts +1 -1
  25. package/dist/mcp/index.js +1 -1
  26. package/dist/mcp/tasks.d.ts +1 -1
  27. package/dist/project/config.d.ts +1 -1
  28. package/dist/project/index.d.ts +2 -2
  29. package/dist/project/index.js +2 -2
  30. package/dist/schemas.d.ts +1 -1
  31. package/dist/standard-failures.d.ts +1 -1
  32. package/dist/tooling/cli.js +1 -1
  33. package/dist/vite/index.d.ts +3 -3
  34. package/dist/vite/index.js +3 -3
  35. package/dist/webhooks.d.ts +1 -1
  36. package/dist/workers/runtime.d.ts +1 -1
  37. package/dist/workers/runtime.js +1 -1
  38. package/package.json +1 -1
  39. package/skills/maximus/references/project.md +1 -1
@@ -1,4 +1,4 @@
1
- import { rr as Observer } from "../chunks/types-hP7p4Rsp.js";
1
+ import { rr as Observer } from "../chunks/types-CkaHVgDO.js";
2
2
  import { Static, Type } from "typebox";
3
3
  /** An analytics event: the allowlisted metadata of one operation call, flattened, with an id of its own. */
4
4
  export declare const ExecutionEventSchema: Type.TObject<{
package/dist/body.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { _ as readBodyText, c as isJsonMediaType, d as retryAfterSeconds, f as publicDestination, g as readBodyBytes, h as HttpBodyFailureReason, l as readJsonBody, m as HttpBodyFailure, p as BodyReadOptions, u as readJsonResponse } from "./chunks/types-hP7p4Rsp.js";
1
+ import { _ as readBodyText, c as isJsonMediaType, d as retryAfterSeconds, f as publicDestination, g as readBodyBytes, h as HttpBodyFailureReason, l as readJsonBody, m as HttpBodyFailure, p as BodyReadOptions, u as readJsonResponse } from "./chunks/types-CkaHVgDO.js";
2
2
  export { type BodyReadOptions, type HttpBodyFailure, type HttpBodyFailureReason, isJsonMediaType, publicDestination, readBodyBytes, readBodyText, readJsonBody, readJsonResponse, retryAfterSeconds };
@@ -1,4 +1,4 @@
1
- import { Ar as CaptureRecordSchema, Gn as CaptureConfig, Jn as CaptureSink, Kn as CaptureDimensions, Kt as RegisteredEnv, Wn as AnyContext, ct as withoutSecrets, kr as CaptureRecord, qn as CaptureInvocation } from "../chunks/types-hP7p4Rsp.js";
1
+ import { Ar as CaptureRecordSchema, Gn as CaptureConfig, Jn as CaptureSink, Kn as CaptureDimensions, Kt as RegisteredEnv, Wn as AnyContext, ct as withoutSecrets, kr as CaptureRecord, qn as CaptureInvocation } from "../chunks/types-CkaHVgDO.js";
2
2
  /** What `pipeline()` takes. */
3
3
  interface PipelineOptions<E> {
4
4
  /**
@@ -4,7 +4,7 @@ import { a as operationPathParameters, r as isInputHeaderName, t as createHttpRo
4
4
  import { R as holdsSecrets, T as hasUncompiledCodecs } from "./schemas-_UJcx_uY.js";
5
5
  import { t as pathParameterSchemas } from "./http-routes-B6tCsnxB.js";
6
6
  import { b as operationScopes, d as MAX_BODY_BYTES_CEILING, f as STANDARD_CODES, t as MAX_TASK_TTL_MS, x as isNamespacedScope } from "./tasks-CD-B6_nv.js";
7
- import { b as checkRoles, g as hasSchemaReferences, m as bundleSchemas, o as tokenAudiences, t as checkTokenAuthority } from "./tokens-CS3E9OGg.js";
7
+ import { b as checkRoles, g as hasSchemaReferences, m as bundleSchemas, o as tokenAudiences, t as checkTokenAuthority } from "./tokens-BtC4LJ8a.js";
8
8
  import { IsKind } from "typebox";
9
9
 
10
10
  // src/internal/exact-length.ts
@@ -1,4 +1,4 @@
1
- import { f as usesCloudflareAccess, l as usesOwnBearer } from "./tokens-CS3E9OGg.js";
1
+ import { f as usesCloudflareAccess, l as usesOwnBearer } from "./tokens-BtC4LJ8a.js";
2
2
 
3
3
  // src/internal/http-layout.ts
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  import { f as Value, t as admitInput } from "./validation-CpzAxj2_.js";
2
2
  import { B as withoutSecrets, R as holdsSecrets } from "./schemas-_UJcx_uY.js";
3
3
  import { i as standardErrors } from "./errors-BoutSmiy.js";
4
- import { a as isAttachmentSchema, o as validAttachment } from "./define-app-CRKaiTzi.js";
4
+ import { a as isAttachmentSchema, o as validAttachment } from "./define-app-DLftS8E6.js";
5
5
  import { b as operationScopes, c as ADMISSION_CODES, f as STANDARD_CODES, l as BODY_CODES, v as operationMatchesScopes, y as operationOutputLimit } from "./tasks-CD-B6_nv.js";
6
6
  import { t as err } from "./result-CF4OzG9O.js";
7
7
  import { t as sha256Hex } from "./digest-C51F1bhA.js";
@@ -1,4 +1,4 @@
1
- import { S as resolveRoles, _ as schemaIds, f as usesCloudflareAccess, h as canonical, m as bundleSchemas, s as tokenEndpoints } from "./tokens-CS3E9OGg.js";
1
+ import { S as resolveRoles, _ as schemaIds, f as usesCloudflareAccess, h as canonical, m as bundleSchemas, s as tokenEndpoints } from "./tokens-BtC4LJ8a.js";
2
2
  import { a as operationPathParameters } from "./http-paths-D043DkJv.js";
3
3
  import { L as wireInput } from "./schemas-_UJcx_uY.js";
4
4
  import { t as queryKind } from "./query-kind-CWKAXEME.js";
@@ -1,4 +1,4 @@
1
- import { n as createRpcOpenApi } from "./openapi-tJeJfq1G.js";
1
+ import { n as createRpcOpenApi } from "./openapi-7EYOVkFi.js";
2
2
  import { t as prepareConfiguredProject } from "./prepare-configured-Cithjf80.js";
3
3
  import { t as packageDirectory } from "./scaffold-BfrJN0Yk.js";
4
4
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
@@ -1,4 +1,4 @@
1
- import { a as ownsPrefix, i as nativePaths, t as VERSIONED_PATH } from "./http-layout-CB6MdZOO.js";
1
+ import { a as ownsPrefix, i as nativePaths, t as VERSIONED_PATH } from "./http-layout-CaZSEy2I.js";
2
2
 
3
3
  // src/project/pages.ts
4
4
  /**
@@ -1,8 +1,8 @@
1
- import { n as executeOperation, r as recordCapture, t as recordMeter } from "./meter-Mddtgv9_.js";
1
+ import { n as executeOperation, r as recordCapture, t as recordMeter } from "./meter-77troMd8.js";
2
2
  import { i as standardErrors } from "./errors-BoutSmiy.js";
3
- import { r as createHttpHandler } from "./src-DPB9t4u0.js";
3
+ import { r as createHttpHandler } from "./src-pzoGmAK9.js";
4
4
  import { r as ok, t as err } from "./result-CF4OzG9O.js";
5
- import { p as PrincipalSchema } from "./tokens-CS3E9OGg.js";
5
+ import { p as PrincipalSchema } from "./tokens-BtC4LJ8a.js";
6
6
  import { i as parseInput } from "./validation-CpzAxj2_.js";
7
7
  import { a as recordExecution, l as withTelemetry, o as reportUnexpected, s as telemetryEnabled } from "./telemetry-BtxJh69Q.js";
8
8
  import { r as isRequestId } from "./correlation-4b23a-a4.js";
@@ -2,7 +2,7 @@ import { d as MAX_BODY_BYTES_CEILING, h as mcpOpenWorld, v as operationMatchesSc
2
2
  import { o as reportUnexpected } from "./telemetry-BtxJh69Q.js";
3
3
  import { i as standardErrors } from "./errors-BoutSmiy.js";
4
4
  import { L as wireInput } from "./schemas-_UJcx_uY.js";
5
- import { h as canonical, v as standaloneSchema } from "./tokens-CS3E9OGg.js";
5
+ import { h as canonical, v as standaloneSchema } from "./tokens-BtC4LJ8a.js";
6
6
  import { t as toYaml } from "./yaml-Dk2L24yQ.js";
7
7
  import { a as mcpTask, n as attachTasks, o as toolResult, r as declaresTasks } from "./tasks-DELqUSq8.js";
8
8
  import { McpServer, ProtocolError, ProtocolErrorCode, createMcpHandler } from "@modelcontextprotocol/server";
@@ -1,14 +1,14 @@
1
- import { i as binaryBody, n as defineApp, r as attachmentResponse } from "./define-app-CRKaiTzi.js";
1
+ import { i as binaryBody, n as defineApp, r as attachmentResponse } from "./define-app-DLftS8E6.js";
2
2
  import { a as taskAccess, b as operationScopes, m as isPublicOperation, o as taskView, p as composeOperations, s as withTaskOperations, u as DEFAULT_MAX_BODY_BYTES, v as operationMatchesScopes } from "./tasks-CD-B6_nv.js";
3
3
  import { r as ok, t as err } from "./result-CF4OzG9O.js";
4
4
  import { i as standardErrors } from "./errors-BoutSmiy.js";
5
- import { c as tokenIssuer, i as presentedToken, n as createTokenAuthorization, o as tokenAudiences, u as isCrossSiteWrite } from "./tokens-CS3E9OGg.js";
6
- import { n as executeOperation, r as recordCapture, t as recordMeter } from "./meter-Mddtgv9_.js";
5
+ import { c as tokenIssuer, i as presentedToken, n as createTokenAuthorization, o as tokenAudiences, u as isCrossSiteWrite } from "./tokens-BtC4LJ8a.js";
6
+ import { n as executeOperation, r as recordCapture, t as recordMeter } from "./meter-77troMd8.js";
7
7
  import { t as createHttpRouteResolver } from "./http-paths-D043DkJv.js";
8
8
  import { r as readBodyText } from "./body-DOIHwIIl.js";
9
9
  import { t as sha256Hex } from "./digest-C51F1bhA.js";
10
- import { a as ownsPrefix, i as nativePaths, n as composition, o as servesCloudflareAccess, r as httpTransports, s as servesOwnBearer, t as VERSIONED_PATH } from "./http-layout-CB6MdZOO.js";
11
- import { i as queryKinds, r as queryInput, t as createOpenApi } from "./openapi-tJeJfq1G.js";
10
+ import { a as ownsPrefix, i as nativePaths, n as composition, o as servesCloudflareAccess, r as httpTransports, s as servesOwnBearer, t as VERSIONED_PATH } from "./http-layout-CaZSEy2I.js";
11
+ import { i as queryKinds, r as queryInput, t as createOpenApi } from "./openapi-7EYOVkFi.js";
12
12
  import { n as mediaType } from "./json-B14evE6-.js";
13
13
  import { t as toYaml } from "./yaml-Dk2L24yQ.js";
14
14
  import { a as recordExecution, i as recordAdmission, l as withTelemetry, o as reportUnexpected, s as telemetryEnabled } from "./telemetry-BtxJh69Q.js";
@@ -2,7 +2,7 @@ import { i as parseInput } from "./validation-CpzAxj2_.js";
2
2
  import { i as UuidSchema, n as OrganizationIdSchema, z as withoutSecretKeyword } from "./schemas-_UJcx_uY.js";
3
3
  import { t as isRecord } from "./record-DQUDTpEA.js";
4
4
  import { i as standardErrors } from "./errors-BoutSmiy.js";
5
- import { S as matchesScopes, b as operationScopes, m as isPublicOperation, v as operationMatchesScopes, x as isNamespacedScope } from "./tasks-CD-B6_nv.js";
5
+ import { S as matchesScopes, b as operationScopes, m as isPublicOperation, x as isNamespacedScope } from "./tasks-CD-B6_nv.js";
6
6
  import { r as ok, t as err } from "./result-CF4OzG9O.js";
7
7
  import { t as sha256Hex } from "./digest-C51F1bhA.js";
8
8
  import { Type } from "typebox";
@@ -65,8 +65,9 @@ function resolveRoles(application) {
65
65
  /**
66
66
  * Refuses roles an application cannot have, with a TypeError that names the role: more than `MAX_ROLES`, a
67
67
  * name that is not a word, an unknown field, a missing description, `all` beside `can` or `extends`, a role
68
- * extending an undeclared one or itself, a scope no public operation takes, a role that holds nothing, and
69
- * a public operation no role may call.
68
+ * extending an undeclared one or itself, a scope no public operation takes, and a role that holds nothing.
69
+ * Roles need not cover every public operation: one that takes a scope no role names is for whoever holds
70
+ * that scope otherwise, such as the service's staff or an organization's owner.
70
71
  */
71
72
  function checkRoles(application) {
72
73
  const { roles } = application;
@@ -84,8 +85,6 @@ function checkRoles(application) {
84
85
  }
85
86
  const resolved = resolveRoles(application);
86
87
  for (const [name, role] of Object.entries(resolved)) if (role.permissions.length === 0) throw new TypeError(`Role "${name}": it holds no scope.`);
87
- const held = Object.values(resolved).map((role) => role.permissions);
88
- for (const [operation, declared] of Object.entries(application.operations)) if (isPublicOperation(declared) && !held.some((permissions) => operationMatchesScopes(declared, permissions))) throw new TypeError(`Operation "${operation}": it is public and no role may call it.`);
89
88
  }
90
89
 
91
90
  // src/schema-bundle.ts
@@ -1134,7 +1134,12 @@ interface RoleDefinition<Name extends string = string> {
1134
1134
  * and `<namespace>:notes:write`. Each scope it names is one a public operation takes.
1135
1135
  */
1136
1136
  can?: Readonly<Record<string, readonly string[]>>;
1137
- /** Every scope a public operation takes. A role with it declares neither `can` nor `extends`. */
1137
+ /**
1138
+ * Every scope a public operation takes, the ones its handler checks included. A role with it declares
1139
+ * neither `can` nor `extends`. Only for a service whose public operations take no scope reserved for its own
1140
+ * staff or for a machine: where one does, as an alternative or a conditional scope, `all` would hand it to
1141
+ * whoever holds the role, so list `can` instead.
1142
+ */
1138
1143
  all?: true;
1139
1144
  }
1140
1145
  /** A service's roles by name: a lowercase kebab-case word, such as `viewer`. At most `MAX_ROLES`. */
@@ -1537,9 +1542,9 @@ interface AppManifest<Env, C, Ops extends Record<string, OperationShape>> {
1537
1542
  groups?: Readonly<Record<string, string>>;
1538
1543
  /**
1539
1544
  * The service's roles, from `defineRoles()`: at most three, each saying what it may do with the service's
1540
- * resources. `.build()` refuses a role that names a scope no public operation takes and a public operation
1541
- * no role may call; the OpenAPI document publishes each role with the scopes it holds. Omitted, the service
1542
- * declares no roles and who holds its scopes is decided elsewhere.
1545
+ * resources. `.build()` refuses a role that names a scope no public operation takes; the OpenAPI document
1546
+ * publishes each role with the scopes it holds. Omitted, the service declares no roles and who holds its
1547
+ * scopes is decided elsewhere.
1543
1548
  */
1544
1549
  roles?: RoleDefinitions;
1545
1550
  /**
@@ -1,4 +1,4 @@
1
- import { Cr as Principal, D as HttpRoute, E as HttpOptions, Kr as Failure, Pr as Result, dn as AppManifest, n as Static, r as TSchema, un as TaskStore, xn as OperationShape } from "./types-hP7p4Rsp.js";
1
+ import { Cr as Principal, D as HttpRoute, E as HttpOptions, Kr as Failure, Pr as Result, dn as AppManifest, n as Static, r as TSchema, un as TaskStore, xn as OperationShape } from "./types-CkaHVgDO.js";
2
2
  import { DurableObject, WorkerEntrypoint } from "cloudflare:workers";
3
3
  /** A Workers static-assets binding; product stores and secrets never satisfy this capability. */
4
4
  interface AssetBinding {
package/dist/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { F as Static, Kr as Failure, xn as OperationShape } from "./chunks/types-hP7p4Rsp.js";
1
+ import { F as Static, Kr as Failure, xn as OperationShape } from "./chunks/types-CkaHVgDO.js";
2
2
  /** What every HTTP operation answers: its data on success, its failure otherwise, and the request id. */
3
3
  export type Envelope<T> = {
4
4
  success: true;
@@ -1,4 +1,4 @@
1
- import { $r as TraceParent, Qr as DurableCorrelation, ar as diagnosticsEnabled, cr as telemetryEnabled, ei as createRequestId, ir as TelemetryConfig, lr as withDiagnostics, ni as isRequestId, nr as ExecutionObservation, or as recordExecution, ri as parseTraceParent, rr as Observer, sr as reportUnexpected, ti as durableCorrelation, tr as BackgroundContext } from "./chunks/types-hP7p4Rsp.js";
1
+ import { $r as TraceParent, Qr as DurableCorrelation, ar as diagnosticsEnabled, cr as telemetryEnabled, ei as createRequestId, ir as TelemetryConfig, lr as withDiagnostics, ni as isRequestId, nr as ExecutionObservation, or as recordExecution, ri as parseTraceParent, rr as Observer, sr as reportUnexpected, ti as durableCorrelation, tr as BackgroundContext } from "./chunks/types-CkaHVgDO.js";
2
2
  /**
3
3
  * What diagnostics may say about an error: its name, its causes' names, its issue count and its stack
4
4
  * locations.
package/dist/errors.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { Gr as ErrorFactory, Hr as DefinedErrors, Jr as FailureSchema, Kr as Failure, Ur as ErrorCatalog, Vr as CreateArguments, Wr as ErrorDefinition, Xr as resultSchema, Yr as defineErrors, Zr as standardErrors, ni as isRequestId, qr as FailureData } from "./chunks/types-hP7p4Rsp.js";
1
+ import { Gr as ErrorFactory, Hr as DefinedErrors, Jr as FailureSchema, Kr as Failure, Ur as ErrorCatalog, Vr as CreateArguments, Wr as ErrorDefinition, Xr as resultSchema, Yr as defineErrors, Zr as standardErrors, ni as isRequestId, qr as FailureData } from "./chunks/types-CkaHVgDO.js";
2
2
  export { CreateArguments, DefinedErrors, ErrorCatalog, ErrorDefinition, ErrorFactory, Failure, FailureData, FailureSchema, defineErrors, isRequestId, resultSchema, standardErrors };
@@ -1,2 +1,2 @@
1
- import { C as isPathParameterValue, S as isInputHeaderName, b as createHttpRouteResolver, v as HttpRouteDefinition, w as operationPathParameters, x as decodePathParameter, y as HttpRouteMatch } from "./chunks/types-hP7p4Rsp.js";
1
+ import { C as isPathParameterValue, S as isInputHeaderName, b as createHttpRouteResolver, v as HttpRouteDefinition, w as operationPathParameters, x as decodePathParameter, y as HttpRouteMatch } from "./chunks/types-CkaHVgDO.js";
2
2
  export { HttpRouteDefinition, HttpRouteMatch, createHttpRouteResolver, decodePathParameter, isInputHeaderName, isPathParameterValue, operationPathParameters };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as PageInfo, $t as defineContext, A as TransportContext, An as ResolvedRole, B as DeletedObject, Bn as TokenUsage, Br as AttachmentOutputSchema, Bt as HandlerArguments, Cn as isPublicOperation, Cr as Principal, D as HttpRoute, Dn as SchemaKeywords, Dr as OAuthResource, E as HttpOptions, En as operationScopes, Er as TokenPrincipal, Fn as BillingService, Fr as Success, Ft as ContextDeclaration, G as NamedReference, Gr as ErrorFactory, Gt as PreparedContext, H as EmailAddressSchema, Hn as UsageReceipt, Hr as DefinedErrors, Ht as HandlerHttp, In as LimitVerdict, Ir as err, It as DomainCode, J as PostalAddress, Jr as FailureSchema, Jt as SchemaOf, K as NamedReferenceSchema, Kr as Failure, Lr as isResult, Lt as Fail, M as projectAccessToken, Mn as RoleDefinitions, Mr as BodyFailure, Mt as parseSchema, N as EmptyInputSchema, Nn as defineRoles, Nr as FailureResult, Nt as AuthOptions, O as HttpTransport, Or as protectedResourceMetadata, P as OrganizationIdSchema, Pn as resolveRoles, Pr as Result, Pt as ContextArguments, Q as Page, Qt as defineAuth, R as UuidSchema, Rn as OperationMeter, Rr as ok, Rt as Failed, Sr as matchesScopes, T as HttpMiddleware, Tn as operationMatchesScopes, Tr as TokenClient, U as HexColorSchema, Ur as ErrorCatalog, Ut as HandlerMcp, V as DeletedObjectSchema, Vn as UsageEvent, Vt as HandlerDeclaration, W as HttpsUrlSchema, Wr as ErrorDefinition, Wt as HandlerOptions, X as SignedUrl, Xr as resultSchema, Xt as ToolDeclaration, Y as PostalAddressSchema, Yr as defineErrors, Yt as SchemaOrFields, Z as SignedUrlSchema, Zr as standardErrors, Zt as ToolOptions, _ as readBodyText, _n as McpSkill, _r as TokenSource, a as t, an as ApplicationBuilder, at as cursorKey, b as createHttpRouteResolver, bn as OperationScope, br as projectToken, c as isJsonMediaType, d as retryAfterSeconds, dn as AppManifest, dr as TokenAlgorithm, en as defineHandler, er as AdmissionObservation, et as PageInfoSchema, f as publicDestination, fn as Exposure, fr as TokenClaims, g as readBodyBytes, gn as McpGuide, gr as TokenScheme, h as HttpBodyFailureReason, hn as McpConfiguration, hr as TokenResolutionContext, i as Type, ir as TelemetryConfig, it as TPage, j as createHttpHandler, jn as RoleDefinition, jr as BinaryBody, jt as parseInput, k as RouteContext, kn as MAX_ROLES, l as readJsonBody, m as HttpBodyFailure, mn as InvocationAuthority, mr as TokenPolicy, n as Static, nn as defineTool, nr as ExecutionObservation, nt as PageQuery, o as createOpenApi, on as ApplicationConfiguration, ot as cutPage, p as BodyReadOptions, pn as Invocation, pr as TokenDevelopment, q as PhoneNumberSchema, qr as FailureData, qt as RouteBody, r as TSchema, rr as Observer, rt as PageQueryFields, s as createRpcOpenApi, sn as maximus, sr as reportUnexpected, st as pageLimit, tn as defineTelemetry, tr as BackgroundContext, tt as PageOrder, u as readJsonResponse, ur as TokenAccess, v as HttpRouteDefinition, vr as createTokenAuthorization, wr as PrincipalSchema, xn as OperationShape, xr as ScopeMatch, y as HttpRouteMatch, yn as OperationMiddleware, yr as createTokenVerifier, zn as SpendVerdict, zr as Attachment, zt as HandlerAnswer } from "./chunks/types-hP7p4Rsp.js";
1
+ import { $ as PageInfo, $t as defineContext, A as TransportContext, An as ResolvedRole, B as DeletedObject, Bn as TokenUsage, Br as AttachmentOutputSchema, Bt as HandlerArguments, Cn as isPublicOperation, Cr as Principal, D as HttpRoute, Dn as SchemaKeywords, Dr as OAuthResource, E as HttpOptions, En as operationScopes, Er as TokenPrincipal, Fn as BillingService, Fr as Success, Ft as ContextDeclaration, G as NamedReference, Gr as ErrorFactory, Gt as PreparedContext, H as EmailAddressSchema, Hn as UsageReceipt, Hr as DefinedErrors, Ht as HandlerHttp, In as LimitVerdict, Ir as err, It as DomainCode, J as PostalAddress, Jr as FailureSchema, Jt as SchemaOf, K as NamedReferenceSchema, Kr as Failure, Lr as isResult, Lt as Fail, M as projectAccessToken, Mn as RoleDefinitions, Mr as BodyFailure, Mt as parseSchema, N as EmptyInputSchema, Nn as defineRoles, Nr as FailureResult, Nt as AuthOptions, O as HttpTransport, Or as protectedResourceMetadata, P as OrganizationIdSchema, Pn as resolveRoles, Pr as Result, Pt as ContextArguments, Q as Page, Qt as defineAuth, R as UuidSchema, Rn as OperationMeter, Rr as ok, Rt as Failed, Sr as matchesScopes, T as HttpMiddleware, Tn as operationMatchesScopes, Tr as TokenClient, U as HexColorSchema, Ur as ErrorCatalog, Ut as HandlerMcp, V as DeletedObjectSchema, Vn as UsageEvent, Vt as HandlerDeclaration, W as HttpsUrlSchema, Wr as ErrorDefinition, Wt as HandlerOptions, X as SignedUrl, Xr as resultSchema, Xt as ToolDeclaration, Y as PostalAddressSchema, Yr as defineErrors, Yt as SchemaOrFields, Z as SignedUrlSchema, Zr as standardErrors, Zt as ToolOptions, _ as readBodyText, _n as McpSkill, _r as TokenSource, a as t, an as ApplicationBuilder, at as cursorKey, b as createHttpRouteResolver, bn as OperationScope, br as projectToken, c as isJsonMediaType, d as retryAfterSeconds, dn as AppManifest, dr as TokenAlgorithm, en as defineHandler, er as AdmissionObservation, et as PageInfoSchema, f as publicDestination, fn as Exposure, fr as TokenClaims, g as readBodyBytes, gn as McpGuide, gr as TokenScheme, h as HttpBodyFailureReason, hn as McpConfiguration, hr as TokenResolutionContext, i as Type, ir as TelemetryConfig, it as TPage, j as createHttpHandler, jn as RoleDefinition, jr as BinaryBody, jt as parseInput, k as RouteContext, kn as MAX_ROLES, l as readJsonBody, m as HttpBodyFailure, mn as InvocationAuthority, mr as TokenPolicy, n as Static, nn as defineTool, nr as ExecutionObservation, nt as PageQuery, o as createOpenApi, on as ApplicationConfiguration, ot as cutPage, p as BodyReadOptions, pn as Invocation, pr as TokenDevelopment, q as PhoneNumberSchema, qr as FailureData, qt as RouteBody, r as TSchema, rr as Observer, rt as PageQueryFields, s as createRpcOpenApi, sn as maximus, sr as reportUnexpected, st as pageLimit, tn as defineTelemetry, tr as BackgroundContext, tt as PageOrder, u as readJsonResponse, ur as TokenAccess, v as HttpRouteDefinition, vr as createTokenAuthorization, wr as PrincipalSchema, xn as OperationShape, xr as ScopeMatch, y as HttpRouteMatch, yn as OperationMiddleware, yr as createTokenVerifier, zn as SpendVerdict, zr as Attachment, zt as HandlerAnswer } from "./chunks/types-CkaHVgDO.js";
2
2
  export { type AdmissionObservation, type AppManifest, type ApplicationBuilder, type ApplicationConfiguration, type Attachment, AttachmentOutputSchema, type AuthOptions, type BackgroundContext, type BillingService, type BinaryBody, type BodyFailure, type BodyReadOptions, type ContextArguments, type ContextDeclaration, type DefinedErrors, type DeletedObject, DeletedObjectSchema, type DomainCode, EmailAddressSchema, EmptyInputSchema, type ErrorCatalog, type ErrorDefinition, type ErrorFactory, type ExecutionObservation, type Exposure, type Fail, type Failed, type Failure, type FailureData, type FailureResult, FailureSchema, type HandlerAnswer, type HandlerArguments, type HandlerDeclaration, type HandlerHttp, type HandlerMcp, type HandlerOptions, HexColorSchema, type HttpBodyFailure, type HttpBodyFailureReason, type HttpMiddleware, type HttpOptions, type HttpRoute, type HttpRouteDefinition, type HttpRouteMatch, type HttpTransport, HttpsUrlSchema, type Invocation, type InvocationAuthority, type LimitVerdict, MAX_ROLES, type McpConfiguration, type McpGuide, type McpSkill, type NamedReference, NamedReferenceSchema, type OAuthResource, type Observer, type OperationMeter, type OperationMiddleware, type OperationScope, type OperationShape, OrganizationIdSchema, Page, type PageInfo, PageInfoSchema, type PageOrder, type PageQuery, PageQueryFields, PhoneNumberSchema, type PostalAddress, PostalAddressSchema, type PreparedContext, type Principal, PrincipalSchema, type ResolvedRole, type Result, type RoleDefinition, type RoleDefinitions, type RouteBody, type RouteContext, type SchemaKeywords, type SchemaOf, type SchemaOrFields, type ScopeMatch, type SignedUrl, SignedUrlSchema, type SpendVerdict, type Static, type Success, type TPage, type TSchema, type TelemetryConfig, type TokenAccess, type TokenAlgorithm, type TokenClaims, type TokenClient, type TokenDevelopment, type TokenPolicy, type TokenPrincipal, type TokenResolutionContext, type TokenScheme, type TokenSource, type TokenUsage, type ToolDeclaration, type ToolOptions, type TransportContext, Type, type UsageEvent, type UsageReceipt, UuidSchema, createHttpHandler, createHttpRouteResolver, createOpenApi, createRpcOpenApi, createTokenAuthorization, createTokenVerifier, cursorKey, cutPage, defineAuth, defineContext, defineErrors, defineHandler, defineRoles, defineTelemetry, defineTool, err, isJsonMediaType, isPublicOperation, isResult, matchesScopes, maximus, ok, operationMatchesScopes, operationScopes, pageLimit, parseInput, parseSchema, projectAccessToken, projectToken, protectedResourceMetadata, publicDestination, readBodyBytes, readBodyText, readJsonBody, readJsonResponse, reportUnexpected, resolveRoles, resultSchema, retryAfterSeconds, standardErrors, t };
package/dist/index.js CHANGED
@@ -4,12 +4,12 @@ import { i as standardErrors, n as defineErrors, r as resultSchema, t as Failure
4
4
  import { n as readBodyBytes, r as readBodyText } from "./chunks/body-DOIHwIIl.js";
5
5
  import { t as createHttpRouteResolver } from "./chunks/http-paths-D043DkJv.js";
6
6
  import { S as matchesScopes, b as operationScopes, m as isPublicOperation, v as operationMatchesScopes } from "./chunks/tasks-CD-B6_nv.js";
7
- import { S as resolveRoles, a as projectToken, d as projectAccessToken, n as createTokenAuthorization, p as PrincipalSchema, r as createTokenVerifier, x as defineRoles, y as MAX_ROLES } from "./chunks/tokens-CS3E9OGg.js";
7
+ import { S as resolveRoles, a as projectToken, d as projectAccessToken, n as createTokenAuthorization, p as PrincipalSchema, r as createTokenVerifier, x as defineRoles, y as MAX_ROLES } from "./chunks/tokens-BtC4LJ8a.js";
8
8
  import { n as isResult, r as ok, t as err } from "./chunks/result-CF4OzG9O.js";
9
- import { a as maximus, i as protectedResourceMetadata, n as t, r as createHttpHandler, t as Type } from "./chunks/src-DPB9t4u0.js";
9
+ import { a as maximus, i as protectedResourceMetadata, n as t, r as createHttpHandler, t as Type } from "./chunks/src-pzoGmAK9.js";
10
10
  import { a as defineTelemetry, i as defineHandler, n as defineAuth, o as defineTool, r as defineContext } from "./chunks/handler-DSpyrWc-.js";
11
11
  import { o as reportUnexpected } from "./chunks/telemetry-BtxJh69Q.js";
12
- import { n as createRpcOpenApi, t as createOpenApi } from "./chunks/openapi-tJeJfq1G.js";
12
+ import { n as createRpcOpenApi, t as createOpenApi } from "./chunks/openapi-7EYOVkFi.js";
13
13
  import { a as retryAfterSeconds, i as readJsonResponse, r as readJsonBody, t as isJsonMediaType } from "./chunks/json-B14evE6-.js";
14
14
  import { t as publicDestination } from "./chunks/destination-5xTX0b7E.js";
15
15
 
@@ -1,2 +1,2 @@
1
- import { $n as executeOperation, A as TransportContext, E as HttpOptions, En as operationScopes, Gn as CaptureConfig, Ln as MeteredCall, O as HttpTransport, Qn as ExecutionCall, Sn as composeOperations, Un as recordMeter, Xn as VerifiedCaller, Yn as CapturedCall, Zn as recordCapture, b as createHttpRouteResolver, cr as telemetryEnabled, dn as AppManifest, ir as TelemetryConfig, lr as withDiagnostics, mn as InvocationAuthority, or as recordExecution, pn as Invocation, t as defineApp, tr as BackgroundContext, v as HttpRouteDefinition, wn as operation, xn as OperationShape, y as HttpRouteMatch, yn as OperationMiddleware } from "./chunks/types-hP7p4Rsp.js";
1
+ import { $n as executeOperation, A as TransportContext, E as HttpOptions, En as operationScopes, Gn as CaptureConfig, Ln as MeteredCall, O as HttpTransport, Qn as ExecutionCall, Sn as composeOperations, Un as recordMeter, Xn as VerifiedCaller, Yn as CapturedCall, Zn as recordCapture, b as createHttpRouteResolver, cr as telemetryEnabled, dn as AppManifest, ir as TelemetryConfig, lr as withDiagnostics, mn as InvocationAuthority, or as recordExecution, pn as Invocation, t as defineApp, tr as BackgroundContext, v as HttpRouteDefinition, wn as operation, xn as OperationShape, y as HttpRouteMatch, yn as OperationMiddleware } from "./chunks/types-CkaHVgDO.js";
2
2
  export { type AppManifest, type BackgroundContext, type CaptureConfig, type CapturedCall, type ExecutionCall, type HttpOptions, type HttpRouteDefinition, type HttpRouteMatch, type HttpTransport, type Invocation, type InvocationAuthority, type MeteredCall, type OperationMiddleware, type OperationShape, type TelemetryConfig, type TransportContext, type VerifiedCaller, composeOperations, createHttpRouteResolver, defineApp, executeOperation, operation, operationScopes, recordCapture, recordExecution, recordMeter, telemetryEnabled, withDiagnostics };
package/dist/internals.js CHANGED
@@ -1,5 +1,5 @@
1
- import { n as executeOperation, r as recordCapture, t as recordMeter } from "./chunks/meter-Mddtgv9_.js";
2
- import { n as defineApp } from "./chunks/define-app-CRKaiTzi.js";
1
+ import { n as executeOperation, r as recordCapture, t as recordMeter } from "./chunks/meter-77troMd8.js";
2
+ import { n as defineApp } from "./chunks/define-app-DLftS8E6.js";
3
3
  import { b as operationScopes, g as operation, p as composeOperations } from "./chunks/tasks-CD-B6_nv.js";
4
4
  import { a as recordExecution, c as withDiagnostics, s as telemetryEnabled } from "./chunks/telemetry-BtxJh69Q.js";
5
5
  import { t as createHttpRouteResolver } from "./chunks/http-paths-D043DkJv.js";
@@ -1,4 +1,4 @@
1
- import { O as HttpTransport } from "../chunks/types-hP7p4Rsp.js";
1
+ import { O as HttpTransport } from "../chunks/types-CkaHVgDO.js";
2
2
  /**
3
3
  * The MCP transport, for `createWorker(app, { transports: [mcp()] })`: serves the operations that declare
4
4
  * `mcp` as tools over Streamable HTTP at `/mcp` (or `path`), with the OpenAPI document and guides as
package/dist/mcp/index.js CHANGED
@@ -13,7 +13,7 @@ function mcp(options = {}) {
13
13
  scope: (namespace) => `${namespace}:mcp:use`,
14
14
  maxBodyBytes: (operations, fallback) => Math.max(fallback, ...operations.flatMap(([, op]) => op.mcp ? [op.maxBodyBytes ?? fallback] : [])),
15
15
  async handle(context) {
16
- const { handleMcp } = await import("../chunks/server-D49V-Sd4.js");
16
+ const { handleMcp } = await import("../chunks/server-1mO5c8-V.js");
17
17
  return handleMcp(context);
18
18
  }
19
19
  };
@@ -1,4 +1,4 @@
1
- import { Kr as Failure, Pr as Result, cn as TaskAccess, ln as TaskRecord } from "../chunks/types-hP7p4Rsp.js";
1
+ import { Kr as Failure, Pr as Result, cn as TaskAccess, ln as TaskRecord } from "../chunks/types-CkaHVgDO.js";
2
2
  import { CallToolResult, McpServer } from "@modelcontextprotocol/server";
3
3
  /** The Tasks extension's id, which a client declares on each request and a server among its capabilities. */
4
4
  export declare const TASKS_EXTENSION = "io.modelcontextprotocol/tasks";
@@ -1,4 +1,4 @@
1
- import { Ft as ContextDeclaration, Rn as OperationMeter, T as HttpMiddleware, Vt as HandlerDeclaration, Xt as ToolDeclaration, an as ApplicationBuilder, dn as AppManifest, fn as Exposure, pn as Invocation, vn as OperationHandler, xn as OperationShape, yn as OperationMiddleware } from "../chunks/types-hP7p4Rsp.js";
1
+ import { Ft as ContextDeclaration, Rn as OperationMeter, T as HttpMiddleware, Vt as HandlerDeclaration, Xt as ToolDeclaration, an as ApplicationBuilder, dn as AppManifest, fn as Exposure, pn as Invocation, vn as OperationHandler, xn as OperationShape, yn as OperationMiddleware } from "../chunks/types-CkaHVgDO.js";
2
2
  import { TSchema } from "typebox";
3
3
  /** A route's HTTP method. */
4
4
  type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
@@ -1,5 +1,5 @@
1
- import { D as HttpRoute, dn as AppManifest, xn as OperationShape } from "../chunks/types-hP7p4Rsp.js";
2
- import { n as WorkerOptions, r as WorkerRuntime } from "../chunks/workers-types-qWuu8LZ0.js";
1
+ import { D as HttpRoute, dn as AppManifest, xn as OperationShape } from "../chunks/types-CkaHVgDO.js";
2
+ import { n as WorkerOptions, r as WorkerRuntime } from "../chunks/workers-types-BjNko_ZU.js";
3
3
  /** File modules use native Workers handlers; unmatched events fail instead of disappearing. */
4
4
  type Handlers<E> = Omit<ExportedHandler<E>, 'fetch'>;
5
5
  /** One schedule, declared beside the code it runs. Configure its trigger in Cloudflare as well. */
@@ -1,6 +1,6 @@
1
1
  import { i as standardErrors } from "../chunks/errors-BoutSmiy.js";
2
- import { r as createAssetHandler, t as createWorker } from "../chunks/runtime-D-yNrgEP.js";
3
- import { t as checkPagePaths } from "../chunks/pages-DzAPVx2p.js";
2
+ import { r as createAssetHandler, t as createWorker } from "../chunks/runtime-B7DDXiOv.js";
3
+ import { t as checkPagePaths } from "../chunks/pages-DEnVoMAV.js";
4
4
 
5
5
  // src/project/handlers.ts
6
6
  /** Compose file handlers with explicit fallbacks, preserving the platform's execution context. */
package/dist/schemas.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as PageInfo, At as decodeSchema, B as DeletedObject, Br as AttachmentOutputSchema, Ct as stripObject, Dn as SchemaKeywords, Dt as SchemaValidationError, Et as SchemaIssue, F as Static, G as NamedReference, H as EmailAddressSchema, I as TSchema, J as PostalAddress, K as NamedReferenceSchema, L as Type, Mt as parseSchema, N as EmptyInputSchema, On as StaticDecode, Ot as InputIssue, P as OrganizationIdSchema, Q as Page, R as UuidSchema, St as strictObject, Tt as urlSchema, U as HexColorSchema, V as DeletedObjectSchema, W as HttpsUrlSchema, X as SignedUrl, Y as PostalAddressSchema, Z as SignedUrlSchema, _t as literalUnion, at as cursorKey, bt as pipeSchema, ct as withoutSecrets, dt as readSchema, et as PageInfoSchema, ft as SchemaInput, gt as inspectSchema, ht as inputSchema, it as TPage, jt as parseInput, kt as decodeInput, lt as Checked, mt as extendObject, nt as PageQuery, ot as cutPage, pt as defaultSchema, q as PhoneNumberSchema, rt as PageQueryFields, st as pageLimit, tt as PageOrder, ut as checkSchema, vt as looseObject, wt as transformSchema, xt as refineSchema, yt as normalizeSchema, z as t, zr as Attachment } from "./chunks/types-hP7p4Rsp.js";
1
+ import { $ as PageInfo, At as decodeSchema, B as DeletedObject, Br as AttachmentOutputSchema, Ct as stripObject, Dn as SchemaKeywords, Dt as SchemaValidationError, Et as SchemaIssue, F as Static, G as NamedReference, H as EmailAddressSchema, I as TSchema, J as PostalAddress, K as NamedReferenceSchema, L as Type, Mt as parseSchema, N as EmptyInputSchema, On as StaticDecode, Ot as InputIssue, P as OrganizationIdSchema, Q as Page, R as UuidSchema, St as strictObject, Tt as urlSchema, U as HexColorSchema, V as DeletedObjectSchema, W as HttpsUrlSchema, X as SignedUrl, Y as PostalAddressSchema, Z as SignedUrlSchema, _t as literalUnion, at as cursorKey, bt as pipeSchema, ct as withoutSecrets, dt as readSchema, et as PageInfoSchema, ft as SchemaInput, gt as inspectSchema, ht as inputSchema, it as TPage, jt as parseInput, kt as decodeInput, lt as Checked, mt as extendObject, nt as PageQuery, ot as cutPage, pt as defaultSchema, q as PhoneNumberSchema, rt as PageQueryFields, st as pageLimit, tt as PageOrder, ut as checkSchema, vt as looseObject, wt as transformSchema, xt as refineSchema, yt as normalizeSchema, z as t, zr as Attachment } from "./chunks/types-CkaHVgDO.js";
2
2
  export { type Attachment, AttachmentOutputSchema, type Checked, type DeletedObject, DeletedObjectSchema, EmailAddressSchema, EmptyInputSchema, HexColorSchema, HttpsUrlSchema, type InputIssue, type NamedReference, NamedReferenceSchema, OrganizationIdSchema, Page, type PageInfo, PageInfoSchema, type PageOrder, type PageQuery, PageQueryFields, PhoneNumberSchema, type PostalAddress, PostalAddressSchema, type SchemaInput, type SchemaIssue, type SchemaKeywords, SchemaValidationError, type SignedUrl, SignedUrlSchema, type Static, type StaticDecode, type TPage, type TSchema, Type, UuidSchema, checkSchema, cursorKey, cutPage, decodeInput, decodeSchema, defaultSchema, extendObject, inputSchema, inspectSchema, literalUnion, looseObject, normalizeSchema, pageLimit, parseInput, parseSchema, pipeSchema, readSchema, refineSchema, strictObject, stripObject, t, transformSchema, urlSchema, withoutSecrets };
@@ -1,2 +1,2 @@
1
- import { in as StandardFailure, rn as STANDARD_FAILURES } from "./chunks/types-hP7p4Rsp.js";
1
+ import { in as StandardFailure, rn as STANDARD_FAILURES } from "./chunks/types-CkaHVgDO.js";
2
2
  export { STANDARD_FAILURES, StandardFailure };
@@ -139,7 +139,7 @@ async function run() {
139
139
  return;
140
140
  }
141
141
  case "openapi": {
142
- const { writeOpenApi } = await import("../chunks/openapi-file-D1Fz9-oO.js");
142
+ const { writeOpenApi } = await import("../chunks/openapi-file-DK8aTUmo.js");
143
143
  const written = await writeOpenApi(rest[0] ?? ".", {
144
144
  ...values.out === void 0 ? {} : { out: values.out },
145
145
  check: values.check
@@ -1,4 +1,4 @@
1
- import { Mn as RoleDefinitions, dr as TokenAlgorithm, mr as TokenPolicy, pr as TokenDevelopment } from "../chunks/types-hP7p4Rsp.js";
1
+ import { Mn as RoleDefinitions, dr as TokenAlgorithm, mr as TokenPolicy, pr as TokenDevelopment } from "../chunks/types-CkaHVgDO.js";
2
2
  import { WorkerConfig } from "cf/config";
3
3
  import { Plugin } from "vite";
4
4
  /** Where the Worker runs: `development` under `vp dev`, `production` in every build. */
@@ -57,8 +57,8 @@ interface MaximusOptions extends Omit<WorkerConfig, 'name' | 'entrypoint' | 'env
57
57
  groups?: Readonly<Record<string, string>>;
58
58
  /**
59
59
  * The service's roles, from `defineRoles()`: at most three, each saying what it may do with the service's
60
- * resources. The build refuses a role that names a scope no public route takes and a public route no role
61
- * may call; OpenAPI publishes each role with the scopes it holds.
60
+ * resources. The build refuses a role that names a scope no public route takes; OpenAPI publishes each
61
+ * role with the scopes it holds.
62
62
  */
63
63
  roles?: RoleDefinitions;
64
64
  /** The version OpenAPI, the MCP server and `/health` report; by default, the package's version. */
@@ -1,9 +1,9 @@
1
1
  import { a as operationPathParameters } from "../chunks/http-paths-D043DkJv.js";
2
- import { a as ownsPrefix, t as VERSIONED_PATH } from "../chunks/http-layout-CB6MdZOO.js";
2
+ import { a as ownsPrefix, t as VERSIONED_PATH } from "../chunks/http-layout-CaZSEy2I.js";
3
3
  import { t as routeName } from "../chunks/names-ncD7A3DV.js";
4
- import { t as checkPagePaths } from "../chunks/pages-DzAPVx2p.js";
4
+ import { t as checkPagePaths } from "../chunks/pages-DEnVoMAV.js";
5
5
  import { a as projectPath, i as projectFiles, o as publicFiles, r as compareNames, s as routeShape, t as PROJECT_DIRECTORIES } from "../chunks/project-files-C0OX7MQQ.js";
6
- import { t as checkMcpResourceNames } from "../chunks/define-app-CRKaiTzi.js";
6
+ import { t as checkMcpResourceNames } from "../chunks/define-app-DLftS8E6.js";
7
7
  import { existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
8
8
  import { dirname, join, posix, relative, resolve, sep } from "node:path";
9
9
  import { fileURLToPath } from "node:url";
@@ -1,4 +1,4 @@
1
- import { Kr as Failure, Pr as Result } from "./chunks/types-hP7p4Rsp.js";
1
+ import { Kr as Failure, Pr as Result } from "./chunks/types-CkaHVgDO.js";
2
2
  /** Why a webhook signature was refused: absent, malformed, outside the time tolerance, or not matching. */
3
3
  export declare const WEBHOOK_SIGNATURE_FAILURES: readonly ['missing', 'malformed', 'expired', 'mismatch'];
4
4
  /** Why a webhook signature was refused. */
@@ -1,2 +1,2 @@
1
- import { a as credentials, i as createWorker, n as WorkerOptions, o as WorkerAssetsOptions, r as WorkerRuntime, t as RpcMethods } from "../chunks/workers-types-qWuu8LZ0.js";
1
+ import { a as credentials, i as createWorker, n as WorkerOptions, o as WorkerAssetsOptions, r as WorkerRuntime, t as RpcMethods } from "../chunks/workers-types-BjNko_ZU.js";
2
2
  export { RpcMethods, type WorkerAssetsOptions, WorkerOptions, WorkerRuntime, createWorker, credentials };
@@ -1,3 +1,3 @@
1
- import { n as credentials, t as createWorker } from "../chunks/runtime-D-yNrgEP.js";
1
+ import { n as credentials, t as createWorker } from "../chunks/runtime-B7DDXiOv.js";
2
2
 
3
3
  export { createWorker, credentials };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/maximus",
3
- "version": "8.7.0",
3
+ "version": "8.7.1",
4
4
  "description": "Maximus: define a service once and serve it over HTTP, MCP and Worker RPC on Cloudflare Workers, configured in vite.config.ts, with its OpenAPI and CLI.",
5
5
  "keywords": [
6
6
  "api",
@@ -29,7 +29,7 @@ export default defineConfig({
29
29
  | `name` | The Worker's name, the MCP server's and the scopes' prefix: lowercase letters, digits and single hyphens. By default, the package's name without its scope. |
30
30
  | `namespace`, `title`, `version` | The scopes' prefix (the name), the human name (the name), the version `/health` reports (the package's). |
31
31
  | `description`, `groups` | The OpenAPI document's description of the service, and of each group of routes by its name: `{ Notes: "The notes of the caller's organization." }`. |
32
- | `roles` | The service's roles, from `defineRoles()`: at most three, each `{ description, can?, extends?, all? }`. `can: { read: ['notes'] }` holds `notes:notes:read`; `all: true` holds every public scope. The build refuses a scope no public route takes and a public route no role may call; OpenAPI publishes them as `x-maximus-roles`. Only a service people hold roles in declares them. |
32
+ | `roles` | The service's roles, from `defineRoles()`: at most three, each `{ description, can?, extends?, all? }`. `can: { read: ['notes'] }` holds `notes:notes:read`; `all: true` holds every public scope. The build refuses a scope no public route takes; OpenAPI publishes them as `x-maximus-roles`. Never `all` where a public route also admits a staff or machine scope: it would hold that scope too. Only a service people hold roles in declares them. |
33
33
  | `rpc` | `{ callers: ['example-orders'] }`: the services allowed to call RPC methods, by the `caller` their binding's props name, which is the calling service's `name`. None by default. |
34
34
  | `services` | `{ PRICING: { worker: 'example-pricing', openapi: '../pricing/openapi.rpc.json' } }`: other Maximus services this one calls over RPC, each bound to its Worker's `Service` entrypoint with this service as the caller, and typed from the RPC document it publishes. See [transports.md](transports.md#worker-rpc). |
35
35
  | `http` | `{ basePath, healthPath }`: `/api` and `/health` by default. |