conduithub 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/core/conduit-hub/index.d.cts +1 -1
  2. package/dist/core/conduit-hub/index.d.mts +1 -1
  3. package/dist/core/conduit-hub/index.d.ts +1 -1
  4. package/dist/core/config-manager/index.d.cts +1 -1
  5. package/dist/core/config-manager/index.d.mts +1 -1
  6. package/dist/core/config-manager/index.d.ts +1 -1
  7. package/dist/core/index.cjs +4 -2
  8. package/dist/core/index.d.cts +8 -184
  9. package/dist/core/index.d.mts +8 -184
  10. package/dist/core/index.d.ts +8 -184
  11. package/dist/core/index.mjs +3 -2
  12. package/dist/core/plugin/index.d.cts +1 -1
  13. package/dist/core/plugin/index.d.mts +1 -1
  14. package/dist/core/plugin/index.d.ts +1 -1
  15. package/dist/index.cjs +185 -14
  16. package/dist/index.d.cts +67 -3
  17. package/dist/index.d.mts +67 -3
  18. package/dist/index.d.ts +67 -3
  19. package/dist/index.mjs +159 -6
  20. package/dist/plugins/index.cjs +32 -4
  21. package/dist/plugins/index.d.cts +4 -2
  22. package/dist/plugins/index.d.mts +4 -2
  23. package/dist/plugins/index.d.ts +4 -2
  24. package/dist/plugins/index.mjs +21 -3
  25. package/dist/plugins/kafka/index.cjs +34 -0
  26. package/dist/plugins/kafka/index.d.cts +250 -0
  27. package/dist/plugins/kafka/index.d.mts +250 -0
  28. package/dist/plugins/kafka/index.d.ts +250 -0
  29. package/dist/plugins/kafka/index.mjs +23 -0
  30. package/dist/plugins/redis/index.cjs +26 -5
  31. package/dist/plugins/redis/index.d.cts +59 -17
  32. package/dist/plugins/redis/index.d.mts +59 -17
  33. package/dist/plugins/redis/index.d.ts +59 -17
  34. package/dist/plugins/redis/index.mjs +21 -4
  35. package/dist/shared/conduithub.0FKJet8c.cjs +1130 -0
  36. package/dist/shared/conduithub.B16qn6pY.mjs +174 -0
  37. package/dist/shared/conduithub.BW-S7Bp_.d.cts +181 -0
  38. package/dist/shared/conduithub.BdX_BLza.mjs +1124 -0
  39. package/dist/shared/{conduithub.-bZD30_I.mjs → conduithub.BzuAKyjY.mjs} +238 -36
  40. package/dist/shared/conduithub.DSAmRivG.d.ts +181 -0
  41. package/dist/shared/{conduithub.cvEjE62V.cjs → conduithub.DhMIxMx2.cjs} +242 -36
  42. package/dist/shared/conduithub.GrtzQn_7.d.mts +181 -0
  43. package/dist/shared/conduithub.jH-df3Zd.cjs +181 -0
  44. package/package.json +22 -1
@@ -1,4 +1,4 @@
1
- import { BasePlugin } from '../../core/index.mjs';
1
+ import { B as BasePlugin } from '../../shared/conduithub.GrtzQn_7.mjs';
2
2
  import { z } from 'zod';
3
3
  import '../../core/hook/index.mjs';
4
4
  import '../../shared/conduithub.B7aryjPG.mjs';
@@ -6,6 +6,21 @@ import '../../shared/conduithub.BzLwccre.mjs';
6
6
  import '../../core/service-container/index.mjs';
7
7
  import '../../core/state-manager/index.mjs';
8
8
 
9
+ interface RedisConnectionInfo {
10
+ host: string;
11
+ port: number;
12
+ db: number;
13
+ connected: boolean;
14
+ timestamp: number;
15
+ }
16
+ interface RedisStats {
17
+ totalCommands: number;
18
+ successfulCommands: number;
19
+ failedCommands: number;
20
+ averageResponseTime: number;
21
+ lastCommandTime?: number;
22
+ }
23
+
9
24
  declare const redisConfigSchema: z.ZodObject<{
10
25
  host: z.ZodDefault<z.ZodString>;
11
26
  port: z.ZodDefault<z.ZodNumber>;
@@ -35,21 +50,6 @@ declare const redisConfigSchema: z.ZodObject<{
35
50
  }, z.core.$strip>;
36
51
  type RedisConfig = z.infer<typeof redisConfigSchema>;
37
52
 
38
- interface RedisConnectionInfo {
39
- host: string;
40
- port: number;
41
- db: number;
42
- connected: boolean;
43
- timestamp: number;
44
- }
45
- interface RedisStats {
46
- totalCommands: number;
47
- successfulCommands: number;
48
- failedCommands: number;
49
- averageResponseTime: number;
50
- lastCommandTime?: number;
51
- }
52
-
53
53
  declare class RedisPlugin extends BasePlugin<RedisConfig> {
54
54
  private redis;
55
55
  private ioredisClient?;
@@ -106,4 +106,46 @@ declare class RedisPlugin extends BasePlugin<RedisConfig> {
106
106
  flushall(): Promise<"OK">;
107
107
  }
108
108
 
109
- export { RedisPlugin };
109
+ declare function initRedis(override?: Partial<RedisConfig>): Promise<RedisPlugin>;
110
+ declare function getRedis(): RedisPlugin;
111
+ declare function shutdownRedis(): Promise<void>;
112
+ declare const redis: {
113
+ init: typeof initRedis;
114
+ getPlugin: typeof getRedis;
115
+ shutdown: typeof shutdownRedis;
116
+ set: (key: string, value: string | number, options?: {
117
+ EX?: number;
118
+ PX?: number;
119
+ NX?: boolean;
120
+ XX?: boolean;
121
+ }) => Promise<"OK" | null>;
122
+ get: (key: string) => Promise<string | null>;
123
+ del: (key: string | string[]) => Promise<number>;
124
+ exists: (key: string | string[]) => Promise<number>;
125
+ expire: (key: string, seconds: number) => Promise<number>;
126
+ ttl: (key: string) => Promise<number>;
127
+ hset: (key: string, field: string, value: string) => Promise<number>;
128
+ hget: (key: string, field: string) => Promise<string | null>;
129
+ hgetall: (key: string) => Promise<Record<string, string>>;
130
+ hdel: (key: string, field: string | string[]) => Promise<number>;
131
+ lpush: (key: string, ...elements: string[]) => Promise<number>;
132
+ rpush: (key: string, ...elements: string[]) => Promise<number>;
133
+ lpop: (key: string) => Promise<string | null>;
134
+ rpop: (key: string) => Promise<string | null>;
135
+ llen: (key: string) => Promise<number>;
136
+ lrange: (key: string, start: number, stop: number) => Promise<string[]>;
137
+ sadd: (key: string, ...members: string[]) => Promise<number>;
138
+ srem: (key: string, ...members: string[]) => Promise<number>;
139
+ smembers: (key: string) => Promise<string[]>;
140
+ sismember: (key: string, member: string) => Promise<number>;
141
+ scard: (key: string) => Promise<number>;
142
+ zadd: (key: string, score: number, member: string) => Promise<number>;
143
+ zrange: (key: string, start: number, stop: number) => Promise<string[]>;
144
+ ping: () => Promise<string>;
145
+ flushdb: () => Promise<"OK">;
146
+ flushall: () => Promise<"OK">;
147
+ getConnectionInfo: () => Promise<RedisConnectionInfo>;
148
+ getStats: () => Promise<RedisStats>;
149
+ };
150
+
151
+ export { RedisPlugin, getRedis, initRedis, redis, shutdownRedis };
@@ -1,4 +1,4 @@
1
- import { BasePlugin } from '../../core/index.js';
1
+ import { B as BasePlugin } from '../../shared/conduithub.DSAmRivG.js';
2
2
  import { z } from 'zod';
3
3
  import '../../core/hook/index.js';
4
4
  import '../../shared/conduithub.B7aryjPG.js';
@@ -6,6 +6,21 @@ import '../../shared/conduithub.DQOWQ-Bx.js';
6
6
  import '../../core/service-container/index.js';
7
7
  import '../../core/state-manager/index.js';
8
8
 
9
+ interface RedisConnectionInfo {
10
+ host: string;
11
+ port: number;
12
+ db: number;
13
+ connected: boolean;
14
+ timestamp: number;
15
+ }
16
+ interface RedisStats {
17
+ totalCommands: number;
18
+ successfulCommands: number;
19
+ failedCommands: number;
20
+ averageResponseTime: number;
21
+ lastCommandTime?: number;
22
+ }
23
+
9
24
  declare const redisConfigSchema: z.ZodObject<{
10
25
  host: z.ZodDefault<z.ZodString>;
11
26
  port: z.ZodDefault<z.ZodNumber>;
@@ -35,21 +50,6 @@ declare const redisConfigSchema: z.ZodObject<{
35
50
  }, z.core.$strip>;
36
51
  type RedisConfig = z.infer<typeof redisConfigSchema>;
37
52
 
38
- interface RedisConnectionInfo {
39
- host: string;
40
- port: number;
41
- db: number;
42
- connected: boolean;
43
- timestamp: number;
44
- }
45
- interface RedisStats {
46
- totalCommands: number;
47
- successfulCommands: number;
48
- failedCommands: number;
49
- averageResponseTime: number;
50
- lastCommandTime?: number;
51
- }
52
-
53
53
  declare class RedisPlugin extends BasePlugin<RedisConfig> {
54
54
  private redis;
55
55
  private ioredisClient?;
@@ -106,4 +106,46 @@ declare class RedisPlugin extends BasePlugin<RedisConfig> {
106
106
  flushall(): Promise<"OK">;
107
107
  }
108
108
 
109
- export { RedisPlugin };
109
+ declare function initRedis(override?: Partial<RedisConfig>): Promise<RedisPlugin>;
110
+ declare function getRedis(): RedisPlugin;
111
+ declare function shutdownRedis(): Promise<void>;
112
+ declare const redis: {
113
+ init: typeof initRedis;
114
+ getPlugin: typeof getRedis;
115
+ shutdown: typeof shutdownRedis;
116
+ set: (key: string, value: string | number, options?: {
117
+ EX?: number;
118
+ PX?: number;
119
+ NX?: boolean;
120
+ XX?: boolean;
121
+ }) => Promise<"OK" | null>;
122
+ get: (key: string) => Promise<string | null>;
123
+ del: (key: string | string[]) => Promise<number>;
124
+ exists: (key: string | string[]) => Promise<number>;
125
+ expire: (key: string, seconds: number) => Promise<number>;
126
+ ttl: (key: string) => Promise<number>;
127
+ hset: (key: string, field: string, value: string) => Promise<number>;
128
+ hget: (key: string, field: string) => Promise<string | null>;
129
+ hgetall: (key: string) => Promise<Record<string, string>>;
130
+ hdel: (key: string, field: string | string[]) => Promise<number>;
131
+ lpush: (key: string, ...elements: string[]) => Promise<number>;
132
+ rpush: (key: string, ...elements: string[]) => Promise<number>;
133
+ lpop: (key: string) => Promise<string | null>;
134
+ rpop: (key: string) => Promise<string | null>;
135
+ llen: (key: string) => Promise<number>;
136
+ lrange: (key: string, start: number, stop: number) => Promise<string[]>;
137
+ sadd: (key: string, ...members: string[]) => Promise<number>;
138
+ srem: (key: string, ...members: string[]) => Promise<number>;
139
+ smembers: (key: string) => Promise<string[]>;
140
+ sismember: (key: string, member: string) => Promise<number>;
141
+ scard: (key: string) => Promise<number>;
142
+ zadd: (key: string, score: number, member: string) => Promise<number>;
143
+ zrange: (key: string, start: number, stop: number) => Promise<string[]>;
144
+ ping: () => Promise<string>;
145
+ flushdb: () => Promise<"OK">;
146
+ flushall: () => Promise<"OK">;
147
+ getConnectionInfo: () => Promise<RedisConnectionInfo>;
148
+ getStats: () => Promise<RedisStats>;
149
+ };
150
+
151
+ export { RedisPlugin, getRedis, initRedis, redis, shutdownRedis };
@@ -1,6 +1,23 @@
1
- export { R as RedisPlugin } from '../../shared/conduithub.-bZD30_I.mjs';
2
- import 'ioredis';
3
- import '../../core/plugin/index.mjs';
1
+ export { R as RedisPlugin, g as getRedis, i as initRedis, r as redis, s as shutdownRedis } from '../../shared/conduithub.BzuAKyjY.mjs';
2
+ import 'node:fs';
3
+ import 'node:fs/promises';
4
+ import 'node:path';
5
+ import '../../shared/conduithub.BNefRQsK.mjs';
6
+ import '../../shared/conduithub.B16qn6pY.mjs';
7
+ import 'zod';
8
+ import '../../core/conduit-hub/index.mjs';
9
+ import 'process';
10
+ import 'readline';
11
+ import 'uuid';
12
+ import '../../core/config-manager/index.mjs';
4
13
  import '../../shared/conduithub.G7ICpZIy.mjs';
14
+ import '../../shared/conduithub.alPiaJax.mjs';
15
+ import '../../core/event-bus/index.mjs';
16
+ import '../../error/index.mjs';
17
+ import '../../shared/conduithub.CkOQG3cD.mjs';
18
+ import '../../core/hook/index.mjs';
5
19
  import '../../shared/conduithub.DyQQrHW9.mjs';
6
- import 'zod';
20
+ import '../../core/service-container/index.mjs';
21
+ import '../../core/state-manager/index.mjs';
22
+ import 'ioredis';
23
+ import '../../core/plugin/index.mjs';