@guren/server 1.4.0 → 1.5.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/{Application-BvBqgc2k.d.ts → Application-Bi-olFMF.d.ts} +198 -9
- package/dist/ConsoleKernel-D0dkFt6u.d.ts +101 -0
- package/dist/{chunk-CSDKWLFD.js → chunk-5AD7LYWO.js} +111 -35
- package/dist/{chunk-R2TCP7D7.js → chunk-6J6B5KOB.js} +18 -2
- package/dist/{chunk-EDRGAM6G.js → chunk-RNXTRWKL.js} +2 -1
- package/dist/{chunk-JIT7QVMJ.js → chunk-SHYRVOMJ.js} +2 -2
- package/dist/{chunk-WJJ5CTNI.js → chunk-Z3HXKWI6.js} +2 -2
- package/dist/index.d.ts +23 -5
- package/dist/index.js +150 -49
- package/dist/lambda/index.d.ts +2 -2
- package/dist/lambda/index.js +1 -1
- package/dist/mail/index.js +3 -3
- package/dist/mcp/index.d.ts +1 -1
- package/dist/notifications/index.d.ts +52 -3
- package/dist/notifications/index.js +11 -3
- package/dist/queue/index.d.ts +2 -2
- package/dist/queue/index.js +4 -2
- package/dist/runtime/index.d.ts +2 -2
- package/dist/runtime/index.js +1 -1
- package/package.json +2 -2
- package/dist/ConsoleKernel-Dw9X9qZY.d.ts +0 -207
|
@@ -5,12 +5,16 @@ 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-5AD7LYWO.js";
|
|
16
|
+
import "../chunk-Z3HXKWI6.js";
|
|
17
|
+
import "../chunk-6J6B5KOB.js";
|
|
14
18
|
export {
|
|
15
19
|
DatabaseChannel,
|
|
16
20
|
MailChannel,
|
|
@@ -18,7 +22,11 @@ export {
|
|
|
18
22
|
Notification,
|
|
19
23
|
NotificationManager,
|
|
20
24
|
SlackChannel,
|
|
25
|
+
clearNotificationRegistry,
|
|
21
26
|
createNotificationManager,
|
|
27
|
+
getNotification,
|
|
22
28
|
getNotificationManager,
|
|
29
|
+
registerNotification,
|
|
30
|
+
resolveNotifiableType,
|
|
23
31
|
setNotificationManager
|
|
24
32
|
};
|
package/dist/queue/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { am as QueueDriver, ao as QueuedJob, M as FailedJob, aN as WorkerOptions } from '../Application-Bi-olFMF.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 '../Application-Bi-olFMF.js';
|
|
3
3
|
import { Redis } from 'ioredis';
|
|
4
4
|
import 'hono';
|
|
5
5
|
import '../api-token-COQHXyM_.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-Z3HXKWI6.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/runtime/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Application } from '../Application-
|
|
2
|
-
export { D as DevBannerOptions, G as GUREN_ASCII_ART,
|
|
1
|
+
import { A as Application } from '../Application-Bi-olFMF.js';
|
|
2
|
+
export { D as DevBannerOptions, G as GUREN_ASCII_ART, c as StartViteDevServerOptions, d as StartedViteDevServer, l as logDevServerBanner, s as startViteDevServer } from '../Application-Bi-olFMF.js';
|
|
3
3
|
import 'hono';
|
|
4
4
|
import '../api-token-COQHXyM_.js';
|
|
5
5
|
import '../AuthManager-C84xF5ks.js';
|
package/dist/runtime/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guren/server",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"test": "bun test"
|
|
110
110
|
},
|
|
111
111
|
"dependencies": {
|
|
112
|
-
"@guren/orm": "^1.
|
|
112
|
+
"@guren/orm": "^1.3.0",
|
|
113
113
|
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
114
114
|
"chalk": "^5.3.0",
|
|
115
115
|
"consola": "^3.4.2",
|
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
import { C as Container } from './Application-BvBqgc2k.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Parsed argument definition.
|
|
5
|
-
*/
|
|
6
|
-
interface ArgumentDefinition {
|
|
7
|
-
name: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
required: boolean;
|
|
10
|
-
array: boolean;
|
|
11
|
-
defaultValue?: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Parsed option definition.
|
|
15
|
-
*/
|
|
16
|
-
interface OptionDefinition {
|
|
17
|
-
name: string;
|
|
18
|
-
shortcut?: string;
|
|
19
|
-
description?: string;
|
|
20
|
-
requiresValue: boolean;
|
|
21
|
-
defaultValue?: string | boolean;
|
|
22
|
-
array: boolean;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Parsed signature.
|
|
26
|
-
*/
|
|
27
|
-
interface ParsedSignature {
|
|
28
|
-
name: string;
|
|
29
|
-
arguments: ArgumentDefinition[];
|
|
30
|
-
options: OptionDefinition[];
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Command class type.
|
|
34
|
-
*/
|
|
35
|
-
interface CommandClass {
|
|
36
|
-
signature: string;
|
|
37
|
-
description: string;
|
|
38
|
-
new (container?: Container): CommandInstance;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Command instance type.
|
|
42
|
-
*/
|
|
43
|
-
interface CommandInstance {
|
|
44
|
-
setInput(argv: string[]): void;
|
|
45
|
-
setOutput(output: OutputInterface): void;
|
|
46
|
-
setKernel(kernel: {
|
|
47
|
-
handle(argv: string[]): Promise<number>;
|
|
48
|
-
}): void;
|
|
49
|
-
run(): Promise<number>;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Output interface.
|
|
53
|
-
*/
|
|
54
|
-
interface OutputInterface {
|
|
55
|
-
info(message: string): void;
|
|
56
|
-
error(message: string): void;
|
|
57
|
-
warn(message: string): void;
|
|
58
|
-
success(message: string): void;
|
|
59
|
-
line(message: string): void;
|
|
60
|
-
newLine(count?: number): void;
|
|
61
|
-
table(headers: string[], rows: string[][]): void;
|
|
62
|
-
write(message: string): void;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Input interface.
|
|
66
|
-
*/
|
|
67
|
-
interface InputInterface {
|
|
68
|
-
argument<T = string>(name: string): T;
|
|
69
|
-
arguments(): Record<string, string | string[]>;
|
|
70
|
-
option<T = string | boolean>(name: string): T | undefined;
|
|
71
|
-
options(): Record<string, string | boolean | string[]>;
|
|
72
|
-
hasOption(name: string): boolean;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Console kernel options.
|
|
76
|
-
*/
|
|
77
|
-
interface ConsoleKernelOptions {
|
|
78
|
-
container?: Container;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Schedule definition for a command.
|
|
82
|
-
*/
|
|
83
|
-
interface ScheduledCommand {
|
|
84
|
-
command: string;
|
|
85
|
-
args?: string[];
|
|
86
|
-
expression: string;
|
|
87
|
-
timezone?: string;
|
|
88
|
-
description?: string;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Interactive prompt types.
|
|
92
|
-
*/
|
|
93
|
-
interface PromptInterface {
|
|
94
|
-
ask(question: string, defaultValue?: string): Promise<string>;
|
|
95
|
-
confirm(question: string, defaultValue?: boolean): Promise<boolean>;
|
|
96
|
-
choice<T extends string>(question: string, choices: T[], defaultValue?: T): Promise<T>;
|
|
97
|
-
secret(question: string): Promise<string>;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Progress bar interface.
|
|
101
|
-
*/
|
|
102
|
-
interface ProgressInterface {
|
|
103
|
-
start(total: number): void;
|
|
104
|
-
advance(step?: number): void;
|
|
105
|
-
finish(): void;
|
|
106
|
-
setProgress(current: number): void;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Console kernel for managing and executing commands.
|
|
111
|
-
*
|
|
112
|
-
* @example
|
|
113
|
-
* ```typescript
|
|
114
|
-
* const kernel = new ConsoleKernel()
|
|
115
|
-
*
|
|
116
|
-
* kernel.register(CreateUserCommand)
|
|
117
|
-
* kernel.register(SendNotificationsCommand)
|
|
118
|
-
*
|
|
119
|
-
* // Execute command
|
|
120
|
-
* const exitCode = await kernel.handle(['users:create', 'john@example.com', '--admin'])
|
|
121
|
-
* ```
|
|
122
|
-
*/
|
|
123
|
-
declare class ConsoleKernel {
|
|
124
|
-
/**
|
|
125
|
-
* Registered commands.
|
|
126
|
-
*/
|
|
127
|
-
protected commands: Map<string, CommandClass>;
|
|
128
|
-
/**
|
|
129
|
-
* Service container.
|
|
130
|
-
*/
|
|
131
|
-
protected container?: Container;
|
|
132
|
-
/**
|
|
133
|
-
* Output instance.
|
|
134
|
-
*/
|
|
135
|
-
protected output: OutputInterface;
|
|
136
|
-
constructor(options?: ConsoleKernelOptions);
|
|
137
|
-
/**
|
|
138
|
-
* Register a command.
|
|
139
|
-
*/
|
|
140
|
-
register(command: CommandClass): this;
|
|
141
|
-
/**
|
|
142
|
-
* Register multiple commands.
|
|
143
|
-
*/
|
|
144
|
-
registerMany(commands: CommandClass[]): this;
|
|
145
|
-
/**
|
|
146
|
-
* Get all registered commands.
|
|
147
|
-
*/
|
|
148
|
-
getCommands(): Map<string, CommandClass>;
|
|
149
|
-
/**
|
|
150
|
-
* Get a command by name.
|
|
151
|
-
*/
|
|
152
|
-
getCommand(name: string): CommandClass | undefined;
|
|
153
|
-
/**
|
|
154
|
-
* Check if a command is registered.
|
|
155
|
-
*/
|
|
156
|
-
hasCommand(name: string): boolean;
|
|
157
|
-
/**
|
|
158
|
-
* Set the output instance.
|
|
159
|
-
*/
|
|
160
|
-
setOutput(output: OutputInterface): this;
|
|
161
|
-
/**
|
|
162
|
-
* Get the output instance.
|
|
163
|
-
*/
|
|
164
|
-
getOutput(): OutputInterface;
|
|
165
|
-
/**
|
|
166
|
-
* Handle command execution.
|
|
167
|
-
*/
|
|
168
|
-
handle(argv?: string[]): Promise<number>;
|
|
169
|
-
/**
|
|
170
|
-
* Run a command.
|
|
171
|
-
*/
|
|
172
|
-
protected runCommand(CommandClass: CommandClass, args: string[]): Promise<number>;
|
|
173
|
-
/**
|
|
174
|
-
* Show help.
|
|
175
|
-
*/
|
|
176
|
-
protected showHelp(): void;
|
|
177
|
-
/**
|
|
178
|
-
* Show help for a specific command.
|
|
179
|
-
*/
|
|
180
|
-
protected showCommandHelp(commandName: string): void;
|
|
181
|
-
/**
|
|
182
|
-
* List all commands.
|
|
183
|
-
*/
|
|
184
|
-
protected listCommands(): void;
|
|
185
|
-
/**
|
|
186
|
-
* Group commands by namespace.
|
|
187
|
-
*/
|
|
188
|
-
protected groupCommands(): Map<string, Map<string, CommandClass>>;
|
|
189
|
-
/**
|
|
190
|
-
* Suggest similar commands.
|
|
191
|
-
*/
|
|
192
|
-
protected suggestCommands(input: string): void;
|
|
193
|
-
/**
|
|
194
|
-
* Calculate string similarity (simple Dice coefficient).
|
|
195
|
-
*/
|
|
196
|
-
protected similarity(a: string, b: string): number;
|
|
197
|
-
/**
|
|
198
|
-
* Call a command programmatically.
|
|
199
|
-
*/
|
|
200
|
-
call(commandName: string, args?: string[], silent?: boolean): Promise<number>;
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* Create a console kernel.
|
|
204
|
-
*/
|
|
205
|
-
declare function createConsoleKernel(options?: ConsoleKernelOptions): ConsoleKernel;
|
|
206
|
-
|
|
207
|
-
export { type ArgumentDefinition as A, ConsoleKernel as C, type InputInterface as I, type OptionDefinition as O, type ParsedSignature as P, type ScheduledCommand as S, type CommandInstance as a, type OutputInterface as b, type CommandClass as c, type ConsoleKernelOptions as d, type ProgressInterface as e, type PromptInterface as f, createConsoleKernel as g };
|