@guren/server 1.4.0 → 2.0.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/{AuthManager-C84xF5ks.d.ts → AuthManager-DBP4KYsx.d.ts} +1 -1
- package/dist/ConsoleKernel-DlK9j2Lu.d.ts +101 -0
- package/dist/DocsViewerServiceProvider-D7RGJPGM.js +75 -0
- package/dist/{I18nManager-CmUqj6bU.d.ts → I18nManager-BiSoczfV.d.ts} +1 -1
- package/dist/McpServiceProvider-7BB5FPF3.js +8 -0
- package/dist/auth/index.d.ts +39 -29
- package/dist/auth/index.js +2 -2
- package/dist/broadcasting/index.js +2 -2
- package/dist/cache/index.js +2 -2
- package/dist/chunk-2V3YID4H.js +20 -0
- package/dist/{chunk-JIT7QVMJ.js → chunk-4DW4GRWF.js} +3 -3
- package/dist/{chunk-R2TCP7D7.js → chunk-6J6B5KOB.js} +18 -2
- package/dist/chunk-AZOYI43J.js +18 -0
- package/dist/{chunk-DCYKSYAT.js → chunk-B5E5VBDI.js} +54 -2
- package/dist/{chunk-NYQGAWDN.js → chunk-BZMZEFRG.js} +7 -11
- package/dist/{chunk-4SBGSJNT.js → chunk-CWI4AJ47.js} +2 -1
- package/dist/{chunk-NQCZQAJL.js → chunk-DSDX3ASM.js} +21 -2
- package/dist/{chunk-MC752CQT.js → chunk-EI5GYMAT.js} +2 -1
- package/dist/{chunk-AUXQISW5.js → chunk-HONCNQXZ.js} +38 -5
- package/dist/{chunk-CSRQTEQA.js → chunk-HWEWL6TE.js} +6 -1
- package/dist/chunk-JBG4AR24.js +18 -0
- package/dist/{chunk-EDRGAM6G.js → chunk-K6CUBJX6.js} +11 -16
- package/dist/{chunk-WJJ5CTNI.js → chunk-KTNJG7R7.js} +6 -2
- package/dist/{chunk-74HTZG3V.js → chunk-LAJQCSSF.js} +24 -0
- package/dist/{chunk-H32L2NE3.js → chunk-LVJCZCAV.js} +20 -13
- package/dist/{chunk-CSDKWLFD.js → chunk-N7PLD7MB.js} +120 -43
- package/dist/{chunk-ONSDE37A.js → chunk-SFQP6O52.js} +1 -0
- package/dist/{chunk-XMQZENBP.js → chunk-TVY72CLV.js} +3 -1
- package/dist/chunk-WIXGT4TN.js +18 -0
- package/dist/{email-verification-H_WlpsVH.d.ts → email-verification-D8N7P6Pu.d.ts} +1 -1
- package/dist/encryption/index.js +2 -2
- package/dist/events/index.js +1 -1
- package/dist/i18n/index.d.ts +2 -2
- package/dist/index.d.ts +348 -330
- package/dist/index.js +332 -110
- package/dist/lambda/index.d.ts +5 -5
- package/dist/lambda/index.js +1 -1
- package/dist/mail/index.js +4 -3
- package/dist/mcp/index.d.ts +14 -4
- package/dist/mcp/index.js +3 -2
- package/dist/notifications/index.d.ts +55 -6
- package/dist/notifications/index.js +12 -3
- package/dist/queue/index.d.ts +5 -5
- package/dist/queue/index.js +4 -2
- package/dist/redis/index.d.ts +4 -4
- package/dist/redis/index.js +7 -0
- package/dist/runtime/index.d.ts +5 -5
- package/dist/runtime/index.js +24 -9
- package/dist/scheduling/index.js +2 -2
- package/dist/storage/index.js +2 -1
- package/dist/{Application-BvBqgc2k.d.ts → validation-CDR7lRE8.d.ts} +873 -654
- package/package.json +3 -3
- package/dist/ConsoleKernel-Dw9X9qZY.d.ts +0 -207
- package/dist/McpServiceProvider-TZWQWXCT.js +0 -7
- package/dist/{api-token-COQHXyM_.d.ts → api-token-D24VPr_E.d.ts} +101 -101
- package/dist/{client-BQwF2b9Y.d.ts → rate-limit-D9J2b4S1.d.ts} +36 -36
package/dist/lambda/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as hono_aws_lambda from 'hono/aws-lambda';
|
|
2
2
|
export { APIGatewayProxyResult, LambdaEvent } from 'hono/aws-lambda';
|
|
3
|
-
import { A as Application } from '../
|
|
3
|
+
import { A as Application } from '../validation-CDR7lRE8.js';
|
|
4
4
|
import { S as Scheduler } from '../Scheduler-pZiT8i57.js';
|
|
5
|
-
import { C as ConsoleKernel } from '../ConsoleKernel-
|
|
5
|
+
import { C as ConsoleKernel } from '../ConsoleKernel-DlK9j2Lu.js';
|
|
6
6
|
import 'hono';
|
|
7
|
-
import '../api-token-
|
|
8
|
-
import '../AuthManager-
|
|
7
|
+
import '../api-token-D24VPr_E.js';
|
|
8
|
+
import '../AuthManager-DBP4KYsx.js';
|
|
9
9
|
import '@guren/orm';
|
|
10
10
|
import 'vite';
|
|
11
11
|
import '../EventManager-CmIoLt7r.js';
|
|
12
12
|
import '../CacheManager-BmDzUKrF.js';
|
|
13
13
|
import '../MailManager-DpMvYiP9.js';
|
|
14
14
|
import '../LogManager-7mxnkaPM.js';
|
|
15
|
-
import '../I18nManager-
|
|
15
|
+
import '../I18nManager-BiSoczfV.js';
|
|
16
16
|
import '../BroadcastManager-D8KoJxiV.js';
|
|
17
17
|
import '../index-9_Jzj5jo.js';
|
|
18
18
|
import '../app-key-CsBfRC_Q.js';
|
package/dist/lambda/index.js
CHANGED
package/dist/mail/index.js
CHANGED
|
@@ -9,9 +9,10 @@ import {
|
|
|
9
9
|
getMailManager,
|
|
10
10
|
mail,
|
|
11
11
|
setMailManager
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-K6CUBJX6.js";
|
|
13
|
+
import "../chunk-2V3YID4H.js";
|
|
14
|
+
import "../chunk-KTNJG7R7.js";
|
|
15
|
+
import "../chunk-6J6B5KOB.js";
|
|
15
16
|
export {
|
|
16
17
|
LogTransport,
|
|
17
18
|
Mail,
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
-
import { S as ServiceProvider } from '../
|
|
2
|
+
import { S as ServiceProvider } from '../validation-CDR7lRE8.js';
|
|
3
3
|
import 'hono';
|
|
4
|
-
import '../api-token-
|
|
5
|
-
import '../AuthManager-
|
|
4
|
+
import '../api-token-D24VPr_E.js';
|
|
5
|
+
import '../AuthManager-DBP4KYsx.js';
|
|
6
6
|
import '@guren/orm';
|
|
7
7
|
import 'vite';
|
|
8
8
|
import '../EventManager-CmIoLt7r.js';
|
|
9
9
|
import '../CacheManager-BmDzUKrF.js';
|
|
10
10
|
import '../MailManager-DpMvYiP9.js';
|
|
11
11
|
import '../LogManager-7mxnkaPM.js';
|
|
12
|
-
import '../I18nManager-
|
|
12
|
+
import '../I18nManager-BiSoczfV.js';
|
|
13
13
|
import '../BroadcastManager-D8KoJxiV.js';
|
|
14
14
|
import '../index-9_Jzj5jo.js';
|
|
15
15
|
import '../app-key-CsBfRC_Q.js';
|
|
@@ -147,6 +147,16 @@ interface GurenCliApi {
|
|
|
147
147
|
* runtime and may predate it — see `McpServiceProvider`.
|
|
148
148
|
*/
|
|
149
149
|
createFreshContextApi?: () => Pick<GurenCliApi, 'generateContext' | 'generateEntityContext'>;
|
|
150
|
+
/**
|
|
151
|
+
* The OKF docs relation graph (RFC 0005). Optional for the same
|
|
152
|
+
* runtime-resolution reason as above.
|
|
153
|
+
*/
|
|
154
|
+
buildDocsGraphReport?(options: {
|
|
155
|
+
cwd?: string;
|
|
156
|
+
entity?: string;
|
|
157
|
+
path?: string;
|
|
158
|
+
}): Promise<unknown>;
|
|
159
|
+
renderDocsGraphMarkdown?(report: unknown): string;
|
|
150
160
|
}
|
|
151
161
|
interface CreateMcpServerOptions {
|
|
152
162
|
cwd: string;
|
package/dist/mcp/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
McpServiceProvider,
|
|
3
3
|
createMcpServer
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-DSDX3ASM.js";
|
|
5
|
+
import "../chunk-JBG4AR24.js";
|
|
6
|
+
import "../chunk-BZMZEFRG.js";
|
|
6
7
|
export {
|
|
7
8
|
McpServiceProvider,
|
|
8
9
|
createMcpServer
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { ab as Notification, aa as Notifiable, ad as NotificationChannel, B as DatabaseNotification, z as DatabaseChannelOptions, aJ as SlackMessage, aA as SentNotification } from '../validation-CDR7lRE8.js';
|
|
2
|
+
export { ac as NotificationAttachment, ae as NotificationChannelFactory, af as NotificationClass, ag as NotificationMailMessage, N as NotificationManager, ah as NotificationManagerOptions, aH as SlackAttachment, aI as SlackBlock, aX as createNotificationManager, b6 as getNotificationManager, bl as setNotificationManager } from '../validation-CDR7lRE8.js';
|
|
3
3
|
import { M as MailManager } from '../MailManager-DpMvYiP9.js';
|
|
4
4
|
import 'hono';
|
|
5
|
-
import '../api-token-
|
|
6
|
-
import '../AuthManager-
|
|
5
|
+
import '../api-token-D24VPr_E.js';
|
|
6
|
+
import '../AuthManager-DBP4KYsx.js';
|
|
7
7
|
import '@guren/orm';
|
|
8
8
|
import 'vite';
|
|
9
9
|
import '../EventManager-CmIoLt7r.js';
|
|
10
10
|
import '../CacheManager-BmDzUKrF.js';
|
|
11
11
|
import '../LogManager-7mxnkaPM.js';
|
|
12
|
-
import '../I18nManager-
|
|
12
|
+
import '../I18nManager-BiSoczfV.js';
|
|
13
13
|
import '../BroadcastManager-D8KoJxiV.js';
|
|
14
14
|
import '../index-9_Jzj5jo.js';
|
|
15
15
|
import '../app-key-CsBfRC_Q.js';
|
|
@@ -18,6 +18,55 @@ import '../HealthManager-DUyMIzsZ.js';
|
|
|
18
18
|
import '../Scheduler-pZiT8i57.js';
|
|
19
19
|
import '../Gate-CynjZCtS.js';
|
|
20
20
|
|
|
21
|
+
/**
|
|
22
|
+
* A notification class usable for queue reconstruction.
|
|
23
|
+
*
|
|
24
|
+
* Only the prototype and name are required: queued notifications are rebuilt
|
|
25
|
+
* with `Object.create(prototype)` and never constructed, so classes with
|
|
26
|
+
* required constructor arguments are supported.
|
|
27
|
+
*/
|
|
28
|
+
interface NotificationConstructor {
|
|
29
|
+
readonly name: string;
|
|
30
|
+
readonly prototype: Notification;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Register a notification class so queued instances can be rebuilt.
|
|
34
|
+
*
|
|
35
|
+
* Notifications are registered automatically when they are queued, which
|
|
36
|
+
* covers delivery by a worker running in the same process. A worker running
|
|
37
|
+
* in a separate process must register them explicitly at boot.
|
|
38
|
+
*
|
|
39
|
+
* Type names must be unique within an application: as with the job registry,
|
|
40
|
+
* registering a second class under an existing type replaces the first.
|
|
41
|
+
*
|
|
42
|
+
* @param notificationClass - The notification class to register
|
|
43
|
+
* @param type - Registry key, defaulting to the class's own `type` value
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
* registerNotification(OrderShipped)
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
declare function registerNotification(notificationClass: NotificationConstructor, type?: string): void;
|
|
51
|
+
/**
|
|
52
|
+
* Get a registered notification class by type.
|
|
53
|
+
*/
|
|
54
|
+
declare function getNotification(type: string): NotificationConstructor | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Clear all registered notifications (for testing).
|
|
57
|
+
*/
|
|
58
|
+
declare function clearNotificationRegistry(): void;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Resolve the stable type name of a notifiable.
|
|
62
|
+
*
|
|
63
|
+
* Channels that record which entity a notification belongs to should use this
|
|
64
|
+
* rather than reading `constructor.name` directly: a notifiable rebuilt from a
|
|
65
|
+
* queue payload carries its original name in `notifiableType`, and its
|
|
66
|
+
* constructor is a plain object.
|
|
67
|
+
*/
|
|
68
|
+
declare function resolveNotifiableType(notifiable: Notifiable): string;
|
|
69
|
+
|
|
21
70
|
/**
|
|
22
71
|
* Mail notification channel.
|
|
23
72
|
*
|
|
@@ -270,4 +319,4 @@ declare class MemoryChannel implements NotificationChannel {
|
|
|
270
319
|
clear(): void;
|
|
271
320
|
}
|
|
272
321
|
|
|
273
|
-
export { DatabaseChannel, DatabaseChannelOptions, DatabaseNotification, MailChannel, type MailChannelOptions, MemoryChannel, Notifiable, Notification, NotificationChannel, SentNotification, SlackChannel, type SlackChannelOptions, SlackMessage };
|
|
322
|
+
export { DatabaseChannel, DatabaseChannelOptions, DatabaseNotification, MailChannel, type MailChannelOptions, MemoryChannel, Notifiable, Notification, NotificationChannel, type NotificationConstructor, SentNotification, SlackChannel, type SlackChannelOptions, SlackMessage, clearNotificationRegistry, getNotification, registerNotification, resolveNotifiableType };
|
|
@@ -5,12 +5,17 @@ import {
|
|
|
5
5
|
Notification,
|
|
6
6
|
NotificationManager,
|
|
7
7
|
SlackChannel,
|
|
8
|
+
clearNotificationRegistry,
|
|
8
9
|
createNotificationManager,
|
|
10
|
+
getNotification,
|
|
9
11
|
getNotificationManager,
|
|
12
|
+
registerNotification,
|
|
13
|
+
resolveNotifiableType,
|
|
10
14
|
setNotificationManager
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-N7PLD7MB.js";
|
|
16
|
+
import "../chunk-2V3YID4H.js";
|
|
17
|
+
import "../chunk-KTNJG7R7.js";
|
|
18
|
+
import "../chunk-6J6B5KOB.js";
|
|
14
19
|
export {
|
|
15
20
|
DatabaseChannel,
|
|
16
21
|
MailChannel,
|
|
@@ -18,7 +23,11 @@ export {
|
|
|
18
23
|
Notification,
|
|
19
24
|
NotificationManager,
|
|
20
25
|
SlackChannel,
|
|
26
|
+
clearNotificationRegistry,
|
|
21
27
|
createNotificationManager,
|
|
28
|
+
getNotification,
|
|
22
29
|
getNotificationManager,
|
|
30
|
+
registerNotification,
|
|
31
|
+
resolveNotifiableType,
|
|
23
32
|
setNotificationManager
|
|
24
33
|
};
|
package/dist/queue/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { am as QueueDriver, ao as QueuedJob, M as FailedJob, aN as WorkerOptions } from '../validation-CDR7lRE8.js';
|
|
2
|
+
export { a4 as Job, a5 as JobClass, a6 as JobFailureHandler, a7 as JobHandler, a8 as JobOptions, al as QueueConfig, an as QueueDriverFactory, Q as QueueManager, aR as clearJobRegistry, aY as createQueueManager, b5 as getJob, b7 as getQueueDriver, b8 as getRegisteredJobs, bd as registerJob, bf as resolveJobName, bm as setQueueDriver } from '../validation-CDR7lRE8.js';
|
|
3
3
|
import { Redis } from 'ioredis';
|
|
4
4
|
import 'hono';
|
|
5
|
-
import '../api-token-
|
|
6
|
-
import '../AuthManager-
|
|
5
|
+
import '../api-token-D24VPr_E.js';
|
|
6
|
+
import '../AuthManager-DBP4KYsx.js';
|
|
7
7
|
import '@guren/orm';
|
|
8
8
|
import 'vite';
|
|
9
9
|
import '../EventManager-CmIoLt7r.js';
|
|
10
10
|
import '../CacheManager-BmDzUKrF.js';
|
|
11
11
|
import '../MailManager-DpMvYiP9.js';
|
|
12
12
|
import '../LogManager-7mxnkaPM.js';
|
|
13
|
-
import '../I18nManager-
|
|
13
|
+
import '../I18nManager-BiSoczfV.js';
|
|
14
14
|
import '../BroadcastManager-D8KoJxiV.js';
|
|
15
15
|
import '../index-9_Jzj5jo.js';
|
|
16
16
|
import '../app-key-CsBfRC_Q.js';
|
package/dist/queue/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
createQueueManager,
|
|
10
10
|
createSqsAdapter,
|
|
11
11
|
processJob
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-KTNJG7R7.js";
|
|
13
13
|
import {
|
|
14
14
|
Job,
|
|
15
15
|
clearJobRegistry,
|
|
@@ -17,8 +17,9 @@ import {
|
|
|
17
17
|
getQueueDriver,
|
|
18
18
|
getRegisteredJobs,
|
|
19
19
|
registerJob,
|
|
20
|
+
resolveJobName,
|
|
20
21
|
setQueueDriver
|
|
21
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-6J6B5KOB.js";
|
|
22
23
|
export {
|
|
23
24
|
FailedJobReporter,
|
|
24
25
|
Job,
|
|
@@ -36,5 +37,6 @@ export {
|
|
|
36
37
|
getRegisteredJobs,
|
|
37
38
|
processJob,
|
|
38
39
|
registerJob,
|
|
40
|
+
resolveJobName,
|
|
39
41
|
setQueueDriver
|
|
40
42
|
};
|
package/dist/redis/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { R as RateLimitStore, a as RateLimitEntry } from '../
|
|
2
|
-
export { b as RedisClientOptions, c as createRedisClient } from '../
|
|
1
|
+
import { R as RateLimitStore, a as RateLimitEntry } from '../rate-limit-D9J2b4S1.js';
|
|
2
|
+
export { b as RedisClientOptions, c as createRedisClient } from '../rate-limit-D9J2b4S1.js';
|
|
3
3
|
import { Redis } from 'ioredis';
|
|
4
4
|
export { default as Redis, RedisOptions } from 'ioredis';
|
|
5
|
-
import { S as SessionStore, h as SessionData, i as ApiTokenStore, j as ApiToken, O as OAuthStateStore, k as OAuthStatePayload } from '../api-token-
|
|
6
|
-
import { P as PasswordResetTokenStore, E as EmailVerificationTokenStore, a as EmailVerificationToken } from '../email-verification-
|
|
5
|
+
import { S as SessionStore, h as SessionData, i as ApiTokenStore, j as ApiToken, O as OAuthStateStore, k as OAuthStatePayload } from '../api-token-D24VPr_E.js';
|
|
6
|
+
import { P as PasswordResetTokenStore, E as EmailVerificationTokenStore, a as EmailVerificationToken } from '../email-verification-D8N7P6Pu.js';
|
|
7
7
|
import 'hono';
|
|
8
8
|
|
|
9
9
|
/**
|
package/dist/redis/index.js
CHANGED
|
@@ -21,6 +21,7 @@ var RedisSessionStore = class {
|
|
|
21
21
|
this.redis = redis;
|
|
22
22
|
this.prefix = options.prefix ?? "session:";
|
|
23
23
|
}
|
|
24
|
+
redis;
|
|
24
25
|
prefix;
|
|
25
26
|
/**
|
|
26
27
|
* Read session data from Redis.
|
|
@@ -107,6 +108,7 @@ var RedisRateLimitStore = class {
|
|
|
107
108
|
this.redis = redis;
|
|
108
109
|
this.prefix = options.prefix ?? "ratelimit:";
|
|
109
110
|
}
|
|
111
|
+
redis;
|
|
110
112
|
prefix;
|
|
111
113
|
/**
|
|
112
114
|
* Get current rate limit entry for a key.
|
|
@@ -173,6 +175,7 @@ var RedisSlidingWindowRateLimitStore = class {
|
|
|
173
175
|
this.redis = redis;
|
|
174
176
|
this.prefix = options.prefix ?? "ratelimit:sw:";
|
|
175
177
|
}
|
|
178
|
+
redis;
|
|
176
179
|
prefix;
|
|
177
180
|
/**
|
|
178
181
|
* Get current rate limit entry for a key.
|
|
@@ -233,6 +236,7 @@ var RedisApiTokenStore = class {
|
|
|
233
236
|
this.redis = redis;
|
|
234
237
|
this.prefix = options.prefix ?? "apitoken:";
|
|
235
238
|
}
|
|
239
|
+
redis;
|
|
236
240
|
prefix;
|
|
237
241
|
/**
|
|
238
242
|
* Store a new API token.
|
|
@@ -372,6 +376,7 @@ var RedisPasswordResetStore = class {
|
|
|
372
376
|
this.redis = redis;
|
|
373
377
|
this.prefix = options.prefix ?? "pwreset:";
|
|
374
378
|
}
|
|
379
|
+
redis;
|
|
375
380
|
prefix;
|
|
376
381
|
/**
|
|
377
382
|
* Store a password reset token.
|
|
@@ -455,6 +460,7 @@ var RedisEmailVerificationStore = class {
|
|
|
455
460
|
this.redis = redis;
|
|
456
461
|
this.prefix = options.prefix ?? "emailverify:";
|
|
457
462
|
}
|
|
463
|
+
redis;
|
|
458
464
|
prefix;
|
|
459
465
|
/**
|
|
460
466
|
* Store an email verification token.
|
|
@@ -552,6 +558,7 @@ var RedisOAuthStateStore = class {
|
|
|
552
558
|
this.redis = redis;
|
|
553
559
|
this.prefix = options.prefix ?? "oauthstate:";
|
|
554
560
|
}
|
|
561
|
+
redis;
|
|
555
562
|
prefix;
|
|
556
563
|
async store(stateHash, payload) {
|
|
557
564
|
const ttlMs = Math.max(0, payload.expiresAt.getTime() - Date.now());
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { A as Application } from '../
|
|
2
|
-
export { D as DevBannerOptions, G as GUREN_ASCII_ART,
|
|
1
|
+
import { A as Application } from '../validation-CDR7lRE8.js';
|
|
2
|
+
export { D as DevBannerOptions, G as GUREN_ASCII_ART, c as StartViteDevServerOptions, d as StartedViteDevServer, l as logDevServerBanner, s as startViteDevServer } from '../validation-CDR7lRE8.js';
|
|
3
3
|
import 'hono';
|
|
4
|
-
import '../api-token-
|
|
5
|
-
import '../AuthManager-
|
|
4
|
+
import '../api-token-D24VPr_E.js';
|
|
5
|
+
import '../AuthManager-DBP4KYsx.js';
|
|
6
6
|
import '@guren/orm';
|
|
7
7
|
import 'vite';
|
|
8
8
|
import '../EventManager-CmIoLt7r.js';
|
|
9
9
|
import '../CacheManager-BmDzUKrF.js';
|
|
10
10
|
import '../MailManager-DpMvYiP9.js';
|
|
11
11
|
import '../LogManager-7mxnkaPM.js';
|
|
12
|
-
import '../I18nManager-
|
|
12
|
+
import '../I18nManager-BiSoczfV.js';
|
|
13
13
|
import '../BroadcastManager-D8KoJxiV.js';
|
|
14
14
|
import '../index-9_Jzj5jo.js';
|
|
15
15
|
import '../app-key-CsBfRC_Q.js';
|
package/dist/runtime/index.js
CHANGED
|
@@ -3,7 +3,10 @@ import {
|
|
|
3
3
|
logDevServerBanner,
|
|
4
4
|
parseImportMap,
|
|
5
5
|
startViteDevServer
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-4DW4GRWF.js";
|
|
7
|
+
import {
|
|
8
|
+
trimTrailingSlashes
|
|
9
|
+
} from "../chunk-AZOYI43J.js";
|
|
7
10
|
import {
|
|
8
11
|
hash
|
|
9
12
|
} from "../chunk-QQKTH5KX.js";
|
|
@@ -40,7 +43,7 @@ function registerRootPublicAssets(app, publicDir, config) {
|
|
|
40
43
|
return;
|
|
41
44
|
}
|
|
42
45
|
const { extensions, cacheControlHeader, routePrefix, contentTypeMap } = normalized;
|
|
43
|
-
const normalizedPrefix = routePrefix ? routePrefix
|
|
46
|
+
const normalizedPrefix = routePrefix ? trimTrailingSlashes(routePrefix) || "/" : void 0;
|
|
44
47
|
app.hono.use(async (ctx, next) => {
|
|
45
48
|
const path = ctx.req.path;
|
|
46
49
|
if (!path || path === "/" || path.startsWith("/public/")) {
|
|
@@ -109,6 +112,14 @@ function normalizeExtension(value) {
|
|
|
109
112
|
var DEFAULT_PREFIX = "/resources/js";
|
|
110
113
|
var DEFAULT_VENDOR_PATH = "/vendor/inertia-client.tsx";
|
|
111
114
|
var DEFAULT_JSX_RUNTIME = "https://esm.sh/react@19.0.0/jsx-dev-runtime?dev";
|
|
115
|
+
function resolveInertiaClientRoute(inertiaClientPath) {
|
|
116
|
+
const base = inertiaClientPath.slice(0, inertiaClientPath.lastIndexOf("/") + 1) || "/";
|
|
117
|
+
return {
|
|
118
|
+
base,
|
|
119
|
+
pattern: `${base}*`,
|
|
120
|
+
requestPath: inertiaClientPath.slice(base.length)
|
|
121
|
+
};
|
|
122
|
+
}
|
|
112
123
|
var require2 = createRequire(import.meta.url);
|
|
113
124
|
function resolveGurenInertiaClient() {
|
|
114
125
|
return require2.resolve("@guren/inertia-client/app");
|
|
@@ -154,9 +165,11 @@ function registerDevAssets(app, options) {
|
|
|
154
165
|
}
|
|
155
166
|
if (options.inertiaClient !== false) {
|
|
156
167
|
const inertiaClientDir = dirname(inertiaClientSource);
|
|
157
|
-
const
|
|
158
|
-
|
|
159
|
-
|
|
168
|
+
const {
|
|
169
|
+
base: inertiaClientBase,
|
|
170
|
+
pattern: inertiaClientPattern,
|
|
171
|
+
requestPath: inertiaClientRequestPath
|
|
172
|
+
} = resolveInertiaClientRoute(inertiaClientPath);
|
|
160
173
|
app.hono.get(inertiaClientPattern, (ctx) => {
|
|
161
174
|
const relativeRequest = ctx.req.path.slice(inertiaClientBase.length) || inertiaClientRequestPath;
|
|
162
175
|
if (relativeRequest === inertiaClientRequestPath) {
|
|
@@ -369,9 +382,11 @@ function configureInertiaAssets(app, options) {
|
|
|
369
382
|
}
|
|
370
383
|
const inertiaClientDir = dirname2(inertiaClientEntry);
|
|
371
384
|
const inertiaClientPath = options.inertiaClientPath ?? DEFAULT_VENDOR_CLIENT_PATH;
|
|
372
|
-
const
|
|
373
|
-
|
|
374
|
-
|
|
385
|
+
const {
|
|
386
|
+
base: inertiaClientBase,
|
|
387
|
+
pattern: inertiaClientPattern,
|
|
388
|
+
requestPath: inertiaClientRequestPath
|
|
389
|
+
} = resolveInertiaClientRoute(inertiaClientPath);
|
|
375
390
|
app.hono.get(inertiaClientPattern, async (ctx) => {
|
|
376
391
|
const relativeRequest = ctx.req.path.slice(inertiaClientBase.length) || inertiaClientRequestPath;
|
|
377
392
|
let targetPath;
|
|
@@ -535,7 +550,7 @@ function normalizeDevServerUrl(value) {
|
|
|
535
550
|
if (!trimmed) {
|
|
536
551
|
return trimmed;
|
|
537
552
|
}
|
|
538
|
-
const stripped = trimmed
|
|
553
|
+
const stripped = trimTrailingSlashes(trimmed);
|
|
539
554
|
return stripped.length > 0 ? stripped : "/";
|
|
540
555
|
}
|
|
541
556
|
function loadViteManifest(candidatePaths, label) {
|
package/dist/scheduling/index.js
CHANGED