@arbol-ai/maximus 8.7.0 → 8.7.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.
- package/dist/analytics/analytics.d.ts +1 -1
- package/dist/body.d.ts +1 -1
- package/dist/capture/index.d.ts +1 -1
- package/dist/chunks/{define-app-CRKaiTzi.js → define-app-g0A34g8z.js} +1 -1
- package/dist/chunks/{http-layout-CB6MdZOO.js → http-layout-CdFZEF2S.js} +1 -1
- package/dist/chunks/{meter-Mddtgv9_.js → meter-BnrQY5rb.js} +1 -1
- package/dist/chunks/{openapi-tJeJfq1G.js → openapi-BkR-hcYJ.js} +1 -1
- package/dist/chunks/{openapi-file-D1Fz9-oO.js → openapi-file-F5kJS8x-.js} +1 -1
- package/dist/chunks/{pages-DzAPVx2p.js → pages-DLW65kXL.js} +1 -1
- package/dist/chunks/{runtime-D-yNrgEP.js → runtime-DoyJqzAv.js} +3 -3
- package/dist/chunks/{server-D49V-Sd4.js → server-DxifcN7e.js} +1 -1
- package/dist/chunks/{src-DPB9t4u0.js → src-BNbGseOR.js} +5 -5
- package/dist/chunks/{tokens-CS3E9OGg.js → tokens-b9dEBUu9.js} +15 -13
- package/dist/chunks/{types-hP7p4Rsp.d.ts → types-Do00dTUs.d.ts} +13 -6
- package/dist/chunks/{workers-types-qWuu8LZ0.d.ts → workers-types-DjWyO_Pu.d.ts} +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/diagnostics.d.ts +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/http-paths.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/internals.d.ts +1 -1
- package/dist/internals.js +2 -2
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/mcp/tasks.d.ts +1 -1
- package/dist/project/config.d.ts +1 -1
- package/dist/project/index.d.ts +2 -2
- package/dist/project/index.js +2 -2
- package/dist/schemas.d.ts +1 -1
- package/dist/standard-failures.d.ts +1 -1
- package/dist/tooling/cli.js +1 -1
- package/dist/vite/index.d.ts +3 -3
- 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
- package/skills/maximus/references/project.md +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { rr as Observer } from "../chunks/types-
|
|
1
|
+
import { rr as Observer } from "../chunks/types-Do00dTUs.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-
|
|
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-Do00dTUs.js";
|
|
2
2
|
export { type BodyReadOptions, type HttpBodyFailure, type HttpBodyFailureReason, isJsonMediaType, publicDestination, readBodyBytes, readBodyText, readJsonBody, readJsonResponse, retryAfterSeconds };
|
package/dist/capture/index.d.ts
CHANGED
|
@@ -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-
|
|
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-Do00dTUs.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-
|
|
7
|
+
import { b as checkRoles, g as hasSchemaReferences, m as bundleSchemas, o as tokenAudiences, t as checkTokenAuthority } from "./tokens-b9dEBUu9.js";
|
|
8
8
|
import { IsKind } from "typebox";
|
|
9
9
|
|
|
10
10
|
// src/internal/exact-length.ts
|
|
@@ -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-
|
|
4
|
+
import { a as isAttachmentSchema, o as validAttachment } from "./define-app-g0A34g8z.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-
|
|
1
|
+
import { S as resolveRoles, _ as schemaIds, f as usesCloudflareAccess, h as canonical, m as bundleSchemas, s as tokenEndpoints } from "./tokens-b9dEBUu9.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-
|
|
1
|
+
import { n as createRpcOpenApi } from "./openapi-BkR-hcYJ.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,8 +1,8 @@
|
|
|
1
|
-
import { n as executeOperation, r as recordCapture, t as recordMeter } from "./meter-
|
|
1
|
+
import { n as executeOperation, r as recordCapture, t as recordMeter } from "./meter-BnrQY5rb.js";
|
|
2
2
|
import { i as standardErrors } from "./errors-BoutSmiy.js";
|
|
3
|
-
import { r as createHttpHandler } from "./src-
|
|
3
|
+
import { r as createHttpHandler } from "./src-BNbGseOR.js";
|
|
4
4
|
import { r as ok, t as err } from "./result-CF4OzG9O.js";
|
|
5
|
-
import { p as PrincipalSchema } from "./tokens-
|
|
5
|
+
import { p as PrincipalSchema } from "./tokens-b9dEBUu9.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-
|
|
5
|
+
import { h as canonical, v as standaloneSchema } from "./tokens-b9dEBUu9.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-
|
|
1
|
+
import { i as binaryBody, n as defineApp, r as attachmentResponse } from "./define-app-g0A34g8z.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-
|
|
6
|
-
import { n as executeOperation, r as recordCapture, t as recordMeter } from "./meter-
|
|
5
|
+
import { c as tokenIssuer, i as presentedToken, n as createTokenAuthorization, o as tokenAudiences, u as isCrossSiteWrite } from "./tokens-b9dEBUu9.js";
|
|
6
|
+
import { n as executeOperation, r as recordCapture, t as recordMeter } from "./meter-BnrQY5rb.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-
|
|
11
|
-
import { i as queryKinds, r as queryInput, t as createOpenApi } from "./openapi-
|
|
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-CdFZEF2S.js";
|
|
11
|
+
import { i as queryKinds, r as queryInput, t as createOpenApi } from "./openapi-BkR-hcYJ.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,
|
|
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";
|
|
@@ -40,8 +40,10 @@ function ownScopes(namespace, role) {
|
|
|
40
40
|
return Object.entries(role.can ?? {}).flatMap(([action, resources]) => resources.map((resource) => `${namespace}:${resource}:${action}`));
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
|
-
* Each role of an application with every scope it holds
|
|
44
|
-
*
|
|
43
|
+
* Each role of an application with every scope it holds: its own and the ones it extends, kept only where a
|
|
44
|
+
* public operation takes them, so a misspelled scope or an internal operation's gives nothing. An application
|
|
45
|
+
* built with a few of its operations, as a test's probe is, gets its roles narrowed to those. An application
|
|
46
|
+
* without roles has none.
|
|
45
47
|
*/
|
|
46
48
|
function resolveRoles(application) {
|
|
47
49
|
const roles = application.roles ?? {};
|
|
@@ -53,7 +55,7 @@ function resolveRoles(application) {
|
|
|
53
55
|
const role = roles[name];
|
|
54
56
|
if (!role || path.includes(name)) throw new TypeError(`Role "${path[0] ?? name}": it extends a role that is not declared, or itself.`);
|
|
55
57
|
const scopes = role.all ? [...everything] : [...ownScopes(application.namespace, role), ...role.extends ? scopesOf(role.extends, [...path, name]) : []];
|
|
56
|
-
const sorted = [...new Set(scopes)].toSorted();
|
|
58
|
+
const sorted = [...new Set(scopes)].filter((scope) => everything.has(scope)).toSorted();
|
|
57
59
|
resolved.set(name, sorted);
|
|
58
60
|
return sorted;
|
|
59
61
|
};
|
|
@@ -63,29 +65,29 @@ function resolveRoles(application) {
|
|
|
63
65
|
}]));
|
|
64
66
|
}
|
|
65
67
|
/**
|
|
66
|
-
* Refuses roles an application cannot
|
|
68
|
+
* Refuses roles an application cannot declare, with a TypeError that names the role: more than `MAX_ROLES`, a
|
|
67
69
|
* name that is not a word, an unknown field, a missing description, `all` beside `can` or `extends`, a role
|
|
68
|
-
*
|
|
69
|
-
* a
|
|
70
|
+
* that names no scope, a scope outside the service's namespace, and a role extending an undeclared one or
|
|
71
|
+
* itself. It reads the declaration alone, so an application built with a few of its operations, as a test's
|
|
72
|
+
* probe is, builds too. Roles need not cover every public operation: one whose scope no role names is for
|
|
73
|
+
* whoever holds it otherwise, such as the service's staff or an organization's owner.
|
|
70
74
|
*/
|
|
71
75
|
function checkRoles(application) {
|
|
72
76
|
const { roles } = application;
|
|
73
77
|
if (roles === void 0) return;
|
|
74
78
|
const names = Object.keys(roles);
|
|
75
79
|
if (names.length === 0 || names.length > 3) throw new TypeError(`An application declares between one and ${3} roles, or none at all.`);
|
|
76
|
-
const everything = publicScopes(application.operations);
|
|
77
80
|
for (const [name, role] of Object.entries(roles)) {
|
|
78
81
|
if (!ROLE_NAME.test(name)) throw new TypeError(`Role "${name}": a role's name is a lowercase kebab-case word of 2 to 32 characters.`);
|
|
79
82
|
const unknown = Object.keys(role).find((field) => !ROLE_FIELDS.has(field));
|
|
80
83
|
if (unknown) throw new TypeError(`Role "${name}": "${unknown}" is not a role field.`);
|
|
81
84
|
if (typeof role.description !== "string" || !role.description.trim()) throw new TypeError(`Role "${name}": a description says what the role is for.`);
|
|
82
85
|
if (role.all !== void 0 && (role.all !== true || role.can !== void 0 || role.extends !== void 0)) throw new TypeError(`Role "${name}": "all: true" stands alone, without "can" or "extends".`);
|
|
83
|
-
|
|
86
|
+
const scopes = ownScopes(application.namespace, role);
|
|
87
|
+
if (!role.all && !role.extends && scopes.length === 0) throw new TypeError(`Role "${name}": it names no scope.`);
|
|
88
|
+
for (const scope of scopes) if (!isNamespacedScope(scope, application.namespace)) throw new TypeError(`Role "${name}": "${scope}" is not a scope of "${application.namespace}".`);
|
|
84
89
|
}
|
|
85
|
-
|
|
86
|
-
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.`);
|
|
90
|
+
resolveRoles(application);
|
|
89
91
|
}
|
|
90
92
|
|
|
91
93
|
// 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
|
-
/**
|
|
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`. */
|
|
@@ -1160,8 +1165,10 @@ interface RoleSource {
|
|
|
1160
1165
|
roles?: RoleDefinitions;
|
|
1161
1166
|
}
|
|
1162
1167
|
/**
|
|
1163
|
-
* Each role of an application with every scope it holds
|
|
1164
|
-
*
|
|
1168
|
+
* Each role of an application with every scope it holds: its own and the ones it extends, kept only where a
|
|
1169
|
+
* public operation takes them, so a misspelled scope or an internal operation's gives nothing. An application
|
|
1170
|
+
* built with a few of its operations, as a test's probe is, gets its roles narrowed to those. An application
|
|
1171
|
+
* without roles has none.
|
|
1165
1172
|
*/
|
|
1166
1173
|
declare function resolveRoles(application: RoleSource): Record<string, ResolvedRole>;
|
|
1167
1174
|
/**
|
|
@@ -1537,9 +1544,9 @@ interface AppManifest<Env, C, Ops extends Record<string, OperationShape>> {
|
|
|
1537
1544
|
groups?: Readonly<Record<string, string>>;
|
|
1538
1545
|
/**
|
|
1539
1546
|
* The service's roles, from `defineRoles()`: at most three, each saying what it may do with the service's
|
|
1540
|
-
* resources. `.build()` refuses a
|
|
1541
|
-
*
|
|
1542
|
-
*
|
|
1547
|
+
* resources. `.build()` refuses a malformed declaration; a role holds only the scopes a public operation
|
|
1548
|
+
* takes, and the OpenAPI document publishes each with them. Omitted, the service declares no roles and who
|
|
1549
|
+
* holds its scopes is decided elsewhere.
|
|
1543
1550
|
*/
|
|
1544
1551
|
roles?: RoleDefinitions;
|
|
1545
1552
|
/**
|
|
@@ -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-
|
|
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-Do00dTUs.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-
|
|
1
|
+
import { F as Static, Kr as Failure, xn as OperationShape } from "./chunks/types-Do00dTUs.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;
|
package/dist/diagnostics.d.ts
CHANGED
|
@@ -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-
|
|
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-Do00dTUs.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-
|
|
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-Do00dTUs.js";
|
|
2
2
|
export { CreateArguments, DefinedErrors, ErrorCatalog, ErrorDefinition, ErrorFactory, Failure, FailureData, 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-Do00dTUs.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-
|
|
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-Do00dTUs.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-
|
|
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-b9dEBUu9.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-
|
|
9
|
+
import { a as maximus, i as protectedResourceMetadata, n as t, r as createHttpHandler, t as Type } from "./chunks/src-BNbGseOR.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-
|
|
12
|
+
import { n as createRpcOpenApi, t as createOpenApi } from "./chunks/openapi-BkR-hcYJ.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
|
|
package/dist/internals.d.ts
CHANGED
|
@@ -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-
|
|
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-Do00dTUs.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-
|
|
2
|
-
import { n as defineApp } from "./chunks/define-app-
|
|
1
|
+
import { n as executeOperation, r as recordCapture, t as recordMeter } from "./chunks/meter-BnrQY5rb.js";
|
|
2
|
+
import { n as defineApp } from "./chunks/define-app-g0A34g8z.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";
|
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-Do00dTUs.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-DxifcN7e.js");
|
|
17
17
|
return handleMcp(context);
|
|
18
18
|
}
|
|
19
19
|
};
|
package/dist/mcp/tasks.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Kr as Failure, Pr as Result, cn as TaskAccess, ln as TaskRecord } from "../chunks/types-
|
|
1
|
+
import { Kr as Failure, Pr as Result, cn as TaskAccess, ln as TaskRecord } from "../chunks/types-Do00dTUs.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";
|
package/dist/project/config.d.ts
CHANGED
|
@@ -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-
|
|
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-Do00dTUs.js";
|
|
2
2
|
import { TSchema } from "typebox";
|
|
3
3
|
/** A route's HTTP method. */
|
|
4
4
|
type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
package/dist/project/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as HttpRoute, dn as AppManifest, xn as OperationShape } from "../chunks/types-
|
|
2
|
-
import { n as WorkerOptions, r as WorkerRuntime } from "../chunks/workers-types-
|
|
1
|
+
import { D as HttpRoute, dn as AppManifest, xn as OperationShape } from "../chunks/types-Do00dTUs.js";
|
|
2
|
+
import { n as WorkerOptions, r as WorkerRuntime } from "../chunks/workers-types-DjWyO_Pu.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
1
|
import { i as standardErrors } from "../chunks/errors-BoutSmiy.js";
|
|
2
|
-
import { r as createAssetHandler, t as createWorker } from "../chunks/runtime-
|
|
3
|
-
import { t as checkPagePaths } from "../chunks/pages-
|
|
2
|
+
import { r as createAssetHandler, t as createWorker } from "../chunks/runtime-DoyJqzAv.js";
|
|
3
|
+
import { t as checkPagePaths } from "../chunks/pages-DLW65kXL.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-
|
|
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-Do00dTUs.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-
|
|
1
|
+
import { in as StandardFailure, rn as STANDARD_FAILURES } from "./chunks/types-Do00dTUs.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-F5kJS8x-.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,4 +1,4 @@
|
|
|
1
|
-
import { Mn as RoleDefinitions, dr as TokenAlgorithm, mr as TokenPolicy, pr as TokenDevelopment } from "../chunks/types-
|
|
1
|
+
import { Mn as RoleDefinitions, dr as TokenAlgorithm, mr as TokenPolicy, pr as TokenDevelopment } from "../chunks/types-Do00dTUs.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
|
|
61
|
-
*
|
|
60
|
+
* resources. The build refuses a malformed declaration; a role holds only the scopes a public route takes,
|
|
61
|
+
* and OpenAPI publishes each role with them.
|
|
62
62
|
*/
|
|
63
63
|
roles?: RoleDefinitions;
|
|
64
64
|
/** The version OpenAPI, the MCP server and `/health` report; by default, the package's version. */
|
package/dist/vite/index.js
CHANGED
|
@@ -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-
|
|
2
|
+
import { a as ownsPrefix, t as VERSIONED_PATH } from "../chunks/http-layout-CdFZEF2S.js";
|
|
3
3
|
import { t as routeName } from "../chunks/names-ncD7A3DV.js";
|
|
4
|
-
import { t as checkPagePaths } from "../chunks/pages-
|
|
4
|
+
import { t as checkPagePaths } from "../chunks/pages-DLW65kXL.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-
|
|
6
|
+
import { t as checkMcpResourceNames } from "../chunks/define-app-g0A34g8z.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";
|
package/dist/webhooks.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Kr as Failure, Pr as Result } from "./chunks/types-
|
|
1
|
+
import { Kr as Failure, Pr as Result } from "./chunks/types-Do00dTUs.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-DjWyO_Pu.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.7.
|
|
3
|
+
"version": "8.7.2",
|
|
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.
|
|
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. A role holds only the scopes a public route takes (a typo gives nothing); the build refuses a malformed declaration; OpenAPI publishes them as `x-maximus-roles`. Pin each role's scopes in a test with `resolveRoles(app)`. 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. |
|