@arbol-ai/maximus 8.0.1 → 8.1.0
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/analytics/analytics.js +2 -2
- package/dist/body.d.ts +1 -1
- package/dist/capture/index.d.ts +37 -0
- package/dist/capture/index.js +182 -0
- package/dist/chunks/{define-app-x7uY70_1.js → define-app-BxGZdNmS.js} +14 -3
- package/dist/chunks/delay-BsKQP_lF.js +12 -0
- package/dist/chunks/digest-C7UGt760.js +13 -0
- package/dist/chunks/{errors-C5w9WY1l.js → errors-CWgE9uvM.js} +1 -1
- package/dist/chunks/execution-BTiAWA4n.js +264 -0
- package/dist/chunks/{http-layout-DS8DnPyu.js → http-layout-BvlbD__1.js} +1 -1
- package/dist/chunks/{openapi-CeolxIqa.js → openapi-BF3eCpux.js} +11 -20
- package/dist/chunks/{openapi-file-Bz9FRaE6.js → openapi-file-RcXoq0AF.js} +1 -1
- package/dist/chunks/{pages-iZTvFs5a.js → pages-BCksUeRf.js} +1 -1
- package/dist/chunks/{runtime-D94vx21X.js → runtime-D5eR9-Es.js} +38 -9
- package/dist/chunks/{schemas-p_aRcMC1.js → schemas-BOFxZP1c.js} +1 -1
- package/dist/chunks/{server-Bzf1Q1_4.js → server-B9C8KPwa.js} +5 -4
- package/dist/chunks/{src-CPrJpbOM.js → src-C-4z443M.js} +61 -15
- package/dist/chunks/{telemetry-C3LfZcOB.js → telemetry-BtxJh69Q.js} +4 -4
- package/dist/chunks/{types-DTIuIEJ-.d.ts → types-Dqo3oGig.d.ts} +236 -31
- package/dist/chunks/{validation-fTohBT6R.js → validation-DMu0rkMQ.js} +266 -16
- package/dist/chunks/{workers-types-BRk_Xa_5.d.ts → workers-types-BgjyDtGd.d.ts} +1 -1
- package/dist/diagnostics.d.ts +1 -1
- package/dist/diagnostics.js +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 +6 -6
- package/dist/internals.d.ts +2 -2
- package/dist/internals.js +5 -5
- 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/index.d.ts +2 -2
- package/dist/project/index.js +3 -3
- package/dist/schemas.d.ts +2 -2
- package/dist/schemas.js +3 -3
- package/dist/standard-failures.d.ts +1 -1
- package/dist/tooling/cli.js +1 -1
- package/dist/vite/index.d.ts +2 -2
- package/dist/vite/index.js +12 -7
- 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 +5 -1
- package/skills/maximus/SKILL.md +7 -0
- package/skills/maximus/references/project.md +4 -0
- package/skills/maximus/references/routes-and-tools.md +2 -0
- package/templates/project/CLAUDE.md.template +3 -3
- package/templates/project/README.md.template +1 -0
- package/templates/project/tsconfig.json.template +1 -0
- package/dist/chunks/execution-rOiLo8VG.js +0 -84
|
@@ -1,7 +1,230 @@
|
|
|
1
|
+
import { t as isRecord } from "./record-DQUDTpEA.js";
|
|
1
2
|
import { FormatRegistry, Kind, TransformKind, Type } from "@sinclair/typebox";
|
|
2
3
|
import { AssertError, HasTransform, TransformDecode, TransformDecodeError, Value } from "@sinclair/typebox/value";
|
|
3
4
|
import { fullFormats } from "ajv-formats/dist/formats.js";
|
|
4
5
|
|
|
6
|
+
// src/internal/schema-markers.ts
|
|
7
|
+
/**
|
|
8
|
+
* The markers input codecs leave on a schema, which the codecs and the reader of secret fields share.
|
|
9
|
+
*/
|
|
10
|
+
/** Whether an object drops unknown keys when read with `stripUnknown`. */
|
|
11
|
+
const STRIP = Symbol("maximus.schema.strip");
|
|
12
|
+
/** The source schema of a `pipeSchema`, which the wire value is first read as. */
|
|
13
|
+
const SOURCE = Symbol("maximus.schema.source");
|
|
14
|
+
|
|
15
|
+
// src/secrets.ts
|
|
16
|
+
/** What `visit` answers for a value that must not stay. */
|
|
17
|
+
const REMOVED = Symbol("maximus.schema.removed");
|
|
18
|
+
/** Stands for a schema that says nothing about a value, such as an unknown key of a loose object. */
|
|
19
|
+
const UNDESCRIBED = Object.freeze({});
|
|
20
|
+
/** Each schema's tree, read on first use. */
|
|
21
|
+
const trees = /* @__PURE__ */ new WeakMap();
|
|
22
|
+
/** Each `patternProperties` key, compiled once: patterns come from schemas, which are finite. */
|
|
23
|
+
const patterns = /* @__PURE__ */ new Map();
|
|
24
|
+
/** A keyword's value as a list of schemas. */
|
|
25
|
+
function schemaList(value) {
|
|
26
|
+
return Array.isArray(value) ? value : [];
|
|
27
|
+
}
|
|
28
|
+
/** A keyword's value as schemas by name. */
|
|
29
|
+
function schemaMap(value) {
|
|
30
|
+
return isRecord(value) ? value : {};
|
|
31
|
+
}
|
|
32
|
+
/** The schemas directly below a schema, whichever keyword holds them. */
|
|
33
|
+
function childSchemas(node) {
|
|
34
|
+
return [
|
|
35
|
+
...Object.values(schemaMap(node.properties)),
|
|
36
|
+
...Object.values(schemaMap(node.patternProperties)),
|
|
37
|
+
...Object.values(schemaMap(node.$defs)),
|
|
38
|
+
node.additionalProperties,
|
|
39
|
+
node.additionalItems,
|
|
40
|
+
...[node.items].flat(),
|
|
41
|
+
...schemaList(node.anyOf),
|
|
42
|
+
...schemaList(node.oneOf),
|
|
43
|
+
...schemaList(node.allOf),
|
|
44
|
+
node[SOURCE]
|
|
45
|
+
];
|
|
46
|
+
}
|
|
47
|
+
/** A schema's tree: what `$ref` may name in it, and whether it marks anything secret. */
|
|
48
|
+
function treeOf(schema) {
|
|
49
|
+
const known = trees.get(schema);
|
|
50
|
+
if (known) return known;
|
|
51
|
+
const definitions = /* @__PURE__ */ new Map();
|
|
52
|
+
/** Adds one more definition of a name; two of one name both apply. */
|
|
53
|
+
const define = (name, node) => {
|
|
54
|
+
definitions.set(name, [...definitions.get(name) ?? [], node]);
|
|
55
|
+
};
|
|
56
|
+
let secret = false;
|
|
57
|
+
const seen = /* @__PURE__ */ new Set();
|
|
58
|
+
const pending = [schema];
|
|
59
|
+
while (pending.length > 0) {
|
|
60
|
+
const node = pending.pop();
|
|
61
|
+
if (!isRecord(node) || seen.has(node)) continue;
|
|
62
|
+
seen.add(node);
|
|
63
|
+
secret ||= node.secret === true;
|
|
64
|
+
if (typeof node.$id === "string") define(node.$id, node);
|
|
65
|
+
for (const [name, definition] of Object.entries(schemaMap(node.$defs))) if (isRecord(definition)) define(name, definition);
|
|
66
|
+
pending.push(...childSchemas(node));
|
|
67
|
+
}
|
|
68
|
+
const tree = {
|
|
69
|
+
definitions,
|
|
70
|
+
secret
|
|
71
|
+
};
|
|
72
|
+
trees.set(schema, tree);
|
|
73
|
+
return tree;
|
|
74
|
+
}
|
|
75
|
+
/** Whether a schema marks any value secret, at any depth. */
|
|
76
|
+
function holdsSecrets(schema) {
|
|
77
|
+
return treeOf(schema).secret;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Adds to `leaves` the schemas a value of `schema` may match, through every reference and union member, and
|
|
81
|
+
* answers false when one of them marks the value secret or names nothing this tree defines: a value that
|
|
82
|
+
* cannot be shown to be clean is removed.
|
|
83
|
+
*/
|
|
84
|
+
function collectLeaves(schema, tree, leaves, seen) {
|
|
85
|
+
if (seen.has(schema) || !isRecord(schema)) return true;
|
|
86
|
+
seen.add(schema);
|
|
87
|
+
const node = schema;
|
|
88
|
+
if (node.secret === true) return false;
|
|
89
|
+
const reference = typeof node.$ref === "string" ? node.$ref.replace("#/$defs/", "") : void 0;
|
|
90
|
+
const targets = reference === void 0 ? [] : tree.definitions.get(reference) ?? [];
|
|
91
|
+
if (reference !== void 0 && targets.length === 0) return false;
|
|
92
|
+
const members = [
|
|
93
|
+
...targets,
|
|
94
|
+
...schemaList(node.anyOf),
|
|
95
|
+
...schemaList(node.oneOf),
|
|
96
|
+
...schemaList(node.allOf)
|
|
97
|
+
];
|
|
98
|
+
if (!members.every((member) => collectLeaves(member, tree, leaves, seen))) return false;
|
|
99
|
+
if (members.length === 0 || node.type !== void 0 || node.properties !== void 0 || node.patternProperties !== void 0) leaves.push(node);
|
|
100
|
+
return true;
|
|
101
|
+
}
|
|
102
|
+
/** Whether a schema's `type` admits a value. A TypeBox type outside JSON, such as `Date`, admits anything. */
|
|
103
|
+
function typeAdmits(type, value) {
|
|
104
|
+
switch (type) {
|
|
105
|
+
case "string":
|
|
106
|
+
case "boolean": return typeof value === type;
|
|
107
|
+
case "number": return typeof value === "number";
|
|
108
|
+
case "integer": return Number.isInteger(value);
|
|
109
|
+
case "null": return value === null;
|
|
110
|
+
case "array": return Array.isArray(value);
|
|
111
|
+
case "object": return isRecord(value);
|
|
112
|
+
default: return true;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
/** Whether a schema holds no opinion on what is inside a value: nothing below it can be marked. */
|
|
116
|
+
function describesNothing(leaf) {
|
|
117
|
+
return leaf.properties === void 0 && leaf.patternProperties === void 0 && leaf.items === void 0 && (leaf.additionalProperties === void 0 || leaf.additionalProperties === true) && leaf[STRIP] !== true;
|
|
118
|
+
}
|
|
119
|
+
/** The schemas of an array's element at `position`: a tuple's position, or a list's one schema of items. */
|
|
120
|
+
function itemSchemas(leaf, position) {
|
|
121
|
+
if (!Array.isArray(leaf.items)) return leaf.items === void 0 ? [UNDESCRIBED] : [leaf.items];
|
|
122
|
+
if (position < leaf.items.length) return [leaf.items[position]];
|
|
123
|
+
return isRecord(leaf.additionalItems) ? [leaf.additionalItems] : [];
|
|
124
|
+
}
|
|
125
|
+
/** A copy of an array without what its schemas mark: a list loses the element, a tuple keeps its positions. */
|
|
126
|
+
function visitArray(leaves, value, tree) {
|
|
127
|
+
const tuple = leaves.some((leaf) => Array.isArray(leaf.items));
|
|
128
|
+
const kept = [];
|
|
129
|
+
for (const [position, element] of value.entries()) {
|
|
130
|
+
const schemas = leaves.flatMap((leaf) => itemSchemas(leaf, position));
|
|
131
|
+
const visited = schemas.length ? visit(schemas, element, tree) : REMOVED;
|
|
132
|
+
if (visited !== REMOVED) kept.push(visited);
|
|
133
|
+
else if (tuple) kept.push(null);
|
|
134
|
+
}
|
|
135
|
+
return kept;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* The schemas one object schema gives a key: its property and the patterns the key matches, else its
|
|
139
|
+
* additional properties. None when the schema refuses the key: a strict object, or one that strips unknown
|
|
140
|
+
* keys.
|
|
141
|
+
*/
|
|
142
|
+
function fieldSchemas(leaf, key) {
|
|
143
|
+
const declared = [...Object.hasOwn(schemaMap(leaf.properties), key) ? [schemaMap(leaf.properties)[key]] : [], ...Object.entries(schemaMap(leaf.patternProperties)).filter(([pattern]) => compiled(pattern).test(key)).map(([, schema]) => schema)];
|
|
144
|
+
if (declared.length) return declared;
|
|
145
|
+
if (leaf.additionalProperties === false || leaf[STRIP] === true) return [];
|
|
146
|
+
return isRecord(leaf.additionalProperties) ? [leaf.additionalProperties] : [UNDESCRIBED];
|
|
147
|
+
}
|
|
148
|
+
/** A pattern of `patternProperties`, compiled once and without flags, as TypeBox compiles it to check a value. */
|
|
149
|
+
function compiled(pattern) {
|
|
150
|
+
let expression = patterns.get(pattern);
|
|
151
|
+
if (!expression) {
|
|
152
|
+
expression = new RegExp(pattern);
|
|
153
|
+
patterns.set(pattern, expression);
|
|
154
|
+
}
|
|
155
|
+
return expression;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* A copy of an object without what its schemas mark, nor a key every schema refuses. `Object.fromEntries`
|
|
159
|
+
* keeps an own `__proto__` key a plain key, where assigning it would set the copy's prototype.
|
|
160
|
+
*/
|
|
161
|
+
function visitObject(leaves, value, tree) {
|
|
162
|
+
const kept = [];
|
|
163
|
+
for (const [key, field] of Object.entries(value)) {
|
|
164
|
+
const schemas = leaves.flatMap((leaf) => fieldSchemas(leaf, key));
|
|
165
|
+
const visited = schemas.length ? visit(schemas, field, tree) : REMOVED;
|
|
166
|
+
if (visited !== REMOVED) kept.push([key, visited]);
|
|
167
|
+
}
|
|
168
|
+
return Object.fromEntries(kept);
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* A value as these schemas leave it: `REMOVED` when one marks it or none admits it, and otherwise a copy of
|
|
172
|
+
* what they describe. Every schema that may match applies, so a field one union member marks is removed
|
|
173
|
+
* whichever member the value belongs to.
|
|
174
|
+
*/
|
|
175
|
+
function visit(schemas, value, tree) {
|
|
176
|
+
const leaves = [];
|
|
177
|
+
const seen = /* @__PURE__ */ new Set();
|
|
178
|
+
if (!schemas.every((schema) => collectLeaves(schema, tree, leaves, seen))) return REMOVED;
|
|
179
|
+
const admitting = leaves.filter((leaf) => typeAdmits(leaf.type, value));
|
|
180
|
+
if (admitting.length === 0) return REMOVED;
|
|
181
|
+
if (admitting.every(describesNothing)) return value;
|
|
182
|
+
if (Array.isArray(value)) return visitArray(admitting, value, tree);
|
|
183
|
+
return isRecord(value) ? visitObject(admitting, value, tree) : value;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* A copy of a value without every field its schema marks with `secret: true`, at any depth: through objects,
|
|
187
|
+
* records, arrays, tuples, unions, intersections, optional fields and references. The input is never changed.
|
|
188
|
+
* A marked list element goes with its value, a marked tuple position becomes `null`, and a schema marked at
|
|
189
|
+
* its root answers `undefined`.
|
|
190
|
+
*
|
|
191
|
+
* Pass a value of the shape the schema describes: what it checked, before any codec ran. It fails closed where
|
|
192
|
+
* a schema cannot speak for a value: a name marked in any member of a union is removed from all of them, a
|
|
193
|
+
* key a strict object refuses is removed, as is a value of another type, or one under a `$ref` the schema does
|
|
194
|
+
* not define.
|
|
195
|
+
*/
|
|
196
|
+
function withoutSecrets(schema, value) {
|
|
197
|
+
const kept = visit([schema], value, treeOf(schema));
|
|
198
|
+
return kept === REMOVED ? void 0 : kept;
|
|
199
|
+
}
|
|
200
|
+
/** Keywords whose values are data, never schemas: `secret` inside one is the data's own. */
|
|
201
|
+
const DATA_KEYWORDS = /* @__PURE__ */ new Set([
|
|
202
|
+
"const",
|
|
203
|
+
"default",
|
|
204
|
+
"enum",
|
|
205
|
+
"example",
|
|
206
|
+
"examples"
|
|
207
|
+
]);
|
|
208
|
+
/** Keywords whose values are named schemas: `secret` directly inside one is a field's name. */
|
|
209
|
+
const NAMED_SCHEMAS = /* @__PURE__ */ new Set([
|
|
210
|
+
"properties",
|
|
211
|
+
"patternProperties",
|
|
212
|
+
"$defs"
|
|
213
|
+
]);
|
|
214
|
+
/**
|
|
215
|
+
* A copy of a published schema or document without the `secret` keyword. It tells capture what to leave out,
|
|
216
|
+
* and no client needs it: marking a field changes no OpenAPI document and no tool listing.
|
|
217
|
+
*/
|
|
218
|
+
function withoutSecretKeyword(node, named = false) {
|
|
219
|
+
if (Array.isArray(node)) return node.map((item) => withoutSecretKeyword(item));
|
|
220
|
+
if (!isRecord(node)) return node;
|
|
221
|
+
const kept = [];
|
|
222
|
+
for (const [key, child] of Object.entries(node)) if (named) kept.push([key, withoutSecretKeyword(child)]);
|
|
223
|
+
else if (DATA_KEYWORDS.has(key) || key.startsWith("x-")) kept.push([key, child]);
|
|
224
|
+
else if (!(key === "secret" && child === true)) kept.push([key, withoutSecretKeyword(child, NAMED_SCHEMAS.has(key))]);
|
|
225
|
+
return Object.fromEntries(kept);
|
|
226
|
+
}
|
|
227
|
+
|
|
5
228
|
// src/input-schemas.ts
|
|
6
229
|
/**
|
|
7
230
|
* Owner codecs on TypeBox schemas: defaults, normalizers, transforms, inspections, refinements, pipes and
|
|
@@ -26,10 +249,6 @@ const TRANSFORMERS = Symbol("maximus.schema.transformers");
|
|
|
26
249
|
const NORMALIZERS = Symbol("maximus.schema.normalizers");
|
|
27
250
|
/** The inspections and refinements a schema runs on a valid value. */
|
|
28
251
|
const INSPECTORS = Symbol("maximus.schema.inspectors");
|
|
29
|
-
/** The source schema of a `pipeSchema`, which the wire value is first read as. */
|
|
30
|
-
const SOURCE = Symbol("maximus.schema.source");
|
|
31
|
-
/** Whether an object drops unknown keys when read with `stripUnknown`. */
|
|
32
|
-
const STRIP = Symbol("maximus.schema.strip");
|
|
33
252
|
/** A union of literals: `literalUnion(['open', 'done'])`. */
|
|
34
253
|
const literalUnion = (values) => Type.Union(values.map((value) => Type.Literal(value)));
|
|
35
254
|
/**
|
|
@@ -95,13 +314,24 @@ const transformSchema = (schema, transform) => Type.Unsafe({
|
|
|
95
314
|
}]
|
|
96
315
|
});
|
|
97
316
|
/**
|
|
317
|
+
* Refuses a canonical schema that marks a field `secret: true` when the wire schema it is read from marks
|
|
318
|
+
* nothing: capture reads the value the wire schema checked, where that mark would protect nothing.
|
|
319
|
+
*/
|
|
320
|
+
function requireSecretsOnWire(wire, canonical) {
|
|
321
|
+
if (holdsSecrets(canonical) && !holdsSecrets(wire)) throw new TypeError("A canonical schema marks a field secret: true and the wire schema it is read from does not; mark the field where the wire carries it.");
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
98
324
|
* Admits a value as `source`, then checks and decodes the result as `target`: a wire shape read into its
|
|
99
|
-
* canonical one. Runs inside `inputSchema()`.
|
|
325
|
+
* canonical one. Runs inside `inputSchema()`. A `target` that marks a field `secret: true` needs `source` to
|
|
326
|
+
* mark it too, or it throws a TypeError.
|
|
100
327
|
*/
|
|
101
|
-
const pipeSchema = (source, target) =>
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
328
|
+
const pipeSchema = (source, target) => {
|
|
329
|
+
requireSecretsOnWire(source, target);
|
|
330
|
+
return {
|
|
331
|
+
...target,
|
|
332
|
+
[SOURCE]: source
|
|
333
|
+
};
|
|
334
|
+
};
|
|
105
335
|
/**
|
|
106
336
|
* Runs `inspect` on a value the schema admits; every `addIssue` refuses the value with that issue. Runs
|
|
107
337
|
* inside `inputSchema()`.
|
|
@@ -240,6 +470,7 @@ function hasUncompiledCodecs(schema) {
|
|
|
240
470
|
}
|
|
241
471
|
function inputSchema(schema, source) {
|
|
242
472
|
const wire = source && Kind in source ? source : void 0;
|
|
473
|
+
if (wire) requireSecretsOnWire(wire, schema);
|
|
243
474
|
const stripUnknown = !wire && source && "stripUnknown" in source && source.stripUnknown === true;
|
|
244
475
|
const projected = projectOwnerInput(schema, Boolean(stripUnknown));
|
|
245
476
|
return Type.Transform(Type.Unsafe(wire ? projectOwnerInput(wire, false) : projected)).Decode((input) => {
|
|
@@ -373,14 +604,21 @@ function boundedInput(value, depth = 0, parents = /* @__PURE__ */ new Set()) {
|
|
|
373
604
|
* handler returns must already be canonical.
|
|
374
605
|
*/
|
|
375
606
|
function decodeSchema(schema, input) {
|
|
607
|
+
return admitSchema(schema, input).value;
|
|
608
|
+
}
|
|
609
|
+
/** Decodes input as `decodeSchema` does, and also answers what the schema checked, before any codec ran. */
|
|
610
|
+
function admitSchema(schema, input) {
|
|
376
611
|
if (!boundedInput(input)) throw new SchemaValidationError([{
|
|
377
612
|
code: "invalid_input",
|
|
378
613
|
message: "Input must be a bounded plain JSON tree.",
|
|
379
614
|
path: []
|
|
380
615
|
}]);
|
|
381
|
-
const
|
|
382
|
-
Value.Assert(schema,
|
|
383
|
-
return
|
|
616
|
+
const checked = Value.Default(schema, Value.Clone(input));
|
|
617
|
+
Value.Assert(schema, checked);
|
|
618
|
+
return {
|
|
619
|
+
value: HasTransform(schema, []) ? TransformDecode(schema, [], checked) : checked,
|
|
620
|
+
checked
|
|
621
|
+
};
|
|
384
622
|
}
|
|
385
623
|
/** The most field issues one refusal carries. */
|
|
386
624
|
const MAX_ISSUES = 10;
|
|
@@ -392,9 +630,20 @@ const MAX_ISSUE_TEXT = 256;
|
|
|
392
630
|
* error that refuses nothing, is thrown for the caller to report: it is the server's failure, not the input's.
|
|
393
631
|
*/
|
|
394
632
|
function decodeInput(schema, input) {
|
|
395
|
-
|
|
633
|
+
const admitted = admitInput(schema, input);
|
|
634
|
+
return admitted.ok ? {
|
|
635
|
+
ok: true,
|
|
636
|
+
value: admitted.value
|
|
637
|
+
} : admitted;
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* `decodeInput`, also answering, for an admitted input, `checked`: the plain JSON its schema checked before any
|
|
641
|
+
* codec ran, the one shape the schema's own keywords describe.
|
|
642
|
+
*/
|
|
643
|
+
function admitInput(schema, input) {
|
|
644
|
+
let admitted;
|
|
396
645
|
try {
|
|
397
|
-
|
|
646
|
+
admitted = admitSchema(schema, input);
|
|
398
647
|
} catch (error) {
|
|
399
648
|
const refused = decodeIssues(error, MAX_ISSUES);
|
|
400
649
|
if (!refused) throw codecFault(error);
|
|
@@ -413,8 +662,9 @@ function decodeInput(schema, input) {
|
|
|
413
662
|
}
|
|
414
663
|
return {
|
|
415
664
|
ok: true,
|
|
416
|
-
value
|
|
665
|
+
value: admitted.value,
|
|
666
|
+
checked: admitted.checked
|
|
417
667
|
};
|
|
418
668
|
}
|
|
419
669
|
|
|
420
|
-
export { wireInput as S,
|
|
670
|
+
export { wireInput as C, withoutSecrets as E, urlSchema as S, withoutSecretKeyword as T, pipeSchema as _, parseSchema as a, stripObject as b, SchemaValidationError as c, hasUncompiledCodecs as d, inputSchema as f, normalizeSchema as g, looseObject as h, parseInput as i, defaultSchema as l, literalUnion as m, decodeInput as n, codecFault as o, inspectSchema as p, decodeSchema as r, decodeIssues as s, admitInput as t, extendObject as u, refineSchema as v, holdsSecrets as w, transformSchema as x, strictObject as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Cr as Failure, E as HttpRoute, T as HttpOptions, dr as Result, er as Principal, in as AppManifest, mn as OperationShape, n as Static, r as TSchema } from "./types-Dqo3oGig.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 {
|
|
1
|
+
import { Ar as TraceParent, Bn as withDiagnostics, Fn as TelemetryConfig, In as diagnosticsEnabled, Ln as recordExecution, Mn as BackgroundContext, Mr as durableCorrelation, Nn as ExecutionObservation, Nr as isRequestId, Pn as Observer, Pr as parseTraceParent, Rn as reportUnexpected, jr as createRequestId, kr as DurableCorrelation, zn as telemetryEnabled } from "./chunks/types-Dqo3oGig.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/diagnostics.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { i as parseTraceParent, n as durableCorrelation, r as isRequestId, t as createRequestId } from "./chunks/correlation-4b23a-a4.js";
|
|
2
|
-
import { a as
|
|
2
|
+
import { a as recordExecution, c as withDiagnostics, n as diagnosticsEnabled, o as reportUnexpected, s as telemetryEnabled, u as createDiagnostics } from "./chunks/telemetry-BtxJh69Q.js";
|
|
3
3
|
|
|
4
4
|
export { createDiagnostics, createRequestId, diagnosticsEnabled, durableCorrelation, isRequestId, parseTraceParent, recordExecution, reportUnexpected, telemetryEnabled, withDiagnostics };
|
package/dist/errors.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Cr as Failure, Dr as resultSchema, Er as defineErrors, Nr as isRequestId, Or as standardErrors, Sr as ErrorFactory, Tr as FailureSchema, br as ErrorCatalog, vr as CreateArguments, wr as FailureData, xr as ErrorDefinition, yr as DefinedErrors } from "./chunks/types-Dqo3oGig.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-CWgE9uvM.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
|
|
1
|
+
import { C as operationPathParameters, S as isPathParameterValue, _ as HttpRouteDefinition, b as decodePathParameter, v as HttpRouteMatch, x as isInputHeaderName, y as createHttpRouteResolver } from "./chunks/types-Dqo3oGig.js";
|
|
2
2
|
export { HttpRouteDefinition, HttpRouteMatch, createHttpRouteResolver, decodePathParameter, isInputHeaderName, isPathParameterValue, operationPathParameters };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as PageInfoSchema, $n as matchesScopes, A as createHttpHandler, At as ContextArguments, B as DeletedObjectSchema, Bt as HandlerOptions, Cr as Failure, D as HttpTransport, Dr as resultSchema, Dt as parseInput, E as HttpRoute, Er as defineErrors, Fn as TelemetryConfig, Ft as HandlerAnswer, G as NamedReferenceSchema, Gn as TokenPolicy, Gt as SchemaOrFields, H as HexColorSchema, Hn as TokenAlgorithm, It as HandlerArguments, J as PostalAddressSchema, Jn as TokenSource, Jt as defineAuth, K as PhoneNumberSchema, Kn as TokenResolutionContext, Kt as ToolDeclaration, L as UuidSchema, Lt as HandlerDeclaration, M as EmptyInputSchema, Mn as BackgroundContext, Mt as DomainCode, N as OrganizationIdSchema, Nn as ExecutionObservation, Nt as Fail, O as RouteContext, Or as standardErrors, Ot as parseSchema, Pn as Observer, Pt as Failed, Q as PageInfo, Qn as ScopeMatch, Qt as defineTool, Rn as reportUnexpected, Rt as HandlerHttp, Sr as ErrorFactory, T as HttpOptions, Tr as FailureSchema, U as HttpsUrlSchema, Un as TokenClaims, Ut as RouteBody, V as EmailAddressSchema, Vn as TokenAccess, Vt as PreparedContext, W as NamedReference, Wn as TokenDevelopment, Wt as SchemaOf, X as SignedUrlSchema, Xn as createTokenVerifier, Xt as defineHandler, Y as SignedUrl, Yn as createTokenAuthorization, Yt as defineContext, Z as Page, Zn as projectToken, Zt as defineTelemetry, _ as HttpRouteDefinition, _r as AttachmentOutputSchema, a as t, an as Exposure, ar as protectedResourceMetadata, br as ErrorCatalog, c as isJsonMediaType, cn as McpConfiguration, cr as BinaryBody, d as retryAfterSeconds, dr as Result, er as Principal, et as PageQuery, f as BodyReadOptions, fn as OperationMiddleware, fr as Success, g as readBodyText, gn as isPublicOperation, gr as Attachment, h as readBodyBytes, hr as ok, i as Type, in as AppManifest, ir as OAuthResource, j as projectAccessToken, jn as AdmissionObservation, jt as ContextDeclaration, k as TransportContext, kt as AuthOptions, l as readJsonBody, ln as McpGuide, lr as BodyFailure, m as HttpBodyFailureReason, mn as OperationShape, mr as isResult, n as Static, nn as ApplicationConfiguration, nr as TokenClient, nt as TPage, o as createOpenApi, on as Invocation, p as HttpBodyFailure, pn as OperationScope, pr as err, q as PostalAddress, qn as TokenScheme, qt as ToolOptions, r as TSchema, rn as maximus, rr as TokenPrincipal, rt as pageLimit, s as createRpcOpenApi, sn as InvocationAuthority, tn as ApplicationBuilder, tr as PrincipalSchema, tt as PageQueryFields, u as readJsonResponse, un as McpSkill, ur as FailureResult, v as HttpRouteMatch, vn as operationMatchesScopes, w as HttpMiddleware, wr as FailureData, xr as ErrorDefinition, y as createHttpRouteResolver, yn as operationScopes, yr as DefinedErrors, z as DeletedObject, zt as HandlerMcp } from "./chunks/types-Dqo3oGig.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,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as standardErrors, n as defineErrors, r as resultSchema, t as FailureSchema } from "./chunks/errors-
|
|
1
|
+
import { a as parseSchema, i as parseInput } from "./chunks/validation-DMu0rkMQ.js";
|
|
2
|
+
import { i as standardErrors, n as defineErrors, r as resultSchema, t as FailureSchema } from "./chunks/errors-CWgE9uvM.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,
|
|
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-
|
|
8
|
-
import { a as maximus, i as protectedResourceMetadata, n as t, r as createHttpHandler, t as Type } from "./chunks/src-
|
|
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, s as projectToken, t as createOpenApi, y as PrincipalSchema } from "./chunks/openapi-BF3eCpux.js";
|
|
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-BOFxZP1c.js";
|
|
8
|
+
import { a as maximus, i as protectedResourceMetadata, n as t, r as createHttpHandler, t as Type } from "./chunks/src-C-4z443M.js";
|
|
9
9
|
import { a as defineTelemetry, i as defineHandler, n as defineAuth, o as defineTool, r as defineContext } from "./chunks/handler-iebR-urt.js";
|
|
10
|
-
import {
|
|
10
|
+
import { o as reportUnexpected } from "./chunks/telemetry-BtxJh69Q.js";
|
|
11
11
|
import { a as retryAfterSeconds, i as readJsonResponse, r as readJsonBody, t as isJsonMediaType } from "./chunks/json-B14evE6-.js";
|
|
12
12
|
|
|
13
13
|
export { AttachmentOutputSchema, DeletedObjectSchema, EmailAddressSchema, EmptyInputSchema, FailureSchema, HexColorSchema, HttpsUrlSchema, NamedReferenceSchema, OrganizationIdSchema, Page, PageInfoSchema, PageQueryFields, PhoneNumberSchema, PostalAddressSchema, PrincipalSchema, SignedUrlSchema, 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/internals.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
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 };
|
|
1
|
+
import { An as executeOperation, Bn as withDiagnostics, D as HttpTransport, Dn as VerifiedCaller, En as CapturedCall, Fn as TelemetryConfig, Ln as recordExecution, Mn as BackgroundContext, On as recordCapture, Sn as CaptureConfig, T as HttpOptions, _ as HttpRouteDefinition, _n as operation, fn as OperationMiddleware, hn as composeOperations, in as AppManifest, k as TransportContext, kn as ExecutionCall, mn as OperationShape, on as Invocation, sn as InvocationAuthority, t as defineApp, v as HttpRouteMatch, y as createHttpRouteResolver, yn as operationScopes, zn as telemetryEnabled } from "./chunks/types-Dqo3oGig.js";
|
|
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 OperationMiddleware, type OperationShape, type TelemetryConfig, type TransportContext, type VerifiedCaller, composeOperations, createHttpRouteResolver, defineApp, executeOperation, operation, operationScopes, recordCapture, 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-BxGZdNmS.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-
|
|
4
|
-
import { a as
|
|
5
|
-
import { t as executeOperation } from "./chunks/execution-
|
|
3
|
+
import { O as operation, T as composeOperations, j as operationScopes } from "./chunks/openapi-BF3eCpux.js";
|
|
4
|
+
import { a as recordExecution, c as withDiagnostics, s as telemetryEnabled } from "./chunks/telemetry-BtxJh69Q.js";
|
|
5
|
+
import { n as recordCapture, t as executeOperation } from "./chunks/execution-BTiAWA4n.js";
|
|
6
6
|
|
|
7
|
-
export { composeOperations, createHttpRouteResolver, defineApp, executeOperation, operation, operationScopes, recordExecution, telemetryEnabled, withDiagnostics };
|
|
7
|
+
export { composeOperations, createHttpRouteResolver, defineApp, executeOperation, operation, operationScopes, recordCapture, recordExecution, telemetryEnabled, withDiagnostics };
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as HttpTransport } from "../chunks/types-Dqo3oGig.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-B9C8KPwa.js");
|
|
17
17
|
return handleMcp(context);
|
|
18
18
|
}
|
|
19
19
|
};
|
package/dist/project/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Kt as ToolDeclaration, Lt as HandlerDeclaration, an as Exposure, dn as OperationHandler, fn as OperationMiddleware, in as AppManifest, jt as ContextDeclaration, mn as OperationShape, on as Invocation, tn as ApplicationBuilder, w as HttpMiddleware } from "../chunks/types-Dqo3oGig.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/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as WorkerOptions, r as WorkerRuntime } from "../chunks/workers-types-
|
|
1
|
+
import { E as HttpRoute, in as AppManifest, mn as OperationShape } from "../chunks/types-Dqo3oGig.js";
|
|
2
|
+
import { n as WorkerOptions, r as WorkerRuntime } from "../chunks/workers-types-BgjyDtGd.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-CWgE9uvM.js";
|
|
2
|
+
import { r as createAssetHandler, t as createWorker } from "../chunks/runtime-D5eR9-Es.js";
|
|
3
|
+
import { t as checkPagePaths } from "../chunks/pages-BCksUeRf.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
|
|
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
|
+
import { $ as PageInfoSchema, B as DeletedObjectSchema, Ct as urlSchema, Dt as parseInput, Et as decodeSchema, F as TSchema, G as NamedReferenceSchema, H as HexColorSchema, I as Type, J as PostalAddressSchema, K as PhoneNumberSchema, L as UuidSchema, M as EmptyInputSchema, N as OrganizationIdSchema, Ot as parseSchema, P as Static, Q as PageInfo, R as t, St as transformSchema, Tt as decodeInput, U as HttpsUrlSchema, V as EmailAddressSchema, W as NamedReference, X as SignedUrlSchema, Y as SignedUrl, Z as Page, _r as AttachmentOutputSchema, _t as normalizeSchema, at as Checked, bn as StaticDecode, bt as strictObject, ct as SchemaInput, dt as defaultSchema, et as PageQuery, ft as extendObject, gr as Attachment, gt as looseObject, ht as literalUnion, it as withoutSecrets, lt as SchemaIssue, mt as inspectSchema, nt as TPage, ot as checkSchema, pt as inputSchema, q as PostalAddress, rt as pageLimit, st as readSchema, tt as PageQueryFields, ut as SchemaValidationError, vt as pipeSchema, wt as InputIssue, xt as stripObject, yt as refineSchema, z as DeletedObject } from "./chunks/types-Dqo3oGig.js";
|
|
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, withoutSecrets };
|
package/dist/schemas.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { _ as pageLimit, a as t, b as readSchema, 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, r as Type, s as EmailAddressSchema, t as EmptyInputSchema, u as NamedReferenceSchema, v as AttachmentOutputSchema, y as checkSchema } from "./chunks/schemas-
|
|
1
|
+
import { E as withoutSecrets, S as urlSchema, _ as pipeSchema, a as parseSchema, b as stripObject, c as SchemaValidationError, f as inputSchema, g as normalizeSchema, h as looseObject, i as parseInput, l as defaultSchema, m as literalUnion, n as decodeInput, p as inspectSchema, r as decodeSchema, u as extendObject, v as refineSchema, x as transformSchema, y as strictObject } from "./chunks/validation-DMu0rkMQ.js";
|
|
2
|
+
import { _ as pageLimit, a as t, b as readSchema, 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, r as Type, s as EmailAddressSchema, t as EmptyInputSchema, u as NamedReferenceSchema, v as AttachmentOutputSchema, y as checkSchema } from "./chunks/schemas-BOFxZP1c.js";
|
|
3
3
|
|
|
4
|
-
export { AttachmentOutputSchema, DeletedObjectSchema, EmailAddressSchema, EmptyInputSchema, HexColorSchema, HttpsUrlSchema, NamedReferenceSchema, OrganizationIdSchema, Page, PageInfoSchema, PageQueryFields, PhoneNumberSchema, PostalAddressSchema, SchemaValidationError, SignedUrlSchema, Type, UuidSchema, checkSchema, decodeInput, decodeSchema, defaultSchema, extendObject, inputSchema, inspectSchema, literalUnion, looseObject, normalizeSchema, pageLimit, parseInput, parseSchema, pipeSchema, readSchema, refineSchema, strictObject, stripObject, t, transformSchema, urlSchema };
|
|
4
|
+
export { AttachmentOutputSchema, DeletedObjectSchema, EmailAddressSchema, EmptyInputSchema, HexColorSchema, HttpsUrlSchema, NamedReferenceSchema, OrganizationIdSchema, Page, PageInfoSchema, PageQueryFields, PhoneNumberSchema, PostalAddressSchema, SchemaValidationError, SignedUrlSchema, Type, UuidSchema, checkSchema, 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 { $t as
|
|
1
|
+
import { $t as STANDARD_FAILURES, en as StandardFailure } from "./chunks/types-Dqo3oGig.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-RcXoq0AF.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 {
|
|
1
|
+
import { Gn as TokenPolicy, Hn as TokenAlgorithm, Wn as TokenDevelopment } from "../chunks/types-Dqo3oGig.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. */
|
|
@@ -35,7 +35,7 @@ interface WebAppOptions {
|
|
|
35
35
|
* What `vite.config.ts` states: the application's configuration, and the Worker's settings as Cloudflare
|
|
36
36
|
* names them. Maximus owns the Worker's entry and, for a web app, its assets; it adds `nodejs_compat` and,
|
|
37
37
|
* under `vp dev`, the development token. The code that completes the application is `errors.ts`, `auth.ts`,
|
|
38
|
-
* `context.ts` and `
|
|
38
|
+
* `context.ts`, `telemetry.ts` and `capture.ts`.
|
|
39
39
|
*/
|
|
40
40
|
interface MaximusOptions extends Omit<WorkerConfig, 'name' | 'entrypoint' | 'env' | 'assets'> {
|
|
41
41
|
/**
|