@guren/server 2.1.1 → 2.3.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-D7RGJPGM.js → DocsViewerServiceProvider-RUYDFBMW.js} +2 -2
- package/dist/McpServiceProvider-FRJ5O7LT.js +8 -0
- package/dist/auth/AuthManager.d.ts +30 -0
- package/dist/auth/AuthenticatableModel.d.ts +25 -0
- package/dist/auth/RequestAuthContext.d.ts +24 -0
- package/dist/auth/SessionGuard.d.ts +31 -0
- package/dist/auth/api-token.d.ts +299 -0
- package/dist/auth/email-verification.d.ts +203 -0
- package/dist/auth/index.d.ts +18 -110
- package/dist/auth/index.js +4 -1
- package/dist/auth/oauth/index.d.ts +239 -0
- package/dist/auth/password/DefaultHasher.d.ts +13 -0
- package/dist/auth/password/NodeHasher.d.ts +22 -0
- package/dist/auth/password/PasswordHasher.d.ts +5 -0
- package/dist/auth/password/ScryptHasher.d.ts +26 -0
- package/dist/auth/password-reset.d.ts +91 -0
- package/dist/auth/providers/ModelUserProvider.d.ts +36 -0
- package/dist/auth/providers/UserProvider.d.ts +9 -0
- package/dist/auth/types.d.ts +102 -0
- package/dist/auth/utils.d.ts +39 -0
- package/dist/{Gate-CynjZCtS.d.ts → authorization/Gate.d.ts} +30 -111
- package/dist/authorization/Policy.d.ts +77 -0
- package/dist/authorization/index.d.ts +5 -129
- package/dist/authorization/index.js +3 -1
- package/dist/authorization/middleware.d.ts +49 -0
- package/dist/authorization/types.d.ts +108 -0
- package/dist/broadcasting/BroadcastManager.d.ts +205 -0
- package/dist/broadcasting/channels/Channel.d.ts +28 -0
- package/dist/broadcasting/channels/PresenceChannel.d.ts +72 -0
- package/dist/broadcasting/channels/PrivateChannel.d.ts +32 -0
- package/dist/broadcasting/channels/index.d.ts +3 -0
- package/dist/broadcasting/drivers/MemoryDriver.d.ts +93 -0
- package/dist/broadcasting/drivers/RedisDriver.d.ts +112 -0
- package/dist/broadcasting/drivers/index.d.ts +2 -0
- package/dist/broadcasting/index.d.ts +6 -233
- package/dist/broadcasting/index.js +1 -1
- package/dist/broadcasting/typed.d.ts +23 -0
- package/dist/broadcasting/types.d.ts +155 -0
- package/dist/cache/CacheManager.d.ts +87 -0
- package/dist/cache/TaggedCache.d.ts +62 -0
- package/dist/cache/index.d.ts +6 -233
- package/dist/cache/index.js +1 -1
- package/dist/cache/stores/FileStore.d.ts +64 -0
- package/dist/cache/stores/MemoryStore.d.ts +52 -0
- package/dist/cache/stores/RedisStore.d.ts +53 -0
- package/dist/{CacheManager-BmDzUKrF.d.ts → cache/types.d.ts} +26 -99
- package/dist/chunk-3KV5X2FL.js +31 -0
- package/dist/{chunk-TVY72CLV.js → chunk-4VE3LYOM.js} +3 -2
- package/dist/{chunk-DSDX3ASM.js → chunk-5WL2FTC4.js} +67 -85
- package/dist/{chunk-5SZTEZ22.js → chunk-6IGN233M.js} +15 -8
- package/dist/{chunk-FZD2AKJI.js → chunk-7OB2YXRE.js} +56 -28
- package/dist/{chunk-WIXGT4TN.js → chunk-A5JJ7XTH.js} +8 -2
- package/dist/{chunk-CWI4AJ47.js → chunk-HPET6XY5.js} +13 -9
- package/dist/{chunk-A3ISJVEV.js → chunk-HR2KZ3WL.js} +23 -5
- package/dist/{chunk-BZMZEFRG.js → chunk-LHR6OHI7.js} +11 -0
- package/dist/{chunk-JBG4AR24.js → chunk-Q2P6YLRR.js} +8 -2
- package/dist/{chunk-J6ETA476.js → chunk-TVV5YNEC.js} +101 -9
- package/dist/console/Command.d.ts +179 -0
- package/dist/{ConsoleKernel-CJg975mp.d.ts → console/ConsoleKernel.d.ts} +4 -6
- package/dist/console/Input.d.ts +140 -0
- package/dist/console/Output.d.ts +161 -0
- package/dist/console/index.d.ts +5 -0
- package/dist/console/types.d.ts +106 -0
- package/dist/container/Container.d.ts +148 -0
- package/dist/container/ServiceProvider.d.ts +103 -0
- package/dist/container/bindings.d.ts +55 -0
- package/dist/container/defineModule.d.ts +88 -0
- package/dist/container/definePlugin.d.ts +62 -0
- package/dist/container/index.d.ts +8 -0
- package/dist/container/types.d.ts +73 -0
- package/dist/database/Factory.d.ts +82 -0
- package/dist/database/Seeder.d.ts +35 -0
- package/dist/database/SeederRunner.d.ts +41 -0
- package/dist/database/index.d.ts +4 -0
- package/dist/database/types.d.ts +49 -0
- package/dist/discovery/AutoDiscovery.d.ts +113 -0
- package/dist/discovery/index.d.ts +2 -0
- package/dist/docs-viewer/DocsViewerServiceProvider.d.ts +12 -0
- package/dist/docs-viewer/endpoint.d.ts +29 -0
- package/dist/encryption/Encrypter.d.ts +96 -0
- package/dist/encryption/Hash.d.ts +69 -0
- package/dist/encryption/MessageSigner.d.ts +21 -0
- package/dist/encryption/Random.d.ts +119 -0
- package/dist/encryption/app-key.d.ts +12 -0
- package/dist/encryption/index.d.ts +10 -222
- package/dist/encryption/signed-url.d.ts +9 -0
- package/dist/encryption/types.d.ts +103 -0
- package/dist/errors/ExceptionHandler.d.ts +118 -0
- package/dist/errors/HttpException.d.ts +106 -0
- package/dist/errors/debug-page.d.ts +22 -0
- package/dist/errors/error-page.d.ts +1 -0
- package/dist/errors/exceptions/AuthenticationException.d.ts +32 -0
- package/dist/errors/exceptions/AuthorizationException.d.ts +32 -0
- package/dist/errors/exceptions/MethodNotAllowedException.d.ts +31 -0
- package/dist/errors/exceptions/NotFoundHttpException.d.ts +36 -0
- package/dist/errors/exceptions/ValidationException.d.ts +60 -0
- package/dist/errors/exceptions/index.d.ts +5 -0
- package/dist/errors/index.d.ts +5 -0
- package/dist/errors/types.d.ts +43 -0
- package/dist/events/Event.d.ts +33 -0
- package/dist/{EventManager-CmIoLt7r.d.ts → events/EventManager.d.ts} +4 -86
- package/dist/events/Listener.d.ts +79 -0
- package/dist/events/builtin.d.ts +73 -0
- package/dist/events/index.d.ts +6 -155
- package/dist/events/types.d.ts +48 -0
- package/dist/facades/index.d.ts +31 -0
- package/dist/health/HealthCheck.d.ts +34 -0
- package/dist/health/HealthManager.d.ts +53 -0
- package/dist/health/checks/CacheCheck.d.ts +35 -0
- package/dist/health/checks/CustomCheck.d.ts +23 -0
- package/dist/health/checks/DatabaseCheck.d.ts +33 -0
- package/dist/health/checks/MemoryCheck.d.ts +32 -0
- package/dist/health/checks/RedisCheck.d.ts +27 -0
- package/dist/health/checks/StorageCheck.d.ts +35 -0
- package/dist/health/checks/index.d.ts +12 -0
- package/dist/health/index.d.ts +5 -185
- package/dist/health/types.d.ts +52 -0
- package/dist/hot-reload/hot-disposables.d.ts +96 -0
- package/dist/hot-reload/testing.d.ts +14 -0
- package/dist/http/Application.d.ts +199 -0
- package/dist/http/FormRequest.d.ts +73 -0
- package/dist/http/dev-assets.d.ts +62 -0
- package/dist/http/dev-banner.d.ts +7 -0
- package/dist/http/inertia-assets.d.ts +31 -0
- package/dist/http/middleware/auth.d.ts +13 -0
- package/dist/http/middleware/capabilities.d.ts +22 -0
- package/dist/http/middleware/cors.d.ts +40 -0
- package/dist/http/middleware/csp.d.ts +59 -0
- package/dist/http/middleware/csrf.d.ts +121 -0
- package/dist/http/middleware/detect-locale.d.ts +65 -0
- package/dist/http/middleware/force-https.d.ts +34 -0
- package/dist/http/middleware/host-authorization.d.ts +24 -0
- package/dist/http/middleware/index.d.ts +19 -0
- package/dist/http/middleware/loopback-guard.d.ts +51 -0
- package/dist/{rate-limit-D9J2b4S1.d.ts → http/middleware/rate-limit.d.ts} +22 -50
- package/dist/http/middleware/redirect-safety.d.ts +29 -0
- package/dist/http/middleware/request-id.d.ts +19 -0
- package/dist/http/middleware/request-logging.d.ts +16 -0
- package/dist/http/middleware/response-headers.d.ts +18 -0
- package/dist/http/middleware/security-headers.d.ts +49 -0
- package/dist/http/middleware/session.d.ts +93 -0
- package/dist/http/middleware/validation.d.ts +94 -0
- package/dist/http/public-assets.d.ts +15 -0
- package/dist/http/request.d.ts +24 -0
- package/dist/http/resources/CursorPaginator.d.ts +106 -0
- package/dist/http/resources/Paginator.d.ts +130 -0
- package/dist/http/resources/Resource.d.ts +67 -0
- package/dist/http/resources/ResourceCollection.d.ts +60 -0
- package/dist/http/resources/index.d.ts +6 -0
- package/dist/http/resources/types.d.ts +91 -0
- package/dist/http/validation/Validator.d.ts +128 -0
- package/dist/http/validation/index.d.ts +3 -0
- package/dist/http/validation/rules.d.ts +196 -0
- package/dist/http/validation/types.d.ts +96 -0
- package/dist/http/vite-dev-server.d.ts +27 -0
- package/dist/i18n/I18nManager.d.ts +114 -0
- package/dist/i18n/Translator.d.ts +80 -0
- package/dist/i18n/index.d.ts +6 -101
- package/dist/i18n/index.js +5 -3
- package/dist/i18n/loaders/JsonLoader.d.ts +47 -0
- package/dist/i18n/loaders/MemoryLoader.d.ts +37 -0
- package/dist/i18n/pluralization.d.ts +19 -0
- package/dist/i18n/types.d.ts +106 -0
- package/dist/index.d.ts +69 -2605
- package/dist/index.js +405 -180
- package/dist/lambda/index.d.ts +17 -37
- package/dist/logging/LogManager.d.ts +83 -0
- package/dist/logging/Logger.d.ts +76 -0
- package/dist/logging/channels/ConsoleChannel.d.ts +11 -0
- package/dist/logging/channels/DailyFileChannel.d.ts +20 -0
- package/dist/logging/channels/FileChannel.d.ts +15 -0
- package/dist/logging/index.d.ts +8 -50
- package/dist/logging/types.d.ts +96 -0
- package/dist/mail/Mail.d.ts +138 -0
- package/dist/mail/MailManager.d.ts +79 -0
- package/dist/mail/address.d.ts +8 -0
- package/dist/mail/index.d.ts +7 -316
- package/dist/mail/transports/LogTransport.d.ts +19 -0
- package/dist/mail/transports/MemoryTransport.d.ts +84 -0
- package/dist/mail/transports/ResendTransport.d.ts +32 -0
- package/dist/mail/transports/SmtpTransport.d.ts +40 -0
- package/dist/{MailManager-DpMvYiP9.d.ts → mail/types.d.ts} +11 -92
- package/dist/mcp/McpServiceProvider.d.ts +17 -0
- package/dist/mcp/create-mcp-server.d.ts +152 -0
- package/dist/mcp/endpoint.d.ts +47 -0
- package/dist/mcp/index.d.ts +3 -185
- package/dist/mcp/index.js +3 -3
- package/dist/mvc/Controller.d.ts +326 -0
- package/dist/mvc/Router.d.ts +239 -0
- package/dist/mvc/ViewEngine.d.ts +11 -0
- package/dist/mvc/inertia/InertiaEngine.d.ts +114 -0
- package/dist/mvc/inertia/shared.d.ts +90 -0
- package/dist/mvc/mount-route.d.ts +10 -0
- package/dist/notifications/Notification.d.ts +99 -0
- package/dist/notifications/NotificationManager.d.ts +150 -0
- package/dist/notifications/channels/DatabaseChannel.d.ts +55 -0
- package/dist/notifications/channels/MailChannel.d.ts +45 -0
- package/dist/notifications/channels/MemoryChannel.d.ts +85 -0
- package/dist/notifications/channels/SlackChannel.d.ts +73 -0
- package/dist/notifications/channels/index.d.ts +4 -0
- package/dist/notifications/index.d.ts +6 -322
- package/dist/notifications/notifiable-type.d.ts +10 -0
- package/dist/notifications/registry.d.ts +39 -0
- package/dist/notifications/types.d.ts +162 -0
- package/dist/providers/AuthServiceProvider.d.ts +7 -0
- package/dist/providers/AuthorizationServiceProvider.d.ts +9 -0
- package/dist/providers/BroadcastServiceProvider.d.ts +7 -0
- package/dist/providers/CacheServiceProvider.d.ts +7 -0
- package/dist/providers/EncryptionServiceProvider.d.ts +7 -0
- package/dist/providers/ErrorServiceProvider.d.ts +9 -0
- package/dist/providers/EventServiceProvider.d.ts +7 -0
- package/dist/providers/HealthServiceProvider.d.ts +7 -0
- package/dist/providers/I18nServiceProvider.d.ts +27 -0
- package/dist/providers/InertiaServiceProvider.d.ts +20 -0
- package/dist/providers/LogServiceProvider.d.ts +7 -0
- package/dist/providers/MailServiceProvider.d.ts +7 -0
- package/dist/providers/NotificationServiceProvider.d.ts +8 -0
- package/dist/providers/OAuthServiceProvider.d.ts +7 -0
- package/dist/providers/QueueServiceProvider.d.ts +7 -0
- package/dist/providers/SchedulingServiceProvider.d.ts +7 -0
- package/dist/providers/StorageServiceProvider.d.ts +7 -0
- package/dist/providers/index.d.ts +17 -0
- package/dist/queue/FailedJobReporter.d.ts +40 -0
- package/dist/queue/Job.d.ts +140 -0
- package/dist/queue/QueueManager.d.ts +79 -0
- package/dist/queue/Worker.d.ts +99 -0
- package/dist/queue/drivers/MemoryDriver.d.ts +60 -0
- package/dist/queue/drivers/RedisDriver.d.ts +96 -0
- package/dist/queue/drivers/SqsDriver.d.ts +108 -0
- package/dist/queue/drivers/SyncDriver.d.ts +28 -0
- package/dist/queue/index.d.ts +9 -453
- package/dist/queue/types.d.ts +171 -0
- package/dist/redis/RedisApiTokenStore.d.ts +78 -0
- package/dist/redis/RedisEmailVerificationStore.d.ts +54 -0
- package/dist/redis/RedisOAuthStateStore.d.ts +26 -0
- package/dist/redis/RedisPasswordResetStore.d.ts +57 -0
- package/dist/redis/RedisRateLimitStore.d.ts +77 -0
- package/dist/redis/RedisSessionStore.d.ts +61 -0
- package/dist/redis/client.d.ts +41 -0
- package/dist/redis/index.d.ts +14 -356
- package/dist/redis/index.js +45 -9
- package/dist/redis/redis-values.d.ts +17 -0
- package/dist/redis/scan-keys.d.ts +6 -0
- package/dist/runtime/index.d.ts +8 -95
- package/dist/runtime/index.js +101 -68
- package/dist/scheduling/CronParser.d.ts +37 -0
- package/dist/scheduling/Schedule.d.ts +229 -0
- package/dist/scheduling/ScheduledTask.d.ts +47 -0
- package/dist/scheduling/Scheduler.d.ts +99 -0
- package/dist/scheduling/index.d.ts +5 -41
- package/dist/scheduling/types.d.ts +97 -0
- package/dist/storage/StorageManager.d.ts +65 -0
- package/dist/storage/drivers/LocalDriver.d.ts +55 -0
- package/dist/storage/drivers/MemoryDriver.d.ts +66 -0
- package/dist/storage/drivers/S3Driver.d.ts +72 -0
- package/dist/storage/index.d.ts +5 -197
- package/dist/{StorageManager-oZTHqaza.d.ts → storage/types.d.ts} +10 -77
- package/dist/support/contained-path.d.ts +26 -0
- package/dist/support/error-polyfill.d.ts +9 -0
- package/dist/support/expiry.d.ts +47 -0
- package/dist/support/expiry.js +12 -0
- package/dist/support/import-map.d.ts +13 -0
- package/dist/support/redirect-target.d.ts +11 -0
- package/dist/support/stack-frames.d.ts +56 -0
- package/dist/support/trim-slashes.d.ts +11 -0
- package/dist/vite/index.d.ts +2 -35
- package/dist/vite/index.js +0 -3
- package/dist/vite/plugin.d.ts +34 -0
- package/package.json +7 -3
- package/dist/AuthManager-DBP4KYsx.d.ts +0 -79
- package/dist/BroadcastManager-D8KoJxiV.d.ts +0 -492
- package/dist/HealthManager-DUyMIzsZ.d.ts +0 -141
- package/dist/I18nManager-BiSoczfV.d.ts +0 -275
- package/dist/LogManager-7mxnkaPM.d.ts +0 -256
- package/dist/McpServiceProvider-7BB5FPF3.js +0 -8
- package/dist/Scheduler-pZiT8i57.d.ts +0 -471
- package/dist/api-token-D24VPr_E.d.ts +0 -663
- package/dist/app-key-CsBfRC_Q.d.ts +0 -214
- package/dist/email-verification-Dx426KLn.d.ts +0 -336
- package/dist/index-9_Jzj5jo.d.ts +0 -7
- package/dist/validation-yAL53e1S.d.ts +0 -2610
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Email address with optional display name.
|
|
3
3
|
*/
|
|
4
|
-
interface MailAddress {
|
|
4
|
+
export interface MailAddress {
|
|
5
5
|
/**
|
|
6
6
|
* Email address.
|
|
7
7
|
*/
|
|
@@ -14,7 +14,7 @@ interface MailAddress {
|
|
|
14
14
|
/**
|
|
15
15
|
* Email attachment.
|
|
16
16
|
*/
|
|
17
|
-
interface MailAttachment {
|
|
17
|
+
export interface MailAttachment {
|
|
18
18
|
/**
|
|
19
19
|
* Filename shown to recipient.
|
|
20
20
|
*/
|
|
@@ -39,7 +39,7 @@ interface MailAttachment {
|
|
|
39
39
|
/**
|
|
40
40
|
* Email message structure.
|
|
41
41
|
*/
|
|
42
|
-
interface MailMessage {
|
|
42
|
+
export interface MailMessage {
|
|
43
43
|
/**
|
|
44
44
|
* Sender address.
|
|
45
45
|
*/
|
|
@@ -84,7 +84,7 @@ interface MailMessage {
|
|
|
84
84
|
/**
|
|
85
85
|
* Result of sending an email.
|
|
86
86
|
*/
|
|
87
|
-
interface SendResult {
|
|
87
|
+
export interface SendResult {
|
|
88
88
|
/**
|
|
89
89
|
* Whether the email was sent successfully.
|
|
90
90
|
*/
|
|
@@ -106,7 +106,7 @@ interface SendResult {
|
|
|
106
106
|
* Mail transport interface.
|
|
107
107
|
* Implement this to create custom email providers.
|
|
108
108
|
*/
|
|
109
|
-
interface MailTransport {
|
|
109
|
+
export interface MailTransport {
|
|
110
110
|
/**
|
|
111
111
|
* Transport name.
|
|
112
112
|
*/
|
|
@@ -119,11 +119,11 @@ interface MailTransport {
|
|
|
119
119
|
/**
|
|
120
120
|
* Mail transport factory function.
|
|
121
121
|
*/
|
|
122
|
-
type MailTransportFactory = () => MailTransport;
|
|
122
|
+
export type MailTransportFactory = () => MailTransport;
|
|
123
123
|
/**
|
|
124
124
|
* Mail transport configuration.
|
|
125
125
|
*/
|
|
126
|
-
interface MailTransportConfig {
|
|
126
|
+
export interface MailTransportConfig {
|
|
127
127
|
/**
|
|
128
128
|
* Transport driver name.
|
|
129
129
|
*/
|
|
@@ -136,7 +136,7 @@ interface MailTransportConfig {
|
|
|
136
136
|
/**
|
|
137
137
|
* Mail configuration.
|
|
138
138
|
*/
|
|
139
|
-
interface MailConfig {
|
|
139
|
+
export interface MailConfig {
|
|
140
140
|
/**
|
|
141
141
|
* Default transport name.
|
|
142
142
|
* @default 'smtp'
|
|
@@ -154,7 +154,7 @@ interface MailConfig {
|
|
|
154
154
|
/**
|
|
155
155
|
* SMTP transport options.
|
|
156
156
|
*/
|
|
157
|
-
interface SmtpTransportOptions {
|
|
157
|
+
export interface SmtpTransportOptions {
|
|
158
158
|
/**
|
|
159
159
|
* SMTP server host.
|
|
160
160
|
*/
|
|
@@ -190,7 +190,7 @@ interface SmtpTransportOptions {
|
|
|
190
190
|
/**
|
|
191
191
|
* Resend transport options.
|
|
192
192
|
*/
|
|
193
|
-
interface ResendTransportOptions {
|
|
193
|
+
export interface ResendTransportOptions {
|
|
194
194
|
/**
|
|
195
195
|
* Resend API key.
|
|
196
196
|
*/
|
|
@@ -199,7 +199,7 @@ interface ResendTransportOptions {
|
|
|
199
199
|
/**
|
|
200
200
|
* Memory transport options (for testing).
|
|
201
201
|
*/
|
|
202
|
-
interface MemoryTransportOptions {
|
|
202
|
+
export interface MemoryTransportOptions {
|
|
203
203
|
/**
|
|
204
204
|
* Whether to simulate failures.
|
|
205
205
|
*/
|
|
@@ -209,84 +209,3 @@ interface MemoryTransportOptions {
|
|
|
209
209
|
*/
|
|
210
210
|
failureMessage?: string;
|
|
211
211
|
}
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Mail manager for handling multiple transports.
|
|
215
|
-
*
|
|
216
|
-
* @example
|
|
217
|
-
* ```ts
|
|
218
|
-
* const mailManager = new MailManager({
|
|
219
|
-
* default: 'smtp',
|
|
220
|
-
* from: { email: 'noreply@example.com', name: 'MyApp' },
|
|
221
|
-
* transports: {
|
|
222
|
-
* smtp: {
|
|
223
|
-
* driver: 'smtp',
|
|
224
|
-
* host: 'smtp.example.com',
|
|
225
|
-
* port: 587,
|
|
226
|
-
* auth: { user: 'user', pass: 'pass' },
|
|
227
|
-
* },
|
|
228
|
-
* resend: {
|
|
229
|
-
* driver: 'resend',
|
|
230
|
-
* apiKey: 'your-api-key',
|
|
231
|
-
* },
|
|
232
|
-
* },
|
|
233
|
-
* })
|
|
234
|
-
*
|
|
235
|
-
* // Get the default transport
|
|
236
|
-
* const transport = mailManager.transport()
|
|
237
|
-
*
|
|
238
|
-
* // Get a specific transport
|
|
239
|
-
* const resendTransport = mailManager.transport('resend')
|
|
240
|
-
* ```
|
|
241
|
-
*/
|
|
242
|
-
declare class MailManager {
|
|
243
|
-
private readonly defaultTransportName;
|
|
244
|
-
private readonly defaultFrom?;
|
|
245
|
-
private readonly transportFactories;
|
|
246
|
-
private readonly resolvedTransports;
|
|
247
|
-
constructor(config?: MailConfig);
|
|
248
|
-
/**
|
|
249
|
-
* Register built-in transport drivers.
|
|
250
|
-
*/
|
|
251
|
-
private registerBuiltinDrivers;
|
|
252
|
-
private driverFactories;
|
|
253
|
-
/**
|
|
254
|
-
* Register a driver factory.
|
|
255
|
-
*/
|
|
256
|
-
private registerDriverFactory;
|
|
257
|
-
/**
|
|
258
|
-
* Register a transport from configuration.
|
|
259
|
-
*/
|
|
260
|
-
private registerTransportFromConfig;
|
|
261
|
-
/**
|
|
262
|
-
* Get a mail transport by name.
|
|
263
|
-
* Returns the default transport if no name is specified.
|
|
264
|
-
*/
|
|
265
|
-
transport(name?: string): MailTransport;
|
|
266
|
-
/**
|
|
267
|
-
* Register a custom transport.
|
|
268
|
-
*/
|
|
269
|
-
registerTransport(name: string, factory: MailTransportFactory): void;
|
|
270
|
-
/**
|
|
271
|
-
* Check if a transport is registered.
|
|
272
|
-
*/
|
|
273
|
-
hasTransport(name: string): boolean;
|
|
274
|
-
/**
|
|
275
|
-
* Get the default transport name.
|
|
276
|
-
*/
|
|
277
|
-
getDefaultTransportName(): string;
|
|
278
|
-
/**
|
|
279
|
-
* Get the default from address.
|
|
280
|
-
*/
|
|
281
|
-
getDefaultFrom(): MailAddress | undefined;
|
|
282
|
-
/**
|
|
283
|
-
* Get all registered transport names.
|
|
284
|
-
*/
|
|
285
|
-
getTransportNames(): string[];
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* Create a mail manager with configuration.
|
|
289
|
-
*/
|
|
290
|
-
declare function createMailManager(config?: MailConfig): MailManager;
|
|
291
|
-
|
|
292
|
-
export { MailManager as M, type ResendTransportOptions as R, type SendResult as S, type MailAddress as a, type MailAttachment as b, type MailConfig as c, type MailMessage as d, type MailTransport as e, type MailTransportConfig as f, type MailTransportFactory as g, type MemoryTransportOptions as h, type SmtpTransportOptions as i, createMailManager as j };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ServiceProvider } from '../container/ServiceProvider.js';
|
|
2
|
+
/**
|
|
3
|
+
* Registers the MCP (Model Context Protocol) endpoint at /_guren/mcp.
|
|
4
|
+
*
|
|
5
|
+
* Only active while `isMcpEndpointEnabled()` holds, so registering this
|
|
6
|
+
* provider directly honours the same `GUREN_MCP=1` opt-in that `Application`
|
|
7
|
+
* gates on — and the same condition that exempts the endpoint from CSRF.
|
|
8
|
+
* It allows AI coding agents (Claude Code, Cursor, etc.) to introspect
|
|
9
|
+
* the project structure, run integrity checks, and scaffold code.
|
|
10
|
+
*
|
|
11
|
+
* @guren/cli is loaded via dynamic import to avoid circular dependencies
|
|
12
|
+
* (@guren/server -> @guren/cli -> @guren/core -> @guren/server).
|
|
13
|
+
*/
|
|
14
|
+
export declare class McpServiceProvider extends ServiceProvider {
|
|
15
|
+
register(): void;
|
|
16
|
+
boot(): Promise<void>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
+
/**
|
|
3
|
+
* Options the `.guren/*.gen.ts` generators are called with. `cwd` is the
|
|
4
|
+
* project they resolve every output path against; nothing here changes
|
|
5
|
+
* `process.cwd()`, which is process-wide and shared by concurrent requests.
|
|
6
|
+
*/
|
|
7
|
+
export interface CodegenOptions {
|
|
8
|
+
cwd: string;
|
|
9
|
+
force?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* What every scaffolder takes. `cwd` names the project the scaffold belongs
|
|
13
|
+
* to, for the same reason: this server handles requests for a workspace
|
|
14
|
+
* without a per-request `process.cwd()` to fall back on.
|
|
15
|
+
*/
|
|
16
|
+
export interface ScaffoldOptions {
|
|
17
|
+
force?: boolean;
|
|
18
|
+
cwd?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* What a generator reports back. An empty `outputPath` means the generator
|
|
22
|
+
* found nothing to describe and wrote no file (a project with no page
|
|
23
|
+
* components, for instance).
|
|
24
|
+
*
|
|
25
|
+
* `skipped` is an optional sentence explaining that empty `outputPath` when
|
|
26
|
+
* "nothing to describe" would be wrong — the pages generator declines to write
|
|
27
|
+
* a manifest into an app that cannot compile one, and an agent reading this
|
|
28
|
+
* result is exactly who needs to hear that a page it just wrote was ignored.
|
|
29
|
+
*
|
|
30
|
+
* `definitions` is the route manifest `generateRouteTypes` builds. It stays
|
|
31
|
+
* opaque here — this package only carries it from one CLI call to the next
|
|
32
|
+
* (`generateApiClientTypes` consumes it) and never reads inside it, so
|
|
33
|
+
* mirroring the CLI's route shape would only create something to keep in sync.
|
|
34
|
+
*/
|
|
35
|
+
export interface CodegenResult {
|
|
36
|
+
outputPath?: string;
|
|
37
|
+
definitions?: unknown[];
|
|
38
|
+
skipped?: {
|
|
39
|
+
message: string;
|
|
40
|
+
} | null;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* CLI functions that the MCP server wraps.
|
|
44
|
+
* These are injected at runtime to avoid circular dependencies
|
|
45
|
+
* (@guren/server cannot depend on @guren/cli directly).
|
|
46
|
+
*/
|
|
47
|
+
export interface GurenCliApi {
|
|
48
|
+
generateContext(opts: {
|
|
49
|
+
cwd: string;
|
|
50
|
+
}): Promise<{
|
|
51
|
+
framework: {
|
|
52
|
+
name: string;
|
|
53
|
+
version: string;
|
|
54
|
+
};
|
|
55
|
+
models: Array<{
|
|
56
|
+
className: string;
|
|
57
|
+
}>;
|
|
58
|
+
routes: Array<unknown>;
|
|
59
|
+
pages: string[];
|
|
60
|
+
controllers: string[];
|
|
61
|
+
resources: string[];
|
|
62
|
+
events: string[];
|
|
63
|
+
jobs: string[];
|
|
64
|
+
middleware: string[];
|
|
65
|
+
listeners: string[];
|
|
66
|
+
validators: string[];
|
|
67
|
+
}>;
|
|
68
|
+
renderContextMarkdown(ctx: unknown): string;
|
|
69
|
+
generateEntityContext(entity: string, opts: {
|
|
70
|
+
cwd: string;
|
|
71
|
+
module?: string;
|
|
72
|
+
}): Promise<unknown>;
|
|
73
|
+
renderEntityContextMarkdown(ctx: unknown): string;
|
|
74
|
+
runCheck(opts: {
|
|
75
|
+
cwd: string;
|
|
76
|
+
}): Promise<{
|
|
77
|
+
cwd: string;
|
|
78
|
+
checks: Array<{
|
|
79
|
+
key: string;
|
|
80
|
+
title: string;
|
|
81
|
+
status: string;
|
|
82
|
+
message: string;
|
|
83
|
+
suggestion?: string;
|
|
84
|
+
}>;
|
|
85
|
+
passCount: number;
|
|
86
|
+
warnCount: number;
|
|
87
|
+
failCount: number;
|
|
88
|
+
}>;
|
|
89
|
+
listModels(opts: {
|
|
90
|
+
appRoot: string;
|
|
91
|
+
}): Promise<Array<{
|
|
92
|
+
className: string;
|
|
93
|
+
filePath: string;
|
|
94
|
+
tableName?: string;
|
|
95
|
+
relationships: Array<{
|
|
96
|
+
name: string;
|
|
97
|
+
type: string;
|
|
98
|
+
relatedModel?: string;
|
|
99
|
+
}>;
|
|
100
|
+
usesAuth: boolean;
|
|
101
|
+
hasSoftDeletes: boolean;
|
|
102
|
+
}>>;
|
|
103
|
+
generateGuidelines(opts: {
|
|
104
|
+
cwd: string;
|
|
105
|
+
}): Promise<string>;
|
|
106
|
+
runDoctor(opts: {
|
|
107
|
+
cwd: string;
|
|
108
|
+
}): Promise<unknown>;
|
|
109
|
+
suggestNextSteps(opts: {
|
|
110
|
+
cwd: string;
|
|
111
|
+
}): Promise<unknown>;
|
|
112
|
+
makeFeature(name: string, opts: ScaffoldOptions & {
|
|
113
|
+
fields?: string;
|
|
114
|
+
withTest?: boolean;
|
|
115
|
+
}): Promise<string[]>;
|
|
116
|
+
makeController(name: string, opts: ScaffoldOptions): Promise<string | string[]>;
|
|
117
|
+
makeModel(name: string, opts: ScaffoldOptions): Promise<string | string[]>;
|
|
118
|
+
makeView(name: string, opts: ScaffoldOptions): Promise<string | string[]>;
|
|
119
|
+
makeTest(name: string, opts: ScaffoldOptions): Promise<string | string[]>;
|
|
120
|
+
makeRoute(name: string, opts: ScaffoldOptions): Promise<string | string[]>;
|
|
121
|
+
generateRouteTypes(opts: CodegenOptions): Promise<CodegenResult | void>;
|
|
122
|
+
generatePageTypes(opts: CodegenOptions): Promise<CodegenResult | void>;
|
|
123
|
+
generateDataTypes(opts: CodegenOptions): Promise<CodegenResult | void>;
|
|
124
|
+
generateChannelTypes(opts: CodegenOptions): Promise<CodegenResult | void>;
|
|
125
|
+
/**
|
|
126
|
+
* Takes the route manifest `generateRouteTypes` returns, so it can only run
|
|
127
|
+
* after that succeeded.
|
|
128
|
+
*/
|
|
129
|
+
generateApiClientTypes(definitions: unknown[], opts: CodegenOptions): Promise<CodegenResult | void>;
|
|
130
|
+
/**
|
|
131
|
+
* Route-dependent context generation that re-runs the CLI in a fresh
|
|
132
|
+
* process. Optional because `@guren/cli` is resolved from the app at
|
|
133
|
+
* runtime and may predate it — see `McpServiceProvider`.
|
|
134
|
+
*/
|
|
135
|
+
createFreshContextApi?: () => Pick<GurenCliApi, 'generateContext' | 'generateEntityContext'>;
|
|
136
|
+
/**
|
|
137
|
+
* The OKF docs relation graph (RFC 0005). Optional for the same
|
|
138
|
+
* runtime-resolution reason as above.
|
|
139
|
+
*/
|
|
140
|
+
buildDocsGraphReport?(options: {
|
|
141
|
+
cwd?: string;
|
|
142
|
+
entity?: string;
|
|
143
|
+
path?: string;
|
|
144
|
+
}): Promise<unknown>;
|
|
145
|
+
renderDocsGraphMarkdown?(report: unknown): string;
|
|
146
|
+
}
|
|
147
|
+
export interface CreateMcpServerOptions {
|
|
148
|
+
cwd: string;
|
|
149
|
+
cli: GurenCliApi;
|
|
150
|
+
version?: string;
|
|
151
|
+
}
|
|
152
|
+
export declare function createMcpServer(options: CreateMcpServerOptions): McpServer;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Identity and activation rules for the dev-only MCP endpoint.
|
|
3
|
+
*
|
|
4
|
+
* Kept free of MCP SDK imports so that middleware (CSRF) and the
|
|
5
|
+
* application bootstrap can reason about the endpoint without pulling in
|
|
6
|
+
* `@modelcontextprotocol/sdk`, which apps are not required to install.
|
|
7
|
+
* The loopback access guard itself is shared with the docs viewer — see
|
|
8
|
+
* `http/middleware/loopback-guard.ts`.
|
|
9
|
+
*/
|
|
10
|
+
import type { MiddlewareHandler } from 'hono';
|
|
11
|
+
export { isLoopbackAddress, isLoopbackOrigin } from '../http/middleware/loopback-guard.js';
|
|
12
|
+
export declare const MCP_ENDPOINT_PATH = "/_guren/mcp";
|
|
13
|
+
/**
|
|
14
|
+
* Whether the MCP endpoint is mounted for this process.
|
|
15
|
+
*
|
|
16
|
+
* Opt-in via `GUREN_MCP=1` and never active in production: the endpoint
|
|
17
|
+
* exposes project introspection and code generation, so it must not be
|
|
18
|
+
* reachable unless the developer asked for it.
|
|
19
|
+
*
|
|
20
|
+
* The environment reads below are deliberately written as plain member
|
|
21
|
+
* access. Do not "harden" them with optional chaining: the deploy plugins
|
|
22
|
+
* bundle server code with `--define 'process.env.NODE_ENV="production"'`,
|
|
23
|
+
* and a define matches one exact expression. Inserting `?.` produces a
|
|
24
|
+
* different expression that no define touches, leaving this gate a runtime
|
|
25
|
+
* read — and on hosts where the platform's environment is not in
|
|
26
|
+
* `process.env` by the time the module graph evaluates (workerd is the
|
|
27
|
+
* documented case; see the comment on the Cloudflare plugin's `define`),
|
|
28
|
+
* that runtime read answers "not production" and the gate silently reopens.
|
|
29
|
+
* A test in `tests/mcp/endpoint.test.ts` reads this file and fails on any
|
|
30
|
+
* optional chain after `process.env`, because nothing observable at runtime
|
|
31
|
+
* distinguishes the two forms.
|
|
32
|
+
*
|
|
33
|
+
* The `typeof process` check covers the only runtimes without `process`;
|
|
34
|
+
* every runtime the framework supports that has `process` has `process.env`.
|
|
35
|
+
*/
|
|
36
|
+
export declare function isMcpEndpointEnabled(): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Restricts the MCP endpoint to the developer's own machine.
|
|
39
|
+
*
|
|
40
|
+
* The endpoint is exempt from CSRF — agent clients carry no token — so
|
|
41
|
+
* the loopback guard takes over that job: web pages are rejected unless
|
|
42
|
+
* their `Origin` is loopback (the check the MCP specification asks local
|
|
43
|
+
* servers for), and every caller is rejected unless its socket peer is
|
|
44
|
+
* loopback. The guard fails closed when the runtime reports no peer at
|
|
45
|
+
* all; see `http/middleware/loopback-guard.ts` for the opt-out.
|
|
46
|
+
*/
|
|
47
|
+
export declare function createMcpAccessGuard(): MiddlewareHandler;
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,185 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import '../api-token-D24VPr_E.js';
|
|
5
|
-
import '../AuthManager-DBP4KYsx.js';
|
|
6
|
-
import '@guren/orm';
|
|
7
|
-
import 'vite';
|
|
8
|
-
import '../EventManager-CmIoLt7r.js';
|
|
9
|
-
import '../CacheManager-BmDzUKrF.js';
|
|
10
|
-
import '../MailManager-DpMvYiP9.js';
|
|
11
|
-
import '../LogManager-7mxnkaPM.js';
|
|
12
|
-
import '../I18nManager-BiSoczfV.js';
|
|
13
|
-
import '../BroadcastManager-D8KoJxiV.js';
|
|
14
|
-
import '../index-9_Jzj5jo.js';
|
|
15
|
-
import '../app-key-CsBfRC_Q.js';
|
|
16
|
-
import '../StorageManager-oZTHqaza.js';
|
|
17
|
-
import '../HealthManager-DUyMIzsZ.js';
|
|
18
|
-
import '../Scheduler-pZiT8i57.js';
|
|
19
|
-
import '../Gate-CynjZCtS.js';
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Options the `.guren/*.gen.ts` generators are called with. Only `force`
|
|
23
|
-
* reaches them — they resolve every path against the process cwd, which the
|
|
24
|
-
* codegen tool sets before calling. `cwd` rides along to name the project the
|
|
25
|
-
* call is for.
|
|
26
|
-
*/
|
|
27
|
-
interface CodegenOptions {
|
|
28
|
-
cwd: string;
|
|
29
|
-
force?: boolean;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* What a generator reports back. An empty `outputPath` means the generator
|
|
33
|
-
* found nothing to describe and wrote no file (a project with no page
|
|
34
|
-
* components, for instance).
|
|
35
|
-
*
|
|
36
|
-
* `definitions` is the route manifest `generateRouteTypes` builds. It stays
|
|
37
|
-
* opaque here — this package only carries it from one CLI call to the next
|
|
38
|
-
* (`generateApiClientTypes` consumes it) and never reads inside it, so
|
|
39
|
-
* mirroring the CLI's route shape would only create something to keep in sync.
|
|
40
|
-
*/
|
|
41
|
-
interface CodegenResult {
|
|
42
|
-
outputPath?: string;
|
|
43
|
-
definitions?: unknown[];
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* CLI functions that the MCP server wraps.
|
|
47
|
-
* These are injected at runtime to avoid circular dependencies
|
|
48
|
-
* (@guren/server cannot depend on @guren/cli directly).
|
|
49
|
-
*/
|
|
50
|
-
interface GurenCliApi {
|
|
51
|
-
generateContext(opts: {
|
|
52
|
-
cwd: string;
|
|
53
|
-
}): Promise<{
|
|
54
|
-
framework: {
|
|
55
|
-
name: string;
|
|
56
|
-
version: string;
|
|
57
|
-
};
|
|
58
|
-
models: Array<{
|
|
59
|
-
className: string;
|
|
60
|
-
}>;
|
|
61
|
-
routes: Array<unknown>;
|
|
62
|
-
pages: string[];
|
|
63
|
-
controllers: string[];
|
|
64
|
-
resources: string[];
|
|
65
|
-
events: string[];
|
|
66
|
-
jobs: string[];
|
|
67
|
-
middleware: string[];
|
|
68
|
-
listeners: string[];
|
|
69
|
-
validators: string[];
|
|
70
|
-
}>;
|
|
71
|
-
renderContextMarkdown(ctx: unknown): string;
|
|
72
|
-
generateEntityContext(entity: string, opts: {
|
|
73
|
-
cwd: string;
|
|
74
|
-
module?: string;
|
|
75
|
-
}): Promise<unknown>;
|
|
76
|
-
renderEntityContextMarkdown(ctx: unknown): string;
|
|
77
|
-
runCheck(opts: {
|
|
78
|
-
cwd: string;
|
|
79
|
-
}): Promise<{
|
|
80
|
-
cwd: string;
|
|
81
|
-
checks: Array<{
|
|
82
|
-
key: string;
|
|
83
|
-
title: string;
|
|
84
|
-
status: string;
|
|
85
|
-
message: string;
|
|
86
|
-
suggestion?: string;
|
|
87
|
-
}>;
|
|
88
|
-
passCount: number;
|
|
89
|
-
warnCount: number;
|
|
90
|
-
failCount: number;
|
|
91
|
-
}>;
|
|
92
|
-
listModels(opts: {
|
|
93
|
-
appRoot: string;
|
|
94
|
-
}): Promise<Array<{
|
|
95
|
-
className: string;
|
|
96
|
-
filePath: string;
|
|
97
|
-
tableName?: string;
|
|
98
|
-
relationships: Array<{
|
|
99
|
-
name: string;
|
|
100
|
-
type: string;
|
|
101
|
-
relatedModel?: string;
|
|
102
|
-
}>;
|
|
103
|
-
usesAuth: boolean;
|
|
104
|
-
hasSoftDeletes: boolean;
|
|
105
|
-
}>>;
|
|
106
|
-
generateGuidelines(opts: {
|
|
107
|
-
cwd: string;
|
|
108
|
-
}): Promise<string>;
|
|
109
|
-
runDoctor(opts: {
|
|
110
|
-
cwd: string;
|
|
111
|
-
}): Promise<unknown>;
|
|
112
|
-
suggestNextSteps(opts: {
|
|
113
|
-
cwd: string;
|
|
114
|
-
}): Promise<unknown>;
|
|
115
|
-
makeFeature(name: string, opts: {
|
|
116
|
-
fields?: string;
|
|
117
|
-
withTest?: boolean;
|
|
118
|
-
force?: boolean;
|
|
119
|
-
}): Promise<string[]>;
|
|
120
|
-
makeController(name: string, opts: {
|
|
121
|
-
force?: boolean;
|
|
122
|
-
}): Promise<string | string[]>;
|
|
123
|
-
makeModel(name: string, opts: {
|
|
124
|
-
force?: boolean;
|
|
125
|
-
}): Promise<string | string[]>;
|
|
126
|
-
makeView(name: string, opts: {
|
|
127
|
-
force?: boolean;
|
|
128
|
-
}): Promise<string | string[]>;
|
|
129
|
-
makeTest(name: string, opts: {
|
|
130
|
-
force?: boolean;
|
|
131
|
-
}): Promise<string | string[]>;
|
|
132
|
-
makeRoute(name: string, opts: {
|
|
133
|
-
force?: boolean;
|
|
134
|
-
}): Promise<string | string[]>;
|
|
135
|
-
generateRouteTypes(opts: CodegenOptions): Promise<CodegenResult | void>;
|
|
136
|
-
generatePageTypes(opts: CodegenOptions): Promise<CodegenResult | void>;
|
|
137
|
-
generateDataTypes(opts: CodegenOptions): Promise<CodegenResult | void>;
|
|
138
|
-
generateChannelTypes(opts: CodegenOptions): Promise<CodegenResult | void>;
|
|
139
|
-
/**
|
|
140
|
-
* Takes the route manifest `generateRouteTypes` returns, so it can only run
|
|
141
|
-
* after that succeeded.
|
|
142
|
-
*/
|
|
143
|
-
generateApiClientTypes(definitions: unknown[], opts: CodegenOptions): Promise<CodegenResult | void>;
|
|
144
|
-
/**
|
|
145
|
-
* Route-dependent context generation that re-runs the CLI in a fresh
|
|
146
|
-
* process. Optional because `@guren/cli` is resolved from the app at
|
|
147
|
-
* runtime and may predate it — see `McpServiceProvider`.
|
|
148
|
-
*/
|
|
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;
|
|
160
|
-
}
|
|
161
|
-
interface CreateMcpServerOptions {
|
|
162
|
-
cwd: string;
|
|
163
|
-
cli: GurenCliApi;
|
|
164
|
-
version?: string;
|
|
165
|
-
}
|
|
166
|
-
declare function createMcpServer(options: CreateMcpServerOptions): McpServer;
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Registers the MCP (Model Context Protocol) endpoint at /_guren/mcp.
|
|
170
|
-
*
|
|
171
|
-
* Only active while `isMcpEndpointEnabled()` holds, so registering this
|
|
172
|
-
* provider directly honours the same `GUREN_MCP=1` opt-in that `Application`
|
|
173
|
-
* gates on — and the same condition that exempts the endpoint from CSRF.
|
|
174
|
-
* It allows AI coding agents (Claude Code, Cursor, etc.) to introspect
|
|
175
|
-
* the project structure, run integrity checks, and scaffold code.
|
|
176
|
-
*
|
|
177
|
-
* @guren/cli is loaded via dynamic import to avoid circular dependencies
|
|
178
|
-
* (@guren/server -> @guren/cli -> @guren/core -> @guren/server).
|
|
179
|
-
*/
|
|
180
|
-
declare class McpServiceProvider extends ServiceProvider {
|
|
181
|
-
register(): void;
|
|
182
|
-
boot(): Promise<void>;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
export { type CreateMcpServerOptions, McpServiceProvider, createMcpServer };
|
|
1
|
+
export { createMcpServer } from './create-mcp-server.js';
|
|
2
|
+
export type { CreateMcpServerOptions } from './create-mcp-server.js';
|
|
3
|
+
export { McpServiceProvider } from './McpServiceProvider.js';
|
package/dist/mcp/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
McpServiceProvider,
|
|
3
3
|
createMcpServer
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-5WL2FTC4.js";
|
|
5
|
+
import "../chunk-Q2P6YLRR.js";
|
|
6
|
+
import "../chunk-LHR6OHI7.js";
|
|
7
7
|
export {
|
|
8
8
|
McpServiceProvider,
|
|
9
9
|
createMcpServer
|