@guren/server 2.34.0 → 2.36.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/{DocsViewerServiceProvider-BVPZjwQp.js → DocsViewerServiceProvider-DzrxQoYh.js} +15 -4
- package/dist/Event-COT3f5Xd.js +28 -0
- package/dist/{Gate-C252SwRR.js → Gate-BHyDcDKo.js} +45 -5
- package/dist/{HttpException-BlQ2yEmT.js → HttpException-2tfZGamp.js} +8 -2
- package/dist/{McpServiceProvider-CXOokGax.js → McpServiceProvider-BOeQyt7u.js} +2 -0
- package/dist/PrivateChannel-1krGz028.js +187 -0
- package/dist/{Resource-BBKaFgXf.js → Resource-PhnO_wNO.js} +116 -15
- package/dist/agent/derive.d.ts +23 -1
- package/dist/agent/dispatch.d.ts +12 -1
- package/dist/agent/pipeline.d.ts +6 -0
- package/dist/agent/public.d.ts +1 -1
- package/dist/agent/public.js +1 -1
- package/dist/{api-token-DJcqSybf.js → api-token-Cs1myxf6.js} +16 -2
- package/dist/auth/index.js +2 -2
- package/dist/{auth-Bj9uEHuC.js → auth-DYWBlmpS.js} +2 -2
- package/dist/authorization/Gate.d.ts +4 -1
- package/dist/authorization/index.js +2 -2
- package/dist/{authorization-C81TXOWD.js → authorization-rxx6aprN.js} +1 -1
- package/dist/broadcasting/BroadcastManager.d.ts +19 -5
- package/dist/broadcasting/event-target.d.ts +9 -0
- package/dist/broadcasting/index.d.ts +3 -1
- package/dist/broadcasting/index.js +3 -2
- package/dist/broadcasting/sender-envelope.d.ts +26 -0
- package/dist/broadcasting/types.d.ts +27 -2
- package/dist/{broadcasting-3pvO94xV.js → broadcasting-Bh6QoMpy.js} +51 -96
- package/dist/{contained-path-BkNSBljW.js → contained-path-DOVauNQC.js} +1 -22
- package/dist/{context-af2n5abO.js → context--l2HdOhy.js} +1 -1
- package/dist/{dev-banner-B_QaY29h.js → dev-banner-DGxB3HGY.js} +8 -4
- package/dist/{dispatch-ENWpBxbE.js → dispatch-CDNqcB3Q.js} +51 -12
- package/dist/errors/ExceptionHandler.d.ts +5 -1
- package/dist/errors/HttpException.d.ts +6 -0
- package/dist/errors/exceptions/NotFoundHttpException.d.ts +2 -0
- package/dist/errors/wants-html.d.ts +7 -0
- package/dist/{errors-JpkcCjjn.js → errors-C8neC8go.js} +1 -1
- package/dist/events/index.js +2 -1
- package/dist/{events-B6gfJkCH.js → events-DW197Nur.js} +2 -28
- package/dist/http/dev-banner.d.ts +6 -1
- package/dist/http/middleware/csrf.d.ts +1 -1
- package/dist/http/middleware/redirect-safety.d.ts +8 -0
- package/dist/http/vite-dev-server.d.ts +18 -1
- package/dist/http/vite-manifest.d.ts +4 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +305 -161
- package/dist/internal/agent-principal.d.ts +8 -0
- package/dist/internal/testing.d.ts +1 -0
- package/dist/internal/testing.js +4 -4
- package/dist/mcp/index.js +1 -1
- package/dist/mvc/Router.d.ts +13 -0
- package/dist/mvc/inertia/InertiaEngine.d.ts +3 -0
- package/dist/mvc/inertia/props.d.ts +54 -3
- package/dist/providers/InertiaServiceProvider.d.ts +7 -0
- package/dist/runtime/index.js +5 -3
- package/dist/storage/index.js +1 -1
- package/dist/{storage-YPbsV9ju.js → storage-ziIKgHON.js} +2 -1
- package/dist/trim-slashes-BLY9hKAa.js +22 -0
- package/dist/vite/index.d.ts +2 -0
- package/dist/vite/index.js +283 -1
- package/dist/vite/mcp-app.d.ts +59 -0
- package/dist/vite/plugin.d.ts +12 -0
- package/dist/{vite-manifest-DO0pU1vm.js → vite-dev-server-Ag90otai.js} +25 -114
- package/dist/vite-manifest-BdXRybeq.js +129 -0
- package/package.json +1 -1
- package/dist/host-port-t6wQFaRu.js +0 -15
|
@@ -168,30 +168,39 @@ function advertisesStructuredOutput(tool) {
|
|
|
168
168
|
* with the handler's body; other → capped text. An object-`outputSchema` success
|
|
169
169
|
* lacking an object becomes `isError`: the SDK client rejects it after the route ran.
|
|
170
170
|
*/
|
|
171
|
-
async function mapToolResponse(tool, response) {
|
|
171
|
+
async function mapToolResponse(tool, response, requestUrl) {
|
|
172
172
|
const status = response.status;
|
|
173
173
|
const structured = advertisesStructuredOutput(tool);
|
|
174
174
|
if (status === 204 || status >= 300 && status < 400) {
|
|
175
175
|
const location = response.headers.get("Location");
|
|
176
176
|
const text = location ? `HTTP ${status} (Location: ${location})` : `HTTP ${status}`;
|
|
177
|
-
|
|
177
|
+
const facts = location ? { location: resolveLocation(location, requestUrl) } : {};
|
|
178
|
+
if (structured) return {
|
|
179
|
+
...inconsistentOutput(tool, text, status),
|
|
180
|
+
...facts
|
|
181
|
+
};
|
|
178
182
|
return {
|
|
179
183
|
content: [{
|
|
180
184
|
type: "text",
|
|
181
185
|
text
|
|
182
186
|
}],
|
|
183
|
-
status
|
|
187
|
+
status,
|
|
188
|
+
...facts
|
|
184
189
|
};
|
|
185
190
|
}
|
|
186
191
|
const raw = await response.text();
|
|
187
|
-
if (status >= 400)
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
192
|
+
if (status >= 400) {
|
|
193
|
+
const errors = status === 422 ? readValidationErrors(response, raw) : void 0;
|
|
194
|
+
return {
|
|
195
|
+
content: [{
|
|
196
|
+
type: "text",
|
|
197
|
+
text: raw || `HTTP ${status}`
|
|
198
|
+
}],
|
|
199
|
+
isError: true,
|
|
200
|
+
status,
|
|
201
|
+
...errors ? { errors } : {}
|
|
202
|
+
};
|
|
203
|
+
}
|
|
195
204
|
const parsed = parseJsonBody(response, raw);
|
|
196
205
|
if (parsed === void 0) {
|
|
197
206
|
const text = raw.length > TEXT_RESPONSE_CAP ? `${raw.slice(0, TEXT_RESPONSE_CAP)}… [truncated ${raw.length - TEXT_RESPONSE_CAP} characters]` : raw;
|
|
@@ -213,13 +222,15 @@ async function mapToolResponse(tool, response) {
|
|
|
213
222
|
preflightVerdict: true
|
|
214
223
|
};
|
|
215
224
|
const payload = unwrapInertiaProps(tool, response, parsed);
|
|
225
|
+
const inertiaPage = tool.ui?.page === void 0 ? void 0 : readInertiaPage(response, parsed);
|
|
216
226
|
if (structured && !isRecord(payload)) return inconsistentOutput(tool, `a ${Array.isArray(payload) ? "JSON array" : typeof payload} body`, status);
|
|
217
227
|
const outcome = {
|
|
218
228
|
content: [{
|
|
219
229
|
type: "text",
|
|
220
230
|
text: JSON.stringify(payload)
|
|
221
231
|
}],
|
|
222
|
-
status
|
|
232
|
+
status,
|
|
233
|
+
...inertiaPage ? { inertiaPage } : {}
|
|
223
234
|
};
|
|
224
235
|
if (structured && isRecord(payload)) outcome.structuredContent = payload;
|
|
225
236
|
return outcome;
|
|
@@ -247,6 +258,34 @@ function parseJsonBody(response, raw) {
|
|
|
247
258
|
return;
|
|
248
259
|
}
|
|
249
260
|
}
|
|
261
|
+
function resolveLocation(location, requestUrl) {
|
|
262
|
+
if (!requestUrl) return location;
|
|
263
|
+
try {
|
|
264
|
+
return new URL(location, requestUrl).href;
|
|
265
|
+
} catch {
|
|
266
|
+
return location;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
/** `{ errors: { field: string[] } }`, the body a non-Inertia request's `ValidationException` renders. */
|
|
270
|
+
function readValidationErrors(response, raw) {
|
|
271
|
+
const parsed = parseJsonBody(response, raw);
|
|
272
|
+
if (!isRecord(parsed) || !isRecord(parsed.errors)) return void 0;
|
|
273
|
+
const errors = {};
|
|
274
|
+
for (const [field, messages] of Object.entries(parsed.errors)) if (Array.isArray(messages)) errors[field] = messages.map((message) => String(message));
|
|
275
|
+
else if (typeof messages === "string") errors[field] = [messages];
|
|
276
|
+
return errors;
|
|
277
|
+
}
|
|
278
|
+
function readInertiaPage(response, parsed) {
|
|
279
|
+
if (response.headers.get("X-Inertia") !== "true" || !isRecord(parsed)) return void 0;
|
|
280
|
+
const { component, props, url, version } = parsed;
|
|
281
|
+
if (typeof component !== "string" || !isRecord(props) || typeof url !== "string") return void 0;
|
|
282
|
+
return {
|
|
283
|
+
component,
|
|
284
|
+
props,
|
|
285
|
+
url,
|
|
286
|
+
...typeof version === "string" ? { version } : {}
|
|
287
|
+
};
|
|
288
|
+
}
|
|
250
289
|
function unwrapInertiaProps(tool, response, parsed) {
|
|
251
290
|
if (tool.outputSchema) return parsed;
|
|
252
291
|
if (response.headers.get("X-Inertia") !== "true") return parsed;
|
|
@@ -20,7 +20,11 @@ export declare class ExceptionHandler {
|
|
|
20
20
|
protected matchesErrorClass(error: Error, errorClass: ExceptionClass): boolean;
|
|
21
21
|
protected renderException(error: Error, ctx: Context): Promise<Response>;
|
|
22
22
|
protected renderDefaultException(error: Error, ctx: Context): Response;
|
|
23
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* False for Inertia, XHR and JSON callers, which need a JSON payload. The CSRF
|
|
25
|
+
* middleware picks its page by `wants-html.ts` directly, so an override here
|
|
26
|
+
* does not change what a rejected form post answers.
|
|
27
|
+
*/
|
|
24
28
|
protected wantsHtmlResponse(ctx: Context): boolean;
|
|
25
29
|
middleware(): Middleware;
|
|
26
30
|
}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { ErrorResponse } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* The one 404 message the framework writes itself: `HttpException.notFound()`,
|
|
4
|
+
* `NotFoundHttpException`, `denyAsNotFound()`, `abort(404)`, and what the exception
|
|
5
|
+
* handler puts in place of a message naming a record outside debug.
|
|
6
|
+
*/
|
|
7
|
+
export declare const NOT_FOUND_MESSAGE = "Not Found";
|
|
2
8
|
/** Base HTTP exception class. */
|
|
3
9
|
export declare class HttpException extends Error {
|
|
4
10
|
readonly statusCode: number;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { HttpException } from '../HttpException.js';
|
|
2
|
+
/** Whether a `for*()` constructor wrote `error`'s message, which the exception handler replaces outside debug. */
|
|
3
|
+
export declare function hasComposedMessage(error: object): boolean;
|
|
2
4
|
/** 404: the requested resource could not be found. */
|
|
3
5
|
export declare class NotFoundHttpException extends HttpException {
|
|
4
6
|
readonly resourceType?: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Context } from 'hono';
|
|
2
|
+
/**
|
|
3
|
+
* A browser navigation: it accepts HTML and is not an Inertia visit, an XHR or a
|
|
4
|
+
* JSON caller, each of which needs a JSON payload. `ExceptionHandler` and the
|
|
5
|
+
* CSRF middleware both answer an HTML page by this one rule.
|
|
6
|
+
*/
|
|
7
|
+
export declare function wantsHtmlResponse(ctx: Context): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
|
|
2
|
-
import { t as HttpException } from "./HttpException-
|
|
2
|
+
import { t as HttpException } from "./HttpException-2tfZGamp.js";
|
|
3
3
|
//#region src/errors/exceptions/ValidationException.ts
|
|
4
4
|
/** 422: request validation failed. */
|
|
5
5
|
var ValidationException = class ValidationException extends HttpException {
|
package/dist/events/index.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as Event } from "../Event-COT3f5Xd.js";
|
|
2
|
+
import { a as RequestFinished, c as UserLoggedOut, d as EventManager, f as createEventManager, i as JobProcessed, l as createQueueEventDispatcher, n as ApplicationStarted, o as RequestReceived, r as JobFailed, s as UserAuthenticated, t as ApplicationShutdown, u as Listener } from "../events-DW197Nur.js";
|
|
2
3
|
export { ApplicationShutdown, ApplicationStarted, Event, EventManager, JobFailed, JobProcessed, Listener, RequestFinished, RequestReceived, UserAuthenticated, UserLoggedOut, createEventManager, createQueueEventDispatcher };
|
|
@@ -1,32 +1,6 @@
|
|
|
1
1
|
import { t as warnOnce } from "./warn-once-p-IlMjra.js";
|
|
2
|
+
import { n as resolveEventName, t as Event } from "./Event-COT3f5Xd.js";
|
|
2
3
|
import { d as resolveQueueDriver, l as registerJob, p as reportRegistryCollision, t as Job } from "./Job-0Prk8k0z.js";
|
|
3
|
-
//#region src/events/Event.ts
|
|
4
|
-
/** Base class for all application events. */
|
|
5
|
-
var Event = class {
|
|
6
|
-
timestamp = /* @__PURE__ */ new Date();
|
|
7
|
-
/**
|
|
8
|
-
* Stable wire name: queued emits record it and the worker resolves the class
|
|
9
|
-
* back from it. Declare it as a static field to pin the name against a
|
|
10
|
-
* rename or identifier mangling.
|
|
11
|
-
* @default the class name
|
|
12
|
-
*/
|
|
13
|
-
static get eventName() {
|
|
14
|
-
return this.name;
|
|
15
|
-
}
|
|
16
|
-
get eventName() {
|
|
17
|
-
return resolveEventName(this.constructor);
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Only an *own* `eventName` counts: statics are inherited, so reading the
|
|
22
|
-
* prototype chain would make every subclass of a pinned event claim its
|
|
23
|
-
* parent's name and take over its listeners. The base class's own entry is the
|
|
24
|
-
* accessor, which answers with the class name.
|
|
25
|
-
*/
|
|
26
|
-
function resolveEventName(eventClass) {
|
|
27
|
-
return (Object.prototype.hasOwnProperty.call(eventClass, "eventName") ? eventClass.eventName : void 0) ?? eventClass.name;
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
4
|
//#region src/events/serialize.ts
|
|
31
5
|
/**
|
|
32
6
|
* Marks a `Date` inside a queued event's fields. A driver that JSON-encodes the
|
|
@@ -438,4 +412,4 @@ var ApplicationShutdown = class extends Event {
|
|
|
438
412
|
}
|
|
439
413
|
};
|
|
440
414
|
//#endregion
|
|
441
|
-
export { RequestFinished as a, UserLoggedOut as c, EventManager as d, createEventManager as f, JobProcessed as i, createQueueEventDispatcher as l, ApplicationStarted as n, RequestReceived as o,
|
|
415
|
+
export { RequestFinished as a, UserLoggedOut as c, EventManager as d, createEventManager as f, JobProcessed as i, createQueueEventDispatcher as l, ApplicationStarted as n, RequestReceived as o, JobFailed as r, UserAuthenticated as s, ApplicationShutdown as t, Listener as u };
|
|
@@ -3,5 +3,10 @@ export interface DevBannerOptions {
|
|
|
3
3
|
hostname: string;
|
|
4
4
|
port: number;
|
|
5
5
|
assetsUrl?: string;
|
|
6
|
+
/**
|
|
7
|
+
* `managed` when `listen()` started or adopted the Vite dev server at `assetsUrl`; `external` when it
|
|
8
|
+
* started none (`VITE_DEV_SERVER_URL`, `assetsUrl`, `vite: false`, `GUREN_DEV_VITE=0`). Omitted, the line reads `(Vite)`.
|
|
9
|
+
*/
|
|
10
|
+
assetServer?: 'managed' | 'external';
|
|
6
11
|
}
|
|
7
|
-
export declare function logDevServerBanner({ hostname, port, assetsUrl, }: DevBannerOptions): void;
|
|
12
|
+
export declare function logDevServerBanner({ hostname, port, assetsUrl, assetServer, }: DevBannerOptions): void;
|
|
@@ -7,7 +7,7 @@ export declare const CSRF_FORM_FIELD = "_token";
|
|
|
7
7
|
export interface CsrfOptions {
|
|
8
8
|
/** Exact paths ('/api/webhook') or patterns ('/api/*'). */
|
|
9
9
|
exclude?: string[];
|
|
10
|
-
/** Defaults to a 403 JSON response. */
|
|
10
|
+
/** Defaults to a 403 JSON response, or a 419 "Page Expired" page for a browser navigation. */
|
|
11
11
|
onError?: (ctx: Context) => Response | Promise<Response>;
|
|
12
12
|
/** Defaults to ['POST', 'PUT', 'PATCH', 'DELETE']. */
|
|
13
13
|
methods?: string[];
|
|
@@ -9,3 +9,11 @@ export interface RedirectSafetyOptions {
|
|
|
9
9
|
export declare function createRedirectSafetyMiddleware(options?: RedirectSafetyOptions): MiddlewareHandler;
|
|
10
10
|
/** Safe means same-origin as `requestUrl`, or a host in `allowedHosts`. */
|
|
11
11
|
export declare function isSafeRedirectUrl(url: string, requestUrl: string, allowedHosts?: string[]): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* The path of a `Referer` on one of `acceptedHosts` (as `URL.host` spells them,
|
|
14
|
+
* port included), for redirecting back, or `fallback`. A relative Referer resolves
|
|
15
|
+
* against `requestUrl`. The scheme is not compared: behind a TLS-terminating proxy
|
|
16
|
+
* the request reads `http:` while the browser's Referer reads `https:`. Only the
|
|
17
|
+
* path and query are kept, so the browser stays on its own origin.
|
|
18
|
+
*/
|
|
19
|
+
export declare function sameHostRefererPath(referer: string | undefined, requestUrl: string, acceptedHosts: readonly string[], fallback?: string): string;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { InlineConfig, ViteDevServer } from 'vite';
|
|
2
|
+
/**
|
|
3
|
+
* The port `listen()` starts its managed Vite dev server on. `guren browser:serve`
|
|
4
|
+
* restates the name in packages/cli/src/browser-serve.ts; tests/browser-serve.test.ts pins the two.
|
|
5
|
+
*/
|
|
6
|
+
export declare const VITE_PORT_ENV = "GUREN_VITE_PORT";
|
|
2
7
|
export interface StartViteDevServerOptions {
|
|
3
8
|
root?: string;
|
|
4
9
|
config?: InlineConfig;
|
|
@@ -8,17 +13,29 @@ export interface StartViteDevServerOptions {
|
|
|
8
13
|
* the project root, unauthenticated. Pass `true` to expose it on the network.
|
|
9
14
|
*/
|
|
10
15
|
host?: boolean | string;
|
|
16
|
+
/**
|
|
17
|
+
* The port Vite tries first, moving to the next free one when it is busy unless
|
|
18
|
+
* the project sets `server.strictPort`. `listen()` falls back to `GUREN_VITE_PORT`,
|
|
19
|
+
* then to the project's Vite config (5173 with the Guren plugin).
|
|
20
|
+
*/
|
|
11
21
|
port?: number;
|
|
12
22
|
}
|
|
13
23
|
export interface StartedViteDevServer {
|
|
14
24
|
server: ViteDevServer;
|
|
25
|
+
/** Names the port Vite bound, which is not the one asked for after a walk. */
|
|
15
26
|
localUrl: string;
|
|
16
27
|
networkUrls: string[];
|
|
17
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* `GUREN_VITE_PORT` as a port, or `undefined` when it is unset or blank, so the
|
|
31
|
+
* project's Vite config decides. Throws on anything else: a typo silently
|
|
32
|
+
* ignored would put two apps back on the same port.
|
|
33
|
+
*/
|
|
34
|
+
export declare function readViteDevServerPort(value?: string | undefined): number | undefined;
|
|
18
35
|
/**
|
|
19
36
|
* Build the inline config the managed dev server starts with. `server.host` is
|
|
20
37
|
* left undefined unless asked for, so Vite's config merge drops it and the
|
|
21
|
-
* project's own `vite.config.ts` decides.
|
|
38
|
+
* project's own `vite.config.ts` decides; `server.port` likewise.
|
|
22
39
|
*/
|
|
23
40
|
export declare function resolveViteDevServerConfig(options?: StartViteDevServerOptions): InlineConfig;
|
|
24
41
|
export declare function startViteDevServer(options?: StartViteDevServerOptions): Promise<StartedViteDevServer>;
|
|
@@ -11,7 +11,10 @@
|
|
|
11
11
|
* internal/deploy-build.ts; tests/http/vite-manifest.test.ts pins the two equal.
|
|
12
12
|
*/
|
|
13
13
|
export declare const PUBLIC_ASSETS_URL_PREFIX = "/public/assets/";
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* The Vite default the framework assumes when no dev-server URL is set. Not
|
|
16
|
+
* `GUREN_VITE_PORT`: a managed start publishes the URL Vite bound instead.
|
|
17
|
+
*/
|
|
15
18
|
export declare const DEFAULT_DEV_SERVER_URL = "http://localhost:5173";
|
|
16
19
|
/**
|
|
17
20
|
* Production for *asset* purposes: `NODE_ENV` says so and no dev server is
|
package/dist/index.d.ts
CHANGED
|
@@ -18,9 +18,9 @@ export type { ViteAssetOptions } from './http/vite-assets.js';
|
|
|
18
18
|
export { Router } from './mvc/Router.js';
|
|
19
19
|
export { prototype } from './mvc/prototype.js';
|
|
20
20
|
export type { PrototypeFixture, PrototypeFixtureLoader, PrototypeResult, PrototypeRouteHandler, PrototypeServerContext, } from './mvc/prototype.js';
|
|
21
|
-
export type { BindableModel, AgentRouteMetadata, RouteBuilder, RouteContractOptions, RouteDefinition, RouteMiddlewareInput, RouteModelBinding, RouteOpenApiMetadata, ResourceAction as RouteResourceAction, ResourceResponseHint, ResourceResponseShape, ResourceRouteOptions, } from './mvc/Router.js';
|
|
22
|
-
export { deriveAgentTools } from './agent/derive.js';
|
|
23
|
-
export type { AgentToolInputSource, AgentToolSchema, DeriveAgentToolsResult, DerivedAgentTool, DerivedAgentToolAnnotations, DerivedAgentToolExposure, } from './agent/derive.js';
|
|
21
|
+
export type { BindableModel, AgentRouteMetadata, AgentRouteUi, AgentUiPage, RouteBuilder, RouteContractOptions, RouteDefinition, RouteMiddlewareInput, RouteModelBinding, RouteOpenApiMetadata, ResourceAction as RouteResourceAction, ResourceResponseHint, ResourceResponseShape, ResourceRouteOptions, } from './mvc/Router.js';
|
|
22
|
+
export { deriveAgentToolUi, deriveAgentTools } from './agent/derive.js';
|
|
23
|
+
export type { AgentToolInputSource, AgentToolSchema, DeriveAgentToolsResult, DerivedAgentTool, DerivedAgentToolAnnotations, DerivedAgentToolExposure, DerivedAgentToolUi, } from './agent/derive.js';
|
|
24
24
|
export { advertisesStructuredOutput, buildToolRequest, describeBuildFailure, mapToolResponse, PREFLIGHT_ARGUMENT, } from './agent/dispatch.js';
|
|
25
25
|
export type { BuildToolRequestOptions, BuiltToolRequest, ToolCallOutcome, ToolRequestBuildFailure, } from './agent/dispatch.js';
|
|
26
26
|
export { APPROVAL_STATUS_TOOL_NAME, isReservedAgentToolName, PORTABLE_AGENT_TOOL_NAME_PATTERN, PREFLIGHT_TOOL_NAME, RESERVED_AGENT_TOOL_NAMES, } from './agent/meta-tools.js';
|
|
@@ -48,8 +48,8 @@ export { approvalStatusNotFoundMessage, toApprovalStatusReport } from './agent/a
|
|
|
48
48
|
export type { ApprovalStatusOutcome, ApprovalStatusReport } from './agent/approval-status.js';
|
|
49
49
|
export { ViewEngine } from './mvc/ViewEngine.js';
|
|
50
50
|
export { inertia, setInertiaSsrRenderer, setInertiaDocument } from './mvc/inertia/InertiaEngine.js';
|
|
51
|
-
export { always, defer, isAlwaysProp, isDeferredProp } from './mvc/inertia/props.js';
|
|
52
|
-
export type { AlwaysProp, DeferredProp, InertiaPropInput, InertiaPropsInput, ResolvedInertiaProp, ResolvedInertiaProps, } from './mvc/inertia/props.js';
|
|
51
|
+
export { always, defer, isAlwaysProp, isDeferredProp, isLiveProp, live } from './mvc/inertia/props.js';
|
|
52
|
+
export type { AlwaysProp, DeferredProp, LiveChannelType, LiveEvent, LiveListener, LiveListenerInput, LiveOptions, LiveProp, LivePropEntry, InertiaPropInput, InertiaPropsInput, ResolvedInertiaProp, ResolvedInertiaProps, } from './mvc/inertia/props.js';
|
|
53
53
|
export { setInertiaSharedProps, getInertiaSharedPropsResolver, shareInertiaProps } from './mvc/inertia/shared.js';
|
|
54
54
|
export type { InertiaDocumentContext, InertiaDocumentOptions, InertiaOptions, InertiaPagePayload, InertiaSsrContext, InertiaSsrOptions, InertiaSsrRenderer, InertiaSsrResult, } from './mvc/inertia/InertiaEngine.js';
|
|
55
55
|
export type { SharedInertiaPropsResolver, InertiaSharedProps, ResolvedSharedInertiaProps, SharedPropsContainer, } from './mvc/inertia/shared.js';
|
|
@@ -86,8 +86,8 @@ export { HealthCheck, HealthManager, createHealthManager, DatabaseCheck, RedisCh
|
|
|
86
86
|
export type { HealthStatus, CheckResult, HealthReport, HealthCheckOptions, HealthMiddlewareOptions, DatabaseConnection, DatabaseCheckOptions, RedisClient, RedisCheckOptions, CacheStoreInterface, CacheCheckOptions, StorageDriverInterface, StorageCheckOptions, MemoryCheckOptions, CustomCheckCallback, } from './health/index.js';
|
|
87
87
|
export { Notification, NotificationManager, createNotificationManager, setNotificationManager, getNotificationManager, MailChannel, DatabaseChannel, SlackChannel, MemoryChannel, registerNotification, getNotification, clearNotificationRegistry, resolveNotifiableType, } from './notifications/index.js';
|
|
88
88
|
export type { NotificationConstructor, NotificationChannel, Notifiable, DatabaseNotification, NotificationMailMessage, NotificationAttachment, SlackMessage, SlackBlock, SlackAttachment, NotificationChannelFactory, NotificationManagerOptions, DatabaseChannelOptions, SentNotification, NotificationClass, MailChannelOptions, SlackChannelOptions, } from './notifications/index.js';
|
|
89
|
-
export { BroadcastManager, createBroadcastManager, setBroadcastManager, getBroadcastManager, Channel, PrivateChannel, PresenceChannel, MemoryDriver as MemoryBroadcastDriver, RedisDriver as RedisBroadcastDriver, } from './broadcasting/index.js';
|
|
90
|
-
export type { BroadcastEvent, BroadcastDriver, PresenceBroadcastDriver, ChannelAuthorizer, PresenceChannelAuthorizer, PresenceMember, SSEClient, WebSocketClient, BroadcastManagerOptions, BroadcastDriverFactory, ChannelRegistration, SSEMiddlewareOptions, WebSocketMiddlewareOptions, AuthMiddlewareOptions, BroadcastableEvent, MemoryDriverOptions as BroadcastMemoryDriverOptions, RedisClient as BroadcastRedisClient, RedisDriverOptions as BroadcastRedisDriverOptions, } from './broadcasting/index.js';
|
|
89
|
+
export { BroadcastManager, createBroadcastManager, setBroadcastManager, getBroadcastManager, Channel, PrivateChannel, PresenceChannel, MemoryDriver as MemoryBroadcastDriver, RedisDriver as RedisBroadcastDriver, broadcastChannelsOf, broadcastNameOf, } from './broadcasting/index.js';
|
|
90
|
+
export type { BroadcastEvent, BroadcastDriver, PresenceBroadcastDriver, ChannelAuthorizer, PresenceChannelAuthorizer, PresenceMember, SSEClient, WebSocketClient, BroadcastManagerOptions, BroadcastDriverFactory, ChannelRegistration, SSEMiddlewareOptions, WebSocketMiddlewareOptions, AuthMiddlewareOptions, BroadcastableEvent, BroadcastEventOptions, BroadcastSender, BroadcastTarget, MemoryDriverOptions as BroadcastMemoryDriverOptions, RedisClient as BroadcastRedisClient, RedisDriverOptions as BroadcastRedisDriverOptions, } from './broadcasting/index.js';
|
|
91
91
|
export { Container, createContainer, resolveOptional, setContainer, getContainer, resolve, ServiceProvider, ProviderManager, definePlugin, defineModule, mountModuleRoutes, } from './container/index.js';
|
|
92
92
|
export type { ContainerLike, PluginDefinition, PluginFactory, ModuleDefinition, GurenModule, ServiceFactory, ServiceClass, ServiceBinding, ServiceBindings, ContextualBindingBuilder, ContextualNeedsBuilder, ContextualBinding, ServiceProviderOptions, Provider as ContainerProvider, ServiceProviderClass, } from './container/index.js';
|
|
93
93
|
export { HttpException, ExceptionHandler, createExceptionHandler, setExceptionHandler, getExceptionHandler, abort, abortIf, abortUnless, ValidationException, AuthenticationException, AuthorizationException, NotFoundHttpException, MethodNotAllowedException, } from './errors/index.js';
|