alepha 0.13.3 → 0.13.5

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 (138) hide show
  1. package/README.md +7 -7
  2. package/dist/api-files/index.browser.js +5 -5
  3. package/dist/api-files/index.d.ts +16 -16
  4. package/dist/api-files/index.js +9 -9
  5. package/dist/api-jobs/index.browser.js +5 -5
  6. package/dist/api-jobs/index.d.ts +17 -17
  7. package/dist/api-jobs/index.js +9 -9
  8. package/dist/api-notifications/index.browser.js +11 -11
  9. package/dist/api-notifications/index.d.ts +158 -158
  10. package/dist/api-notifications/index.js +11 -11
  11. package/dist/api-parameters/index.browser.js +2 -2
  12. package/dist/api-parameters/index.d.ts +3 -3
  13. package/dist/api-parameters/index.js +3 -3
  14. package/dist/api-users/index.browser.js +6 -6
  15. package/dist/api-users/index.d.ts +55 -55
  16. package/dist/api-users/index.js +36 -36
  17. package/dist/api-verifications/index.browser.js +5 -5
  18. package/dist/api-verifications/index.d.ts +9 -9
  19. package/dist/api-verifications/index.js +10 -10
  20. package/dist/batch/index.d.ts +3 -3
  21. package/dist/batch/index.js +3 -3
  22. package/dist/bin/index.js +1 -1
  23. package/dist/bucket/index.d.ts +6 -6
  24. package/dist/bucket/index.js +7 -7
  25. package/dist/cache/index.d.ts +4 -4
  26. package/dist/cache/index.js +5 -5
  27. package/dist/cache-redis/index.d.ts +2 -2
  28. package/dist/cache-redis/index.js +2 -2
  29. package/dist/cli/{dist-lGnqsKpu.js → dist-BlfFtOk2.js} +16 -16
  30. package/dist/cli/{dist-lGnqsKpu.js.map → dist-BlfFtOk2.js.map} +1 -1
  31. package/dist/cli/index.d.ts +31 -75
  32. package/dist/cli/index.js +94 -171
  33. package/dist/cli/index.js.map +1 -1
  34. package/dist/command/index.d.ts +8 -8
  35. package/dist/command/index.js +11 -10
  36. package/dist/command/index.js.map +1 -1
  37. package/dist/core/index.browser.js +40 -36
  38. package/dist/core/index.browser.js.map +1 -1
  39. package/dist/core/index.d.ts +255 -253
  40. package/dist/core/index.js +40 -36
  41. package/dist/core/index.js.map +1 -1
  42. package/dist/core/index.native.js +40 -36
  43. package/dist/core/index.native.js.map +1 -1
  44. package/dist/datetime/index.d.ts +3 -3
  45. package/dist/datetime/index.js +3 -3
  46. package/dist/email/index.d.ts +7 -7
  47. package/dist/email/index.js +42 -42
  48. package/dist/fake/index.d.ts +2 -2
  49. package/dist/fake/index.js +5 -5
  50. package/dist/file/index.d.ts +4 -4
  51. package/dist/file/index.js +4 -4
  52. package/dist/lock/index.d.ts +5 -5
  53. package/dist/lock/index.js +5 -5
  54. package/dist/lock-redis/index.d.ts +2 -2
  55. package/dist/lock-redis/index.js +2 -2
  56. package/dist/logger/index.d.ts +11 -11
  57. package/dist/logger/index.js +12 -12
  58. package/dist/orm/index.browser.js +12 -12
  59. package/dist/orm/index.d.ts +33 -33
  60. package/dist/orm/index.js +32 -32
  61. package/dist/queue/index.d.ts +7 -7
  62. package/dist/queue/index.js +6 -6
  63. package/dist/queue-redis/index.d.ts +2 -2
  64. package/dist/queue-redis/index.js +2 -2
  65. package/dist/redis/index.d.ts +13 -13
  66. package/dist/redis/index.js +3 -3
  67. package/dist/retry/index.d.ts +5 -5
  68. package/dist/retry/index.js +5 -5
  69. package/dist/router/index.d.ts +1 -1
  70. package/dist/router/index.js +1 -1
  71. package/dist/scheduler/index.d.ts +4 -4
  72. package/dist/scheduler/index.js +7 -7
  73. package/dist/security/index.browser.js +7 -7
  74. package/dist/security/index.d.ts +15 -15
  75. package/dist/security/index.js +46 -46
  76. package/dist/server/index.browser.js +14 -14
  77. package/dist/server/index.d.ts +26 -26
  78. package/dist/server/index.js +26 -26
  79. package/dist/server-auth/index.browser.js +6 -6
  80. package/dist/server-auth/index.d.ts +11 -11
  81. package/dist/server-auth/index.js +13 -13
  82. package/dist/server-cache/index.d.ts +2 -2
  83. package/dist/server-cache/index.js +2 -2
  84. package/dist/server-compress/index.d.ts +2 -2
  85. package/dist/server-compress/index.js +2 -2
  86. package/dist/server-cookies/index.browser.js +3 -3
  87. package/dist/server-cookies/index.d.ts +4 -4
  88. package/dist/server-cookies/index.js +4 -4
  89. package/dist/server-cors/index.d.ts +3 -3
  90. package/dist/server-cors/index.js +3 -3
  91. package/dist/server-health/index.d.ts +3 -3
  92. package/dist/server-health/index.js +3 -3
  93. package/dist/server-helmet/index.d.ts +2 -2
  94. package/dist/server-helmet/index.js +2 -2
  95. package/dist/server-links/index.browser.js +5 -5
  96. package/dist/server-links/index.d.ts +40 -40
  97. package/dist/server-links/index.js +7 -7
  98. package/dist/server-metrics/index.d.ts +2 -2
  99. package/dist/server-metrics/index.js +86 -86
  100. package/dist/server-multipart/index.d.ts +2 -2
  101. package/dist/server-multipart/index.js +2 -2
  102. package/dist/server-proxy/index.d.ts +3 -3
  103. package/dist/server-proxy/index.js +3 -3
  104. package/dist/server-rate-limit/index.d.ts +3 -3
  105. package/dist/server-rate-limit/index.js +3 -3
  106. package/dist/server-security/index.browser.js +1 -1
  107. package/dist/server-security/index.d.ts +4 -4
  108. package/dist/server-security/index.js +4 -4
  109. package/dist/server-static/index.d.ts +3 -3
  110. package/dist/server-static/index.js +3 -3
  111. package/dist/server-swagger/index.d.ts +3 -3
  112. package/dist/server-swagger/index.js +3 -3
  113. package/dist/sms/index.d.ts +6 -6
  114. package/dist/sms/index.js +6 -6
  115. package/dist/thread/index.d.ts +3 -3
  116. package/dist/thread/index.js +3 -3
  117. package/dist/topic/index.d.ts +6 -6
  118. package/dist/topic/index.js +6 -6
  119. package/dist/topic-redis/index.d.ts +2 -2
  120. package/dist/topic-redis/index.js +2 -2
  121. package/dist/vite/index.d.ts +17 -17
  122. package/dist/vite/index.js +20 -20
  123. package/dist/websocket/index.browser.js +9 -9
  124. package/dist/websocket/index.d.ts +17 -17
  125. package/dist/websocket/index.js +10 -10
  126. package/package.json +5 -4
  127. package/src/cli/apps/AlephaCli.ts +1 -2
  128. package/src/cli/commands/BiomeCommands.ts +4 -6
  129. package/src/cli/commands/CoreCommands.ts +2 -2
  130. package/src/cli/commands/DrizzleCommands.ts +76 -78
  131. package/src/cli/commands/VerifyCommands.ts +3 -5
  132. package/src/cli/commands/ViteCommands.ts +6 -8
  133. package/src/cli/index.ts +1 -1
  134. package/src/cli/services/{ProjectUtils.ts → AlephaCliUtils.ts} +101 -16
  135. package/src/command/providers/CliProvider.ts +12 -4
  136. package/src/core/Alepha.ts +14 -0
  137. package/src/core/primitives/$module.ts +1 -1
  138. package/src/cli/services/ProcessRunner.ts +0 -89
@@ -3,7 +3,7 @@ import { InstantiableClass, KIND, Primitive } from "alepha";
3
3
  import { DateTimeProvider, DurationLike, Timeout } from "alepha/datetime";
4
4
  import * as alepha_logger0 from "alepha/logger";
5
5
 
6
- //#region src/cache/providers/CacheProvider.d.ts
6
+ //#region ../../src/cache/providers/CacheProvider.d.ts
7
7
  /**
8
8
  * Cache provider interface.
9
9
  *
@@ -46,7 +46,7 @@ declare abstract class CacheProvider {
46
46
  abstract clear(): Promise<void>;
47
47
  }
48
48
  //#endregion
49
- //#region src/cache/primitives/$cache.d.ts
49
+ //#region ../../src/cache/primitives/$cache.d.ts
50
50
  /**
51
51
  * Creates a cache primitive for high-performance data caching with automatic management.
52
52
  *
@@ -165,7 +165,7 @@ interface CachePrimitiveFn<TReturn = any, TParameter extends any[] = any[]> exte
165
165
  (...args: TParameter): Promise<TReturn>;
166
166
  }
167
167
  //#endregion
168
- //#region src/cache/providers/MemoryCacheProvider.d.ts
168
+ //#region ../../src/cache/providers/MemoryCacheProvider.d.ts
169
169
  type CacheName = string;
170
170
  type CacheKey = string;
171
171
  type CacheValue = {
@@ -184,7 +184,7 @@ declare class MemoryCacheProvider implements CacheProvider {
184
184
  clear(): Promise<void>;
185
185
  }
186
186
  //#endregion
187
- //#region src/cache/index.d.ts
187
+ //#region ../../src/cache/index.d.ts
188
188
  /**
189
189
  * Provides high-performance caching capabilities for Alepha applications with configurable TTL and multiple storage backends.
190
190
  *
@@ -2,11 +2,11 @@ import { $env, $inject, $module, AlephaError, KIND, Primitive, createPrimitive,
2
2
  import { DateTimeProvider } from "alepha/datetime";
3
3
  import { $logger } from "alepha/logger";
4
4
 
5
- //#region src/cache/errors/CacheError.ts
5
+ //#region ../../src/cache/errors/CacheError.ts
6
6
  var CacheError = class extends AlephaError {};
7
7
 
8
8
  //#endregion
9
- //#region src/cache/providers/CacheProvider.ts
9
+ //#region ../../src/cache/providers/CacheProvider.ts
10
10
  /**
11
11
  * Cache provider interface.
12
12
  *
@@ -16,7 +16,7 @@ var CacheError = class extends AlephaError {};
16
16
  var CacheProvider = class {};
17
17
 
18
18
  //#endregion
19
- //#region src/cache/providers/MemoryCacheProvider.ts
19
+ //#region ../../src/cache/providers/MemoryCacheProvider.ts
20
20
  var MemoryCacheProvider = class {
21
21
  dateTimeProvider = $inject(DateTimeProvider);
22
22
  log = $logger();
@@ -82,7 +82,7 @@ var MemoryCacheProvider = class {
82
82
  };
83
83
 
84
84
  //#endregion
85
- //#region src/cache/primitives/$cache.ts
85
+ //#region ../../src/cache/primitives/$cache.ts
86
86
  /**
87
87
  * Creates a cache primitive for high-performance data caching with automatic management.
88
88
  *
@@ -209,7 +209,7 @@ var CachePrimitive = class extends Primitive {
209
209
  $cache[KIND] = CachePrimitive;
210
210
 
211
211
  //#endregion
212
- //#region src/cache/index.ts
212
+ //#region ../../src/cache/index.ts
213
213
  /**
214
214
  * Provides high-performance caching capabilities for Alepha applications with configurable TTL and multiple storage backends.
215
215
  *
@@ -4,7 +4,7 @@ import { CacheProvider } from "alepha/cache";
4
4
  import * as alepha_logger0 from "alepha/logger";
5
5
  import { RedisProvider } from "alepha/redis";
6
6
 
7
- //#region src/cache-redis/providers/RedisCacheProvider.d.ts
7
+ //#region ../../src/cache-redis/providers/RedisCacheProvider.d.ts
8
8
  declare const envSchema: alepha1.TObject<{
9
9
  REDIS_CACHE_PREFIX: alepha1.TOptional<alepha1.TString>;
10
10
  }>;
@@ -27,7 +27,7 @@ declare class RedisCacheProvider implements CacheProvider {
27
27
  protected prefix(...path: string[]): string;
28
28
  }
29
29
  //#endregion
30
- //#region src/cache-redis/index.d.ts
30
+ //#region ../../src/cache-redis/index.d.ts
31
31
  /**
32
32
  * Plugin for Alepha Cache that provides Redis caching capabilities.
33
33
  *
@@ -3,7 +3,7 @@ import { AlephaCache, CacheProvider } from "alepha/cache";
3
3
  import { $logger } from "alepha/logger";
4
4
  import { RedisProvider } from "alepha/redis";
5
5
 
6
- //#region src/cache-redis/providers/RedisCacheProvider.ts
6
+ //#region ../../src/cache-redis/providers/RedisCacheProvider.ts
7
7
  const envSchema = t.object({ REDIS_CACHE_PREFIX: t.optional(t.text({ description: "Force a prefix for all cache keys in Redis. Useful for testing or multi-tenant applications." })) });
8
8
  var RedisCacheProvider = class {
9
9
  log = $logger();
@@ -61,7 +61,7 @@ var RedisCacheProvider = class {
61
61
  };
62
62
 
63
63
  //#endregion
64
- //#region src/cache-redis/index.ts
64
+ //#region ../../src/cache-redis/index.ts
65
65
  /**
66
66
  * Plugin for Alepha Cache that provides Redis caching capabilities.
67
67
  *
@@ -4,7 +4,7 @@ import "vite/module-runner";
4
4
  var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
5
5
 
6
6
  //#endregion
7
- //#region ../../node_modules/tinyrainbow/dist/index.js
7
+ //#region ../../../../node_modules/tinyrainbow/dist/index.js
8
8
  var d = {
9
9
  reset: [0, 0],
10
10
  bold: [
@@ -88,7 +88,7 @@ function f() {
88
88
  var C = f();
89
89
 
90
90
  //#endregion
91
- //#region ../../node_modules/@vitest/pretty-format/dist/index.js
91
+ //#region ../../../../node_modules/@vitest/pretty-format/dist/index.js
92
92
  function _mergeNamespaces(n, m) {
93
93
  m.forEach(function(e) {
94
94
  e && typeof e !== "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
@@ -755,7 +755,7 @@ const plugins = {
755
755
  };
756
756
 
757
757
  //#endregion
758
- //#region ../../node_modules/@vitest/utils/dist/display.js
758
+ //#region ../../../../node_modules/@vitest/utils/dist/display.js
759
759
  const ansiColors = {
760
760
  bold: ["1", "22"],
761
761
  dim: ["2", "22"],
@@ -1244,7 +1244,7 @@ function objDisplay(obj, options = {}) {
1244
1244
  }
1245
1245
 
1246
1246
  //#endregion
1247
- //#region ../../node_modules/@vitest/utils/dist/helpers.js
1247
+ //#region ../../../../node_modules/@vitest/utils/dist/helpers.js
1248
1248
  function assertTypes(value, name, types) {
1249
1249
  const receivedType = typeof value;
1250
1250
  if (!types.includes(receivedType)) throw new TypeError(`${name} value must be ${types.join(" or ")}, received "${receivedType}"`);
@@ -1285,7 +1285,7 @@ function isNegativeNaN(val) {
1285
1285
  }
1286
1286
 
1287
1287
  //#endregion
1288
- //#region ../../node_modules/@vitest/utils/dist/timers.js
1288
+ //#region ../../../../node_modules/@vitest/utils/dist/timers.js
1289
1289
  const SAFE_TIMERS_SYMBOL = Symbol("vitest:SAFE_TIMERS");
1290
1290
  function getSafeTimers() {
1291
1291
  const { setTimeout: safeSetTimeout, setInterval: safeSetInterval, clearInterval: safeClearInterval, clearTimeout: safeClearTimeout, setImmediate: safeSetImmediate, clearImmediate: safeClearImmediate, queueMicrotask: safeQueueMicrotask } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis;
@@ -1303,7 +1303,7 @@ function getSafeTimers() {
1303
1303
  }
1304
1304
 
1305
1305
  //#endregion
1306
- //#region ../../node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js
1306
+ //#region ../../../../node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js
1307
1307
  const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
1308
1308
  function normalizeWindowsPath(input = "") {
1309
1309
  if (!input) return input;
@@ -1383,7 +1383,7 @@ const isAbsolute = function(p) {
1383
1383
  };
1384
1384
 
1385
1385
  //#endregion
1386
- //#region ../../node_modules/@vitest/utils/dist/source-map.js
1386
+ //#region ../../../../node_modules/@vitest/utils/dist/source-map.js
1387
1387
  var comma = ",".charCodeAt(0);
1388
1388
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
1389
1389
  var intToChar = new Uint8Array(64);
@@ -1473,7 +1473,7 @@ function parseSingleV8Stack(raw) {
1473
1473
  }
1474
1474
 
1475
1475
  //#endregion
1476
- //#region ../../node_modules/@vitest/runner/dist/chunk-tasks.js
1476
+ //#region ../../../../node_modules/@vitest/runner/dist/chunk-tasks.js
1477
1477
  function createChainable(keys, fn$1) {
1478
1478
  function create(context) {
1479
1479
  const chain$1 = function(...args) {
@@ -1511,7 +1511,7 @@ function createTaskName(names, separator = " > ") {
1511
1511
  }
1512
1512
 
1513
1513
  //#endregion
1514
- //#region ../../node_modules/@vitest/runner/dist/index.js
1514
+ //#region ../../../../node_modules/@vitest/runner/dist/index.js
1515
1515
  var PendingError = class extends Error {
1516
1516
  code = "VITEST_PENDING";
1517
1517
  taskId;
@@ -2637,31 +2637,31 @@ function manageArtifactAttachment(attachment) {
2637
2637
  }
2638
2638
 
2639
2639
  //#endregion
2640
- //#region ../../node_modules/expect-type/dist/branding.js
2640
+ //#region ../../../../node_modules/expect-type/dist/branding.js
2641
2641
  var require_branding = /* @__PURE__ */ __commonJSMin(((exports) => {
2642
2642
  Object.defineProperty(exports, "__esModule", { value: true });
2643
2643
  }));
2644
2644
 
2645
2645
  //#endregion
2646
- //#region ../../node_modules/expect-type/dist/messages.js
2646
+ //#region ../../../../node_modules/expect-type/dist/messages.js
2647
2647
  var require_messages = /* @__PURE__ */ __commonJSMin(((exports) => {
2648
2648
  Object.defineProperty(exports, "__esModule", { value: true });
2649
2649
  }));
2650
2650
 
2651
2651
  //#endregion
2652
- //#region ../../node_modules/expect-type/dist/overloads.js
2652
+ //#region ../../../../node_modules/expect-type/dist/overloads.js
2653
2653
  var require_overloads = /* @__PURE__ */ __commonJSMin(((exports) => {
2654
2654
  Object.defineProperty(exports, "__esModule", { value: true });
2655
2655
  }));
2656
2656
 
2657
2657
  //#endregion
2658
- //#region ../../node_modules/expect-type/dist/utils.js
2658
+ //#region ../../../../node_modules/expect-type/dist/utils.js
2659
2659
  var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
2660
2660
  Object.defineProperty(exports, "__esModule", { value: true });
2661
2661
  }));
2662
2662
 
2663
2663
  //#endregion
2664
- //#region ../../node_modules/expect-type/dist/index.js
2664
+ //#region ../../../../node_modules/expect-type/dist/index.js
2665
2665
  var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
2666
2666
  var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
2667
2667
  if (k2 === void 0) k2 = k;
@@ -2762,9 +2762,9 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
2762
2762
  }));
2763
2763
 
2764
2764
  //#endregion
2765
- //#region ../../node_modules/vitest/dist/index.js
2765
+ //#region ../../../../node_modules/vitest/dist/index.js
2766
2766
  var import_dist = require_dist();
2767
2767
 
2768
2768
  //#endregion
2769
2769
  export { };
2770
- //# sourceMappingURL=dist-lGnqsKpu.js.map
2770
+ //# sourceMappingURL=dist-BlfFtOk2.js.map