@arbol-ai/maximus 8.0.0 → 8.0.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/analytics/analytics.d.ts +1 -1
- package/dist/body.d.ts +1 -1
- package/dist/chunks/{define-app-CfVZBt7D.js → define-app-x7uY70_1.js} +8 -3
- package/dist/chunks/{errors-WfyKhiyk.js → errors-C5w9WY1l.js} +1 -1
- package/dist/chunks/{execution-CfZEx_JP.js → execution-rOiLo8VG.js} +3 -3
- package/dist/chunks/{handler-DWTGoduQ.js → handler-iebR-urt.js} +1 -0
- package/dist/chunks/{http-layout-_h7xwgPC.js → http-layout-DS8DnPyu.js} +1 -1
- package/dist/chunks/{openapi-CV0KmJpS.js → openapi-CeolxIqa.js} +2 -2
- package/dist/chunks/{openapi-file-OjSs9mRv.js → openapi-file-Bz9FRaE6.js} +1 -1
- package/dist/chunks/{pages-DyC0m8Zb.js → pages-iZTvFs5a.js} +1 -1
- package/dist/chunks/{runtime-CVVf5hmp.js → runtime-D94vx21X.js} +4 -4
- package/dist/chunks/{server-CCc7fil4.js → server-Bzf1Q1_4.js} +2 -2
- package/dist/chunks/{src--HZrH1U9.js → src-CPrJpbOM.js} +11 -6
- package/dist/chunks/{standard-failures-CLjxS2ea.js → standard-failures-Lh4mSfwG.js} +1 -1
- package/dist/chunks/{types-BQYB4Ads.d.ts → types-DTIuIEJ-.d.ts} +9 -3
- package/dist/chunks/{workers-types-iONp32T4.d.ts → workers-types-BRk_Xa_5.d.ts} +1 -1
- package/dist/diagnostics.d.ts +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js +1 -1
- package/dist/http-paths.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/internals.d.ts +1 -1
- package/dist/internals.js +3 -3
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/project/config.d.ts +1 -1
- package/dist/project/config.js +1 -1
- package/dist/project/index.d.ts +2 -2
- package/dist/project/index.js +3 -3
- package/dist/schemas.d.ts +1 -1
- package/dist/standard-failures.d.ts +1 -1
- package/dist/standard-failures.js +1 -1
- package/dist/tooling/cli.js +1 -1
- package/dist/vite/index.d.ts +2 -2
- package/dist/vite/index.js +3 -3
- package/dist/webhooks.d.ts +1 -1
- package/dist/workers/runtime.d.ts +1 -1
- package/dist/workers/runtime.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Sn as Observer } from "../chunks/types-
|
|
1
|
+
import { Sn as Observer } from "../chunks/types-DTIuIEJ-.js";
|
|
2
2
|
import { Static } from "@sinclair/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: import("@sinclair/typebox").TObject<{
|
package/dist/body.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as readBodyText, d as readJsonResponse, f as retryAfterSeconds, g as readBodyBytes, h as HttpBodyFailureReason, l as isJsonMediaType, m as HttpBodyFailure, p as BodyReadOptions, u as readJsonBody } from "./chunks/types-
|
|
1
|
+
import { _ as readBodyText, d as readJsonResponse, f as retryAfterSeconds, g as readBodyBytes, h as HttpBodyFailureReason, l as isJsonMediaType, m as HttpBodyFailure, p as BodyReadOptions, u as readJsonBody } from "./chunks/types-DTIuIEJ-.js";
|
|
2
2
|
export { type BodyReadOptions, type HttpBodyFailure, type HttpBodyFailureReason, isJsonMediaType, readBodyBytes, readBodyText, readJsonBody, readJsonResponse, retryAfterSeconds };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { u as hasUncompiledCodecs } from "./validation-fTohBT6R.js";
|
|
2
|
-
import { i as standardErrors } from "./errors-
|
|
2
|
+
import { i as standardErrors } from "./errors-C5w9WY1l.js";
|
|
3
3
|
import { n as readBodyBytes } from "./body-DOIHwIIl.js";
|
|
4
4
|
import { a as operationPathParameters, r as isInputHeaderName, t as createHttpRouteResolver } from "./http-paths-DMBxwpp6.js";
|
|
5
5
|
import { i as pathParameterSchemas } from "./result-CKgZHrnj.js";
|
|
6
|
-
import { C as MAX_BODY_BYTES_CEILING, M as isNamespacedScope, f as hasSchemaReferences, j as operationScopes, r as checkTokenAuthority, s as tokenAudiences, t as createOpenApi, w as STANDARD_CODES } from "./openapi-
|
|
6
|
+
import { C as MAX_BODY_BYTES_CEILING, M as isNamespacedScope, f as hasSchemaReferences, j as operationScopes, r as checkTokenAuthority, s as tokenAudiences, t as createOpenApi, w as STANDARD_CODES } from "./openapi-CeolxIqa.js";
|
|
7
7
|
import { Kind } from "@sinclair/typebox";
|
|
8
8
|
|
|
9
9
|
// src/internal/exact-length.ts
|
|
@@ -101,7 +101,7 @@ function validAttachment(value, maxBytes) {
|
|
|
101
101
|
*/
|
|
102
102
|
function attachmentResponse(file, status = 200) {
|
|
103
103
|
const encodedFilename = encodeURIComponent(file.filename).replaceAll(/[!'()*]/gu, (character) => `%${character.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
104
|
-
const body = file.body instanceof Uint8Array ? file.body :
|
|
104
|
+
const body = file.body instanceof Uint8Array ? file.body : attachmentStream(file.body, file.byteLength);
|
|
105
105
|
return new Response(body, {
|
|
106
106
|
status,
|
|
107
107
|
headers: {
|
|
@@ -114,6 +114,11 @@ function attachmentResponse(file, status = 200) {
|
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
|
+
/** Workers determines Content-Length from the body, ignoring a header on an ordinary stream. */
|
|
118
|
+
function attachmentStream(body, byteLength) {
|
|
119
|
+
const bounded = exactLength(body, byteLength);
|
|
120
|
+
return typeof FixedLengthStream === "function" ? bounded.pipeThrough(new FixedLengthStream(byteLength)) : bounded;
|
|
121
|
+
}
|
|
117
122
|
|
|
118
123
|
// src/define-app.ts
|
|
119
124
|
/** Names a Worker entrypoint already uses, or that would break a class or a promise. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as STANDARD_FAILURES } from "./standard-failures-
|
|
1
|
+
import { t as STANDARD_FAILURES } from "./standard-failures-Lh4mSfwG.js";
|
|
2
2
|
import { i as parseSchema } from "./validation-fTohBT6R.js";
|
|
3
3
|
import { Type } from "@sinclair/typebox";
|
|
4
4
|
import { Value } from "@sinclair/typebox/value";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as decodeInput } from "./validation-fTohBT6R.js";
|
|
2
|
-
import { i as standardErrors } from "./errors-
|
|
3
|
-
import { a as isAttachmentSchema, o as validAttachment } from "./define-app-
|
|
2
|
+
import { i as standardErrors } from "./errors-C5w9WY1l.js";
|
|
3
|
+
import { a as isAttachmentSchema, o as validAttachment } from "./define-app-x7uY70_1.js";
|
|
4
4
|
import { t as err } from "./result-CKgZHrnj.js";
|
|
5
|
-
import { A as operationOutputLimit, b as ADMISSION_CODES, k as operationMatchesScopes, w as STANDARD_CODES, x as BODY_CODES } from "./openapi-
|
|
5
|
+
import { A as operationOutputLimit, b as ADMISSION_CODES, k as operationMatchesScopes, w as STANDARD_CODES, x as BODY_CODES } from "./openapi-CeolxIqa.js";
|
|
6
6
|
import { a as telemetryEnabled, i as reportUnexpected } from "./telemetry-C3LfZcOB.js";
|
|
7
7
|
import { Value } from "@sinclair/typebox/value";
|
|
8
8
|
|
|
@@ -103,6 +103,7 @@ function isContextDeclaration(value) {
|
|
|
103
103
|
/** The fields `auth.ts` states: code. The issuer, audience, scheme and every other field are configuration. */
|
|
104
104
|
const AUTH_FIELDS = /* @__PURE__ */ new Set([
|
|
105
105
|
"resolve",
|
|
106
|
+
"challenge",
|
|
106
107
|
"resourceMetadataUrl",
|
|
107
108
|
"resources"
|
|
108
109
|
]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as STANDARD_FAILURES } from "./standard-failures-
|
|
1
|
+
import { t as STANDARD_FAILURES } from "./standard-failures-Lh4mSfwG.js";
|
|
2
2
|
import { S as wireInput, r as parseInput } from "./validation-fTohBT6R.js";
|
|
3
|
-
import { i as standardErrors } from "./errors-
|
|
3
|
+
import { i as standardErrors } from "./errors-C5w9WY1l.js";
|
|
4
4
|
import { a as operationPathParameters } from "./http-paths-DMBxwpp6.js";
|
|
5
5
|
import { a as routeGroup, i as pathParameterSchemas, r as ok, t as err } from "./result-CKgZHrnj.js";
|
|
6
6
|
import { t as isRecord } from "./record-DQUDTpEA.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as createRpcOpenApi } from "./openapi-
|
|
1
|
+
import { n as createRpcOpenApi } from "./openapi-CeolxIqa.js";
|
|
2
2
|
import { t as prepareConfiguredProject } from "./prepare-configured-Cithjf80.js";
|
|
3
3
|
import { t as packageDirectory } from "./scaffold-DZD6dfoZ.js";
|
|
4
4
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as parseInput } from "./validation-fTohBT6R.js";
|
|
2
2
|
import { r as isRequestId } from "./correlation-4b23a-a4.js";
|
|
3
|
-
import { i as standardErrors } from "./errors-
|
|
3
|
+
import { i as standardErrors } from "./errors-C5w9WY1l.js";
|
|
4
4
|
import { r as ok, t as err } from "./result-CKgZHrnj.js";
|
|
5
|
-
import { y as PrincipalSchema } from "./openapi-
|
|
6
|
-
import { r as createHttpHandler } from "./src
|
|
5
|
+
import { y as PrincipalSchema } from "./openapi-CeolxIqa.js";
|
|
6
|
+
import { r as createHttpHandler } from "./src-CPrJpbOM.js";
|
|
7
7
|
import { a as telemetryEnabled, i as reportUnexpected, r as recordExecution, s as withTelemetry } from "./telemetry-C3LfZcOB.js";
|
|
8
|
-
import { t as executeOperation } from "./execution-
|
|
8
|
+
import { t as executeOperation } from "./execution-rOiLo8VG.js";
|
|
9
9
|
import { DurableObject, WorkerEntrypoint, tracing } from "cloudflare:workers";
|
|
10
10
|
|
|
11
11
|
// src/workers/assets.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as wireInput } from "./validation-fTohBT6R.js";
|
|
2
|
-
import { i as standardErrors } from "./errors-
|
|
3
|
-
import { C as MAX_BODY_BYTES_CEILING, D as mcpOpenWorld, d as canonical, k as operationMatchesScopes, p as standaloneSchema, u as sha256Hex } from "./openapi-
|
|
2
|
+
import { i as standardErrors } from "./errors-C5w9WY1l.js";
|
|
3
|
+
import { C as MAX_BODY_BYTES_CEILING, D as mcpOpenWorld, d as canonical, k as operationMatchesScopes, p as standaloneSchema, u as sha256Hex } from "./openapi-CeolxIqa.js";
|
|
4
4
|
import { i as reportUnexpected } from "./telemetry-C3LfZcOB.js";
|
|
5
5
|
import { t as toYaml } from "./yaml-Dk2L24yQ.js";
|
|
6
6
|
import { Type } from "@sinclair/typebox";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { i as standardErrors } from "./errors-
|
|
1
|
+
import { i as standardErrors } from "./errors-C5w9WY1l.js";
|
|
2
2
|
import { r as readBodyText } from "./body-DOIHwIIl.js";
|
|
3
|
-
import { i as binaryBody, n as defineApp, r as attachmentResponse } from "./define-app-
|
|
3
|
+
import { i as binaryBody, n as defineApp, r as attachmentResponse } from "./define-app-x7uY70_1.js";
|
|
4
4
|
import { t as createHttpRouteResolver } from "./http-paths-DMBxwpp6.js";
|
|
5
5
|
import { r as ok, t as err } from "./result-CKgZHrnj.js";
|
|
6
|
-
import { E as isPublicOperation, S as DEFAULT_MAX_BODY_BYTES, T as composeOperations, c as tokenIssuer, g as isCrossSiteWrite, h as queryKinds, i as createTokenAuthorization, j as operationScopes, k as operationMatchesScopes, m as queryInput, s as tokenAudiences, t as createOpenApi, u as sha256Hex } from "./openapi-
|
|
6
|
+
import { E as isPublicOperation, S as DEFAULT_MAX_BODY_BYTES, T as composeOperations, c as tokenIssuer, g as isCrossSiteWrite, h as queryKinds, i as createTokenAuthorization, j as operationScopes, k as operationMatchesScopes, m as queryInput, s as tokenAudiences, t as createOpenApi, u as sha256Hex } from "./openapi-CeolxIqa.js";
|
|
7
7
|
import { a as telemetryEnabled, i as reportUnexpected, n as recordAdmission, r as recordExecution, s as withTelemetry } from "./telemetry-C3LfZcOB.js";
|
|
8
|
-
import { t as executeOperation } from "./execution-
|
|
9
|
-
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-
|
|
8
|
+
import { t as executeOperation } from "./execution-rOiLo8VG.js";
|
|
9
|
+
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-DS8DnPyu.js";
|
|
10
10
|
import { n as mediaType } from "./json-B14evE6-.js";
|
|
11
11
|
import { t as toYaml } from "./yaml-Dk2L24yQ.js";
|
|
12
12
|
import { Type as Type$1, Type as t } from "@sinclair/typebox";
|
|
@@ -217,7 +217,12 @@ function createHttpHandler(manifest, hooks = {}) {
|
|
|
217
217
|
headers.set("cache-control", "private, no-store");
|
|
218
218
|
headers.set("x-content-type-options", "nosniff");
|
|
219
219
|
headers.set("x-request-id", requestId);
|
|
220
|
-
|
|
220
|
+
const status = manifest.errors.status(error.code);
|
|
221
|
+
if ((status === 401 || status === 403) && !headers.has("www-authenticate")) {
|
|
222
|
+
const challenge = manifest.tokens.challenge?.(error, context);
|
|
223
|
+
if (challenge) headers.set("www-authenticate", challenge);
|
|
224
|
+
}
|
|
225
|
+
if (status === 401 && !headers.has("www-authenticate")) {
|
|
221
226
|
const metadataUrl = oauth ? challengeMetadataUrl(context) : null;
|
|
222
227
|
headers.set("www-authenticate", metadataUrl === null ? "Bearer" : `Bearer resource_metadata="${metadataUrl}"`);
|
|
223
228
|
}
|
|
@@ -104,7 +104,7 @@ declare const STANDARD: {
|
|
|
104
104
|
readonly notFound: {
|
|
105
105
|
readonly code: 'NOT_FOUND';
|
|
106
106
|
readonly status: 404;
|
|
107
|
-
readonly message: 'The requested
|
|
107
|
+
readonly message: 'The requested resource does not exist.';
|
|
108
108
|
};
|
|
109
109
|
readonly methodNotAllowed: {
|
|
110
110
|
readonly code: 'HTTP_METHOD_NOT_ALLOWED';
|
|
@@ -605,6 +605,12 @@ interface TokenPolicy<E = unknown> {
|
|
|
605
605
|
* resource have different origins or paths, and whenever `resources` lists any.
|
|
606
606
|
*/
|
|
607
607
|
resourceMetadataUrl?: string | null | ((context: TokenResolutionContext<E>) => string | null);
|
|
608
|
+
/**
|
|
609
|
+
* Optional WWW-Authenticate value for a 401 or 403 refusal, including a resolver's missing-scope
|
|
610
|
+
* failure. Null keeps the default 401 challenge and leaves a 403 without a challenge. This hook
|
|
611
|
+
* changes response metadata only; it cannot admit a refused request.
|
|
612
|
+
*/
|
|
613
|
+
challenge?: (failure: Failure, context: TokenResolutionContext<E>) => string | null;
|
|
608
614
|
/**
|
|
609
615
|
* Protected-resource metadata documents (RFC 9728) to serve instead of the default one, by absolute path
|
|
610
616
|
* at or below `/.well-known/oauth-protected-resource`, one per resource. When set, the default document
|
|
@@ -1267,7 +1273,7 @@ declare const STANDARD_FAILURES: {
|
|
|
1267
1273
|
readonly notFound: {
|
|
1268
1274
|
readonly code: 'NOT_FOUND';
|
|
1269
1275
|
readonly status: 404;
|
|
1270
|
-
readonly message: 'The requested
|
|
1276
|
+
readonly message: 'The requested resource does not exist.';
|
|
1271
1277
|
};
|
|
1272
1278
|
readonly methodNotAllowed: {
|
|
1273
1279
|
readonly code: 'HTTP_METHOD_NOT_ALLOWED';
|
|
@@ -1623,7 +1629,7 @@ declare function defineContext<D extends object>(prepare: (args: ContextArgument
|
|
|
1623
1629
|
*/
|
|
1624
1630
|
type PreparedContext<T> = T extends ContextDeclaration<infer D, infer E> ? Invocation<E> & Exclude<D, Failed> : never;
|
|
1625
1631
|
/** The token fields an application states in code, as `auth.ts` declares them; the rest are configuration. */
|
|
1626
|
-
type AuthOptions<E = RegisteredEnv> = Pick<TokenPolicy<E>, 'resolve' | 'resourceMetadataUrl' | 'resources'>;
|
|
1632
|
+
type AuthOptions<E = RegisteredEnv> = Pick<TokenPolicy<E>, 'resolve' | 'challenge' | 'resourceMetadataUrl' | 'resources'>;
|
|
1627
1633
|
/**
|
|
1628
1634
|
* Declares, as `auth.ts`'s default export, how the application verifies tokens itself: `resolve`, which
|
|
1629
1635
|
* replaces the default OAuth verification for every token but the development token (for credentials the
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bn as Principal, D as HttpRoute, E as HttpOptions, Qn as Result, i as TSchema, pn as OperationShape, r as Static, rn as AppManifest, ur as Failure } from "./types-
|
|
1
|
+
import { Bn as Principal, D as HttpRoute, E as HttpOptions, Qn as Result, i as TSchema, pn as OperationShape, r as Static, rn as AppManifest, ur as Failure } from "./types-DTIuIEJ-.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/diagnostics.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Cn as TelemetryConfig, Dn as telemetryEnabled, En as reportUnexpected, On as withDiagnostics, Sn as Observer, Tn as recordExecution, _r as TraceParent, bn as BackgroundContext, br as isRequestId, gr as DurableCorrelation, vr as createRequestId, wn as diagnosticsEnabled, xn as ExecutionObservation, xr as parseTraceParent, yr as durableCorrelation } from "./chunks/types-
|
|
1
|
+
import { Cn as TelemetryConfig, Dn as telemetryEnabled, En as reportUnexpected, On as withDiagnostics, Sn as Observer, Tn as recordExecution, _r as TraceParent, bn as BackgroundContext, br as isRequestId, gr as DurableCorrelation, vr as createRequestId, wn as diagnosticsEnabled, xn as ExecutionObservation, xr as parseTraceParent, yr as durableCorrelation } from "./chunks/types-DTIuIEJ-.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 { ar as CreateArguments, br as isRequestId, cr as ErrorDefinition, dr as FailureData, fr as FailureSchema, hr as standardErrors, lr as ErrorFactory, mr as resultSchema, or as DefinedErrors, pr as defineErrors, sr as ErrorCatalog, ur as Failure } from "./chunks/types-
|
|
1
|
+
import { ar as CreateArguments, br as isRequestId, cr as ErrorDefinition, dr as FailureData, fr as FailureSchema, hr as standardErrors, lr as ErrorFactory, mr as resultSchema, or as DefinedErrors, pr as defineErrors, sr as ErrorCatalog, ur as Failure } from "./chunks/types-DTIuIEJ-.js";
|
|
2
2
|
export { CreateArguments, DefinedErrors, ErrorCatalog, ErrorDefinition, ErrorFactory, Failure, FailureData, FailureSchema, defineErrors, isRequestId, resultSchema, standardErrors };
|
package/dist/errors.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { r as isRequestId } from "./chunks/correlation-4b23a-a4.js";
|
|
2
|
-
import { i as standardErrors, n as defineErrors, r as resultSchema, t as FailureSchema } from "./chunks/errors-
|
|
2
|
+
import { i as standardErrors, n as defineErrors, r as resultSchema, t as FailureSchema } from "./chunks/errors-C5w9WY1l.js";
|
|
3
3
|
|
|
4
4
|
export { FailureSchema, defineErrors, isRequestId, resultSchema, standardErrors };
|
package/dist/http-paths.d.ts
CHANGED
|
@@ -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-
|
|
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-DTIuIEJ-.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, $n as Success, A as TransportContext, An as TokenAlgorithm, At as ContextArguments, B as DeletedObject, Bn as Principal, Bt as HandlerOptions, Cn as TelemetryConfig, D as HttpRoute, Dt as parseInput, E as HttpOptions, En as reportUnexpected, Fn as TokenScheme, Ft as HandlerAnswer, G as NamedReference, Gn as protectedResourceMetadata, Gt as ToolDeclaration, H as EmailAddressSchema, Hn as TokenClient, Ht as RouteBody, In as TokenSource, It as HandlerArguments, J as PostalAddress, Jt as defineContext, K as NamedReferenceSchema, Kn as ScopeMatch, Kt as ToolOptions, Ln as createTokenAuthorization, Lt as HandlerDeclaration, M as projectAccessToken, Mn as TokenDevelopment, Mt as DomainCode, N as EmptyInputSchema, Nn as TokenPolicy, Nt as Fail, O as HttpTransport, Ot as parseSchema, P as OrganizationIdSchema, Pn as TokenResolutionContext, Pt as Failed, Q as Page, Qn as Result, R as UuidSchema, Rn as createTokenVerifier, Rt as HandlerHttp, Sn as Observer, T as HttpMiddleware, U as HexColorSchema, Un as TokenPrincipal, Ut as SchemaOf, V as DeletedObjectSchema, Vn as PrincipalSchema, Vt as PreparedContext, W as HttpsUrlSchema, Wn as OAuthResource, Wt as SchemaOrFields, X as SignedUrl, Xn as BodyFailure, Xt as defineTelemetry, Y as PostalAddressSchema, Yn as BinaryBody, Yt as defineHandler, Z as SignedUrlSchema, Zn as FailureResult, Zt as defineTool, _ as readBodyText, _n as operationMatchesScopes, a as Type, an as Invocation, b as createHttpRouteResolver, bn as BackgroundContext, c as createRpcOpenApi, cn as McpGuide, cr as ErrorDefinition, d as readJsonResponse, dn as OperationMiddleware, dr as FailureData, en as ApplicationBuilder, er as err, et as PageInfoSchema, f as retryAfterSeconds, fn as OperationScope, fr as FailureSchema, g as readBodyBytes, h as HttpBodyFailureReason, hn as isPublicOperation, hr as standardErrors, i as TSchema, in as Exposure, ir as AttachmentOutputSchema, it as pageLimit, j as createHttpHandler, jn as TokenClaims, jt as ContextDeclaration, k as RouteContext, kn as TokenAccess, kt as AuthOptions, l as isJsonMediaType, ln as McpSkill, lr as ErrorFactory, m as HttpBodyFailure, mr as resultSchema, nn as maximus, nr as ok, nt as PageQueryFields, o as t, on as InvocationAuthority, or as DefinedErrors, p as BodyReadOptions, pn as OperationShape, pr as defineErrors, q as PhoneNumberSchema, qn as matchesScopes, qt as defineAuth, r as Static, rn as AppManifest, rr as Attachment, rt as TPage, s as createOpenApi, sn as McpConfiguration, sr as ErrorCatalog, tn as ApplicationConfiguration, tr as isResult, tt as PageQuery, u as readJsonBody, ur as Failure, v as HttpRouteDefinition, vn as operationScopes, xn as ExecutionObservation, y as HttpRouteMatch, yn as AdmissionObservation, zn as projectToken, zt as HandlerMcp } from "./chunks/types-
|
|
1
|
+
import { $ as PageInfo, $n as Success, A as TransportContext, An as TokenAlgorithm, At as ContextArguments, B as DeletedObject, Bn as Principal, Bt as HandlerOptions, Cn as TelemetryConfig, D as HttpRoute, Dt as parseInput, E as HttpOptions, En as reportUnexpected, Fn as TokenScheme, Ft as HandlerAnswer, G as NamedReference, Gn as protectedResourceMetadata, Gt as ToolDeclaration, H as EmailAddressSchema, Hn as TokenClient, Ht as RouteBody, In as TokenSource, It as HandlerArguments, J as PostalAddress, Jt as defineContext, K as NamedReferenceSchema, Kn as ScopeMatch, Kt as ToolOptions, Ln as createTokenAuthorization, Lt as HandlerDeclaration, M as projectAccessToken, Mn as TokenDevelopment, Mt as DomainCode, N as EmptyInputSchema, Nn as TokenPolicy, Nt as Fail, O as HttpTransport, Ot as parseSchema, P as OrganizationIdSchema, Pn as TokenResolutionContext, Pt as Failed, Q as Page, Qn as Result, R as UuidSchema, Rn as createTokenVerifier, Rt as HandlerHttp, Sn as Observer, T as HttpMiddleware, U as HexColorSchema, Un as TokenPrincipal, Ut as SchemaOf, V as DeletedObjectSchema, Vn as PrincipalSchema, Vt as PreparedContext, W as HttpsUrlSchema, Wn as OAuthResource, Wt as SchemaOrFields, X as SignedUrl, Xn as BodyFailure, Xt as defineTelemetry, Y as PostalAddressSchema, Yn as BinaryBody, Yt as defineHandler, Z as SignedUrlSchema, Zn as FailureResult, Zt as defineTool, _ as readBodyText, _n as operationMatchesScopes, a as Type, an as Invocation, b as createHttpRouteResolver, bn as BackgroundContext, c as createRpcOpenApi, cn as McpGuide, cr as ErrorDefinition, d as readJsonResponse, dn as OperationMiddleware, dr as FailureData, en as ApplicationBuilder, er as err, et as PageInfoSchema, f as retryAfterSeconds, fn as OperationScope, fr as FailureSchema, g as readBodyBytes, h as HttpBodyFailureReason, hn as isPublicOperation, hr as standardErrors, i as TSchema, in as Exposure, ir as AttachmentOutputSchema, it as pageLimit, j as createHttpHandler, jn as TokenClaims, jt as ContextDeclaration, k as RouteContext, kn as TokenAccess, kt as AuthOptions, l as isJsonMediaType, ln as McpSkill, lr as ErrorFactory, m as HttpBodyFailure, mr as resultSchema, nn as maximus, nr as ok, nt as PageQueryFields, o as t, on as InvocationAuthority, or as DefinedErrors, p as BodyReadOptions, pn as OperationShape, pr as defineErrors, q as PhoneNumberSchema, qn as matchesScopes, qt as defineAuth, r as Static, rn as AppManifest, rr as Attachment, rt as TPage, s as createOpenApi, sn as McpConfiguration, sr as ErrorCatalog, tn as ApplicationConfiguration, tr as isResult, tt as PageQuery, u as readJsonBody, ur as Failure, v as HttpRouteDefinition, vn as operationScopes, xn as ExecutionObservation, y as HttpRouteMatch, yn as AdmissionObservation, zn as projectToken, zt as HandlerMcp } from "./chunks/types-DTIuIEJ-.js";
|
|
2
2
|
export { type AdmissionObservation, type AppManifest, type ApplicationBuilder, type ApplicationConfiguration, type Attachment, AttachmentOutputSchema, type AuthOptions, type BackgroundContext, 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 McpConfiguration, type McpGuide, type McpSkill, type NamedReference, NamedReferenceSchema, type OAuthResource, type Observer, type OperationMiddleware, type OperationScope, type OperationShape, OrganizationIdSchema, Page, type PageInfo, PageInfoSchema, type PageQuery, PageQueryFields, PhoneNumberSchema, type PostalAddress, PostalAddressSchema, type PreparedContext, type Principal, PrincipalSchema, type Result, type RouteBody, type RouteContext, type SchemaOf, type SchemaOrFields, type ScopeMatch, type SignedUrl, SignedUrlSchema, 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 ToolDeclaration, type ToolOptions, type TransportContext, Type, UuidSchema, createHttpHandler, createHttpRouteResolver, createOpenApi, createRpcOpenApi, createTokenAuthorization, createTokenVerifier, defineAuth, defineContext, defineErrors, defineHandler, defineTelemetry, defineTool, err, isJsonMediaType, isPublicOperation, isResult, matchesScopes, maximus, ok, operationMatchesScopes, operationScopes, pageLimit, parseInput, parseSchema, projectAccessToken, projectToken, protectedResourceMetadata, readBodyBytes, readBodyText, readJsonBody, readJsonResponse, reportUnexpected, resultSchema, retryAfterSeconds, standardErrors, t };
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { i as parseSchema, r as parseInput } from "./chunks/validation-fTohBT6R.js";
|
|
2
|
-
import { i as standardErrors, n as defineErrors, r as resultSchema, t as FailureSchema } from "./chunks/errors-
|
|
2
|
+
import { i as standardErrors, n as defineErrors, r as resultSchema, t as FailureSchema } from "./chunks/errors-C5w9WY1l.js";
|
|
3
3
|
import { n as readBodyBytes, r as readBodyText } from "./chunks/body-DOIHwIIl.js";
|
|
4
4
|
import { t as createHttpRouteResolver } from "./chunks/http-paths-DMBxwpp6.js";
|
|
5
5
|
import { n as isResult, r as ok, t as err } from "./chunks/result-CKgZHrnj.js";
|
|
6
|
-
import { E as isPublicOperation, N as matchesScopes, _ as projectAccessToken, a as createTokenVerifier, i as createTokenAuthorization, j as operationScopes, k as operationMatchesScopes, n as createRpcOpenApi, o as projectToken, t as createOpenApi, y as PrincipalSchema } from "./chunks/openapi-
|
|
6
|
+
import { E as isPublicOperation, N as matchesScopes, _ as projectAccessToken, a as createTokenVerifier, i as createTokenAuthorization, j as operationScopes, k as operationMatchesScopes, n as createRpcOpenApi, o as projectToken, t as createOpenApi, y as PrincipalSchema } from "./chunks/openapi-CeolxIqa.js";
|
|
7
7
|
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-p_aRcMC1.js";
|
|
8
|
-
import { a as maximus, i as protectedResourceMetadata, n as t, r as createHttpHandler, t as Type } from "./chunks/src
|
|
9
|
-
import { a as defineTelemetry, i as defineHandler, n as defineAuth, o as defineTool, r as defineContext } from "./chunks/handler-
|
|
8
|
+
import { a as maximus, i as protectedResourceMetadata, n as t, r as createHttpHandler, t as Type } from "./chunks/src-CPrJpbOM.js";
|
|
9
|
+
import { a as defineTelemetry, i as defineHandler, n as defineAuth, o as defineTool, r as defineContext } from "./chunks/handler-iebR-urt.js";
|
|
10
10
|
import { i as reportUnexpected } from "./chunks/telemetry-C3LfZcOB.js";
|
|
11
11
|
import { a as retryAfterSeconds, i as readJsonResponse, r as readJsonBody, t as isJsonMediaType } from "./chunks/json-B14evE6-.js";
|
|
12
12
|
|
package/dist/internals.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as TransportContext, Cn as TelemetryConfig, Dn as telemetryEnabled, E as HttpOptions, O as HttpTransport, On as withDiagnostics, Tn as recordExecution, an as Invocation, b as createHttpRouteResolver, bn as BackgroundContext, dn as OperationMiddleware, gn as operation, mn as composeOperations, n as executeOperation, on as InvocationAuthority, pn as OperationShape, rn as AppManifest, t as defineApp, v as HttpRouteDefinition, vn as operationScopes, y as HttpRouteMatch } from "./chunks/types-
|
|
1
|
+
import { A as TransportContext, Cn as TelemetryConfig, Dn as telemetryEnabled, E as HttpOptions, O as HttpTransport, On as withDiagnostics, Tn as recordExecution, an as Invocation, b as createHttpRouteResolver, bn as BackgroundContext, dn as OperationMiddleware, gn as operation, mn as composeOperations, n as executeOperation, on as InvocationAuthority, pn as OperationShape, rn as AppManifest, t as defineApp, v as HttpRouteDefinition, vn as operationScopes, y as HttpRouteMatch } from "./chunks/types-DTIuIEJ-.js";
|
|
2
2
|
export { type AppManifest, type BackgroundContext, type HttpOptions, type HttpRouteDefinition, type HttpRouteMatch, type HttpTransport, type Invocation, type InvocationAuthority, type OperationMiddleware, type OperationShape, type TelemetryConfig, type TransportContext, composeOperations, createHttpRouteResolver, defineApp, executeOperation, operation, operationScopes, recordExecution, telemetryEnabled, withDiagnostics };
|
package/dist/internals.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as defineApp } from "./chunks/define-app-
|
|
1
|
+
import { n as defineApp } from "./chunks/define-app-x7uY70_1.js";
|
|
2
2
|
import { t as createHttpRouteResolver } from "./chunks/http-paths-DMBxwpp6.js";
|
|
3
|
-
import { O as operation, T as composeOperations, j as operationScopes } from "./chunks/openapi-
|
|
3
|
+
import { O as operation, T as composeOperations, j as operationScopes } from "./chunks/openapi-CeolxIqa.js";
|
|
4
4
|
import { a as telemetryEnabled, o as withDiagnostics, r as recordExecution } from "./chunks/telemetry-C3LfZcOB.js";
|
|
5
|
-
import { t as executeOperation } from "./chunks/execution-
|
|
5
|
+
import { t as executeOperation } from "./chunks/execution-rOiLo8VG.js";
|
|
6
6
|
|
|
7
7
|
export { composeOperations, createHttpRouteResolver, defineApp, executeOperation, operation, operationScopes, recordExecution, telemetryEnabled, withDiagnostics };
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as HttpTransport } from "../chunks/types-
|
|
1
|
+
import { O as HttpTransport } from "../chunks/types-DTIuIEJ-.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-
|
|
16
|
+
const { handleMcp } = await import("../chunks/server-Bzf1Q1_4.js");
|
|
17
17
|
return handleMcp(context);
|
|
18
18
|
}
|
|
19
19
|
};
|
package/dist/project/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Gt as ToolDeclaration, Lt as HandlerDeclaration, T as HttpMiddleware, an as Invocation, dn as OperationMiddleware, en as ApplicationBuilder, in as Exposure, jt as ContextDeclaration, pn as OperationShape, rn as AppManifest, un as OperationHandler } from "../chunks/types-
|
|
1
|
+
import { Gt as ToolDeclaration, Lt as HandlerDeclaration, T as HttpMiddleware, an as Invocation, dn as OperationMiddleware, en as ApplicationBuilder, in as Exposure, jt as ContextDeclaration, pn as OperationShape, rn as AppManifest, un as OperationHandler } from "../chunks/types-DTIuIEJ-.js";
|
|
2
2
|
import { TSchema } from "@sinclair/typebox";
|
|
3
3
|
/** A route's HTTP method. */
|
|
4
4
|
type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
package/dist/project/config.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as routeGroup, r as ok, t as err } from "../chunks/result-CKgZHrnj.js";
|
|
2
|
-
import { c as isHandlerDeclaration, l as isToolDeclaration, s as isContextDeclaration, t as Failed } from "../chunks/handler-
|
|
2
|
+
import { c as isHandlerDeclaration, l as isToolDeclaration, s as isContextDeclaration, t as Failed } from "../chunks/handler-iebR-urt.js";
|
|
3
3
|
import { n as routeTitle, t as routeName } from "../chunks/names-ncD7A3DV.js";
|
|
4
4
|
|
|
5
5
|
// src/project/bind.ts
|
package/dist/project/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as HttpRoute, pn as OperationShape, rn as AppManifest } from "../chunks/types-
|
|
2
|
-
import { n as WorkerOptions, r as WorkerRuntime } from "../chunks/workers-types-
|
|
1
|
+
import { D as HttpRoute, pn as OperationShape, rn as AppManifest } from "../chunks/types-DTIuIEJ-.js";
|
|
2
|
+
import { n as WorkerOptions, r as WorkerRuntime } from "../chunks/workers-types-BRk_Xa_5.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. */
|
package/dist/project/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as standardErrors } from "../chunks/errors-
|
|
2
|
-
import { r as createAssetHandler, t as createWorker } from "../chunks/runtime-
|
|
3
|
-
import { t as checkPagePaths } from "../chunks/pages-
|
|
1
|
+
import { i as standardErrors } from "../chunks/errors-C5w9WY1l.js";
|
|
2
|
+
import { r as createAssetHandler, t as createWorker } from "../chunks/runtime-D94vx21X.js";
|
|
3
|
+
import { t as checkPagePaths } from "../chunks/pages-iZTvFs5a.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, B as DeletedObject, Ct as urlSchema, Dt as parseInput, Et as decodeSchema, F as Static, G as NamedReference, H as EmailAddressSchema, I as TSchema, J as PostalAddress, Jn as StaticDecode, K as NamedReferenceSchema, L as Type, N as EmptyInputSchema, Ot as parseSchema, P as OrganizationIdSchema, Q as Page, R as UuidSchema, St as transformSchema, Tt as decodeInput, U as HexColorSchema, V as DeletedObjectSchema, W as HttpsUrlSchema, X as SignedUrl, Y as PostalAddressSchema, Z as SignedUrlSchema, _t as normalizeSchema, at as Checked, bt as strictObject, ct as SchemaInput, dt as defaultSchema, et as PageInfoSchema, ft as extendObject, gt as looseObject, ht as literalUnion, ir as AttachmentOutputSchema, it as pageLimit, lt as SchemaIssue, mt as inspectSchema, nt as PageQueryFields, ot as checkSchema, pt as inputSchema, q as PhoneNumberSchema, rr as Attachment, rt as TPage, st as readSchema, tt as PageQuery, ut as SchemaValidationError, vt as pipeSchema, wt as InputIssue, xt as stripObject, yt as refineSchema, z as t } from "./chunks/types-
|
|
1
|
+
import { $ as PageInfo, B as DeletedObject, Ct as urlSchema, Dt as parseInput, Et as decodeSchema, F as Static, G as NamedReference, H as EmailAddressSchema, I as TSchema, J as PostalAddress, Jn as StaticDecode, K as NamedReferenceSchema, L as Type, N as EmptyInputSchema, Ot as parseSchema, P as OrganizationIdSchema, Q as Page, R as UuidSchema, St as transformSchema, Tt as decodeInput, U as HexColorSchema, V as DeletedObjectSchema, W as HttpsUrlSchema, X as SignedUrl, Y as PostalAddressSchema, Z as SignedUrlSchema, _t as normalizeSchema, at as Checked, bt as strictObject, ct as SchemaInput, dt as defaultSchema, et as PageInfoSchema, ft as extendObject, gt as looseObject, ht as literalUnion, ir as AttachmentOutputSchema, it as pageLimit, lt as SchemaIssue, mt as inspectSchema, nt as PageQueryFields, ot as checkSchema, pt as inputSchema, q as PhoneNumberSchema, rr as Attachment, rt as TPage, st as readSchema, tt as PageQuery, ut as SchemaValidationError, vt as pipeSchema, wt as InputIssue, xt as stripObject, yt as refineSchema, z as t } from "./chunks/types-DTIuIEJ-.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 PageQuery, PageQueryFields, PhoneNumberSchema, type PostalAddress, PostalAddressSchema, type SchemaInput, type SchemaIssue, SchemaValidationError, type SignedUrl, SignedUrlSchema, type Static, type StaticDecode, type TPage, type TSchema, Type, UuidSchema, checkSchema, decodeInput, decodeSchema, defaultSchema, extendObject, inputSchema, inspectSchema, literalUnion, looseObject, normalizeSchema, pageLimit, parseInput, parseSchema, pipeSchema, readSchema, refineSchema, strictObject, stripObject, t, transformSchema, urlSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $t as StandardFailure, Qt as STANDARD_FAILURES } from "./chunks/types-
|
|
1
|
+
import { $t as StandardFailure, Qt as STANDARD_FAILURES } from "./chunks/types-DTIuIEJ-.js";
|
|
2
2
|
export { STANDARD_FAILURES, StandardFailure };
|
package/dist/tooling/cli.js
CHANGED
|
@@ -139,7 +139,7 @@ async function run() {
|
|
|
139
139
|
return;
|
|
140
140
|
}
|
|
141
141
|
case "openapi": {
|
|
142
|
-
const { writeOpenApi } = await import("../chunks/openapi-file-
|
|
142
|
+
const { writeOpenApi } = await import("../chunks/openapi-file-Bz9FRaE6.js");
|
|
143
143
|
const written = await writeOpenApi(rest[0] ?? ".", {
|
|
144
144
|
...values.out === void 0 ? {} : { out: values.out },
|
|
145
145
|
check: values.check
|
package/dist/vite/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { An as TokenAlgorithm, Mn as TokenDevelopment, Nn as TokenPolicy } from "../chunks/types-
|
|
1
|
+
import { An as TokenAlgorithm, Mn as TokenDevelopment, Nn as TokenPolicy } from "../chunks/types-DTIuIEJ-.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. */
|
|
5
5
|
type Phase = 'development' | 'production';
|
|
6
6
|
/** How tokens are verified, as configuration states it; the code that verifies them itself is `auth.ts`. */
|
|
7
|
-
type TokenOptions = Omit<TokenPolicy, 'resolve' | 'resources' | 'resourceMetadataUrl' | 'audience' | 'development'> & {
|
|
7
|
+
type TokenOptions = Omit<TokenPolicy, 'resolve' | 'challenge' | 'resources' | 'resourceMetadataUrl' | 'audience' | 'development'> & {
|
|
8
8
|
/** The audience tokens must carry, or several any one of which they may carry; by default, the origin. */
|
|
9
9
|
audience?: TokenPolicy['audience'];
|
|
10
10
|
/**
|
package/dist/vite/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as checkMcpResourceNames } from "../chunks/define-app-
|
|
1
|
+
import { t as checkMcpResourceNames } from "../chunks/define-app-x7uY70_1.js";
|
|
2
2
|
import { a as operationPathParameters } from "../chunks/http-paths-DMBxwpp6.js";
|
|
3
|
-
import { a as ownsPrefix, t as VERSIONED_PATH } from "../chunks/http-layout-
|
|
4
|
-
import { t as checkPagePaths } from "../chunks/pages-
|
|
3
|
+
import { a as ownsPrefix, t as VERSIONED_PATH } from "../chunks/http-layout-DS8DnPyu.js";
|
|
4
|
+
import { t as checkPagePaths } from "../chunks/pages-iZTvFs5a.js";
|
|
5
5
|
import { t as routeName } from "../chunks/names-ncD7A3DV.js";
|
|
6
6
|
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";
|
|
7
7
|
import { existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
package/dist/webhooks.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Qn as Result, ur as Failure } from "./chunks/types-
|
|
1
|
+
import { Qn as Result, ur as Failure } from "./chunks/types-DTIuIEJ-.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-
|
|
1
|
+
import { a as credentials, i as createWorker, n as WorkerOptions, o as WorkerAssetsOptions, r as WorkerRuntime, t as RpcMethods } from "../chunks/workers-types-BRk_Xa_5.js";
|
|
2
2
|
export { RpcMethods, type WorkerAssetsOptions, WorkerOptions, WorkerRuntime, createWorker, credentials };
|
package/dist/workers/runtime.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbol-ai/maximus",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.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",
|