stacks 0.58.41 → 0.58.44

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 (129) hide show
  1. package/core/actions/dist/src/build/core.js +10 -14
  2. package/core/actions/dist/src/lint/index.js +11 -15
  3. package/core/actions/dist/src/upgrade/index.js +62 -0
  4. package/core/actions/dist/src/upgrade.js +10 -5
  5. package/core/actions/package.json +1 -1
  6. package/core/actions/src/build/cli.ts +7 -0
  7. package/core/actions/src/build/core.ts +16 -48
  8. package/core/actions/src/dev/api.ts +1 -1
  9. package/core/actions/src/lint/index.ts +20 -12
  10. package/core/actions/src/upgrade/index.ts +16 -20
  11. package/core/actions/src/upgrade.ts +5 -5
  12. package/core/ai/dist/index.js +10372 -0
  13. package/core/ai/package.json +3 -3
  14. package/core/alias/package.json +1 -1
  15. package/core/analytics/package.json +1 -1
  16. package/core/api/dist/index.js +636 -0
  17. package/core/api/package.json +1 -1
  18. package/core/arrays/package.json +1 -1
  19. package/core/auth/package.json +1 -1
  20. package/core/buddy/{src/compile.ts → compile.ts} +1 -2
  21. package/core/buddy/dist/{chunk-c58676a39cd23812.js → chunk-b32089b9556f373c.js} +48 -14
  22. package/core/buddy/dist/cli.js +6 -2
  23. package/core/buddy/dist/index.js +1 -1
  24. package/core/buddy/package.json +1 -1
  25. package/core/buddy/src/cli.ts +2 -3
  26. package/core/buddy/src/commands/build.ts +55 -10
  27. package/core/buddy/src/commands/lint.ts +2 -1
  28. package/core/buddy/src/commands/upgrade.ts +2 -2
  29. package/core/build/package.json +1 -1
  30. package/core/bun-create/bud/package.json +1 -1
  31. package/core/bun-create/buddy/package.json +1 -1
  32. package/core/bun-create/stack/package.json +1 -1
  33. package/core/bun-create/stacks/package.json +1 -1
  34. package/core/bun-create/stx/package.json +1 -1
  35. package/core/bun-plugin-yaml/package.json +1 -1
  36. package/core/cache/package.json +2 -2
  37. package/core/chat/package.json +1 -1
  38. package/core/cli/dist/index.js +1 -1
  39. package/core/cli/package.json +1 -1
  40. package/core/cloud/build.ts +4 -0
  41. package/core/cloud/dist/index.js +2718 -0
  42. package/core/cloud/package.json +29 -29
  43. package/core/cloud/src/cloud/ai.ts +4 -34
  44. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package-lock.json +6 -6
  45. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +2 -2
  46. package/core/cloud/src/cloud/cdn.ts +23 -23
  47. package/core/cloud/src/cloud/compute.ts +1 -0
  48. package/core/cloud/src/cloud/index.ts +1 -0
  49. package/core/collections/package.json +1 -1
  50. package/core/config/dist/index.js +2 -13
  51. package/core/config/package.json +1 -1
  52. package/core/database/package.json +2 -2
  53. package/core/datetime/package.json +1 -1
  54. package/core/desktop/package.json +3 -5
  55. package/core/development/package.json +1 -1
  56. package/core/dns/package.json +4 -4
  57. package/core/docs/package.json +1 -1
  58. package/core/email/package.json +1 -1
  59. package/core/enums/dist/index.js +3 -3
  60. package/core/enums/package.json +1 -1
  61. package/core/enums/src/index.ts +3 -3
  62. package/core/env/package.json +1 -1
  63. package/core/error-handling/package.json +1 -1
  64. package/core/eslint-config/package.json +4 -4
  65. package/core/events/package.json +1 -1
  66. package/core/faker/package.json +1 -1
  67. package/core/git/package.json +1 -1
  68. package/core/health/package.json +1 -1
  69. package/core/http/package.json +1 -1
  70. package/core/lint/package.json +1 -1
  71. package/core/logging/package.json +1 -1
  72. package/core/notifications/package.json +1 -1
  73. package/core/objects/package.json +1 -1
  74. package/core/orm/package.json +1 -1
  75. package/core/path/dist/index.js +14 -2
  76. package/core/path/package.json +1 -1
  77. package/core/path/src/index.ts +18 -2
  78. package/core/payments/package.json +1 -1
  79. package/core/push/dist/index.js +35 -0
  80. package/core/push/package.json +1 -1
  81. package/core/query-builder/package.json +1 -1
  82. package/core/queue/package.json +1 -1
  83. package/core/raycast/package.json +6 -2
  84. package/core/realtime/package.json +1 -1
  85. package/core/repl/package.json +1 -1
  86. package/core/router/dist/index.js +1 -2
  87. package/core/router/package.json +1 -1
  88. package/core/router/src/middleware.ts +1 -3
  89. package/core/scheduler/package.json +1 -1
  90. package/core/search-engine/package.json +1 -1
  91. package/core/security/package.json +1 -1
  92. package/core/server/package.json +1 -1
  93. package/core/signals/package.json +1 -1
  94. package/core/slug/package.json +1 -1
  95. package/core/sms/dist/index.js +240 -0
  96. package/core/sms/package.json +1 -1
  97. package/core/storage/dist/index.js +3 -1
  98. package/core/storage/package.json +1 -1
  99. package/core/storage/src/zip.ts +3 -6
  100. package/core/strings/package.json +1 -1
  101. package/core/tables/package.json +2 -2
  102. package/core/testing/package.json +1 -1
  103. package/core/tinker/package.json +1 -1
  104. package/core/tunnel/package.json +1 -1
  105. package/core/types/package.json +2 -2
  106. package/core/types/src/cli.ts +2 -2
  107. package/core/ui/dist/index.js +4 -2
  108. package/core/ui/package.json +2 -2
  109. package/core/ui/src/uno.config.ts +2 -1
  110. package/core/utils/dist/index.js +1 -1
  111. package/core/utils/package.json +1 -1
  112. package/core/validation/package.json +3 -3
  113. package/core/vite/dist/index.js +2 -10
  114. package/core/vite/package.json +3 -3
  115. package/core/vite/src/api.ts +9 -11
  116. package/core/vite/src/example-vue.ts +1 -8
  117. package/core/whois/package.json +1 -1
  118. package/core/x-ray/package.json +2 -3
  119. package/core/x-ray/src/desktop/main.ts +0 -6
  120. package/core/zsh-buddy/package.json +8 -2
  121. package/ide/dictionary.txt +6 -0
  122. package/ide/vscode/package.json +1 -1
  123. package/package.json +2 -2
  124. package/core/music/package.json +0 -46
  125. package/core/music/src/components/SampleComponent.stx +0 -5
  126. package/core/music/src/layouts/default.stx +0 -3
  127. package/core/music/src/pages/index.stx +0 -10
  128. package/core/music/src/pages/music.stx +0 -10
  129. package/core/music/src/styles/main.css +0 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/logging",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
5
5
  "description": "The Stacks logging system.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/notifications",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
5
5
  "description": "The Stacks notifications integration.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/objects",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
5
5
  "description": "The Stacks objects.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/orm",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
5
5
  "description": "The Stacks ORM integration",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -17,6 +17,12 @@ function assetsPath(path) {
17
17
  function aliasPath() {
18
18
  return corePath("alias/src/index.ts");
19
19
  }
20
+ function buddyPath(path, options) {
21
+ const absolutePath = corePath(`buddy/${path || ""}`);
22
+ if (options?.relative)
23
+ return relative(process.cwd(), absolutePath);
24
+ return absolutePath;
25
+ }
20
26
  function runtimePath(path) {
21
27
  return frameworkPath(`buddy/${path || ""}`);
22
28
  }
@@ -110,8 +116,11 @@ function examplesPath(type) {
110
116
  function fakerPath(path) {
111
117
  return corePath(`faker/${path || ""}`);
112
118
  }
113
- function frameworkPath(path) {
114
- return projectStoragePath(`framework/${path || ""}`);
119
+ function frameworkPath(path, options) {
120
+ const absolutePath = projectStoragePath(`framework/${path || ""}`);
121
+ if (options?.relative)
122
+ return relative(options.cwd || process.cwd(), absolutePath);
123
+ return absolutePath;
115
124
  }
116
125
  function healthPath(path) {
117
126
  return corePath(`health/${path || ""}`);
@@ -298,6 +307,7 @@ var path = {
298
307
  arraysPath,
299
308
  appPath,
300
309
  authPath,
310
+ buddyPath,
301
311
  buildEnginePath,
302
312
  libsEntriesPath,
303
313
  buildPath,
@@ -355,6 +365,7 @@ var path = {
355
365
  replPath,
356
366
  routerPath,
357
367
  routesPath,
368
+ runtimePath,
358
369
  searchEnginePath,
359
370
  schedulerPath,
360
371
  settingsPath,
@@ -491,6 +502,7 @@ export {
491
502
  cachePath,
492
503
  buildPath,
493
504
  buildEnginePath,
505
+ buddyPath,
494
506
  basename,
495
507
  authPath,
496
508
  assetsPath,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/path",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
5
5
  "description": "The Stacks path.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -51,6 +51,15 @@ export function aliasPath() {
51
51
  return corePath('alias/src/index.ts')
52
52
  }
53
53
 
54
+ export function buddyPath(path?: string, options?: { relative?: boolean }) {
55
+ const absolutePath = corePath(`buddy/${path || ''}`)
56
+
57
+ if (options?.relative)
58
+ return relative(process.cwd(), absolutePath)
59
+
60
+ return absolutePath
61
+ }
62
+
54
63
  export function runtimePath(path?: string) {
55
64
  return frameworkPath(`buddy/${path || ''}`)
56
65
  }
@@ -187,8 +196,13 @@ export function fakerPath(path?: string) {
187
196
  return corePath(`faker/${path || ''}`)
188
197
  }
189
198
 
190
- export function frameworkPath(path?: string) {
191
- return projectStoragePath(`framework/${path || ''}`)
199
+ export function frameworkPath(path?: string, options?: { relative?: boolean, cwd?: string }) {
200
+ const absolutePath = projectStoragePath(`framework/${path || ''}`)
201
+
202
+ if (options?.relative)
203
+ return relative(options.cwd || process.cwd(), absolutePath)
204
+
205
+ return absolutePath
192
206
  }
193
207
 
194
208
  export function healthPath(path?: string) {
@@ -438,6 +452,7 @@ export const path = {
438
452
  arraysPath,
439
453
  appPath,
440
454
  authPath,
455
+ buddyPath,
441
456
  buildEnginePath,
442
457
  libsEntriesPath,
443
458
  buildPath,
@@ -495,6 +510,7 @@ export const path = {
495
510
  replPath,
496
511
  routerPath,
497
512
  routesPath,
513
+ runtimePath,
498
514
  searchEnginePath,
499
515
  schedulerPath,
500
516
  settingsPath,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/payments",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
5
5
  "description": "The Stacks payments package. Currently supporting Stripe.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -0,0 +1,35 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, {
5
+ get: all[name],
6
+ enumerable: true,
7
+ configurable: true,
8
+ set: (newValue) => all[name] = () => newValue
9
+ });
10
+ };
11
+
12
+ // src/drivers/expo.ts
13
+ var exports_expo = {};
14
+ __export(exports_expo, {
15
+ expoWip: () => {
16
+ {
17
+ return expoWip;
18
+ }
19
+ }
20
+ });
21
+ var expoWip = 1;
22
+ // src/drivers/fcm.ts
23
+ var exports_fcm = {};
24
+ __export(exports_fcm, {
25
+ fcmWip: () => {
26
+ {
27
+ return fcmWip;
28
+ }
29
+ }
30
+ });
31
+ var fcmWip = 1;
32
+ export {
33
+ exports_fcm as fcm,
34
+ exports_expo as expo
35
+ };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/push",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
5
5
  "description": "The Stacks Push integration",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/query-builder",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
5
5
  "description": "The Stacks Query Builder integration",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/queue",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
5
5
  "description": "The Stacks Queue system.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,5 +1,9 @@
1
1
  {
2
- "name": "@stacksjs/raycast",
2
+ "name": "stacks-raycast",
3
3
  "type": "module",
4
- "version": "0.58.41"
4
+ "version": "0.58.44",
5
+ "description": "The Stacks Raycast plugin.",
6
+ "scripts": {
7
+ "build": "echo 'No build step required yet.'"
8
+ }
5
9
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/realtime",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
5
5
  "description": "The Stacks realtime integration.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/repl",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
5
5
  "description": "A Stacks optimized TS & Vue REPL.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -112,8 +112,7 @@ function projectPath(filePath = "") {
112
112
 
113
113
  // src/middleware.ts
114
114
  async function importMiddlewares(directory) {
115
- console.log("importMiddlewares", directory);
116
- return [];
115
+ return [directory];
117
116
  }
118
117
 
119
118
  class Middleware {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/router",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
5
5
  "description": "The Stacks framework router.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -17,8 +17,6 @@ export class Middleware implements MiddlewareType {
17
17
  // const readdir = promisify(fs.readdir)
18
18
 
19
19
  async function importMiddlewares(directory: string) {
20
- // eslint-disable-next-line no-console
21
- console.log('importMiddlewares', directory)
22
20
  // const middlewares = []
23
21
  // TODO: somehow this breaks ./buddy dev
24
22
  // const files = await readdir(directory)
@@ -30,7 +28,7 @@ async function importMiddlewares(directory: string) {
30
28
  // }
31
29
 
32
30
  // return middlewares
33
- return []
31
+ return [directory] // fix this: return array of middlewares
34
32
  }
35
33
 
36
34
  export const middlewares = await importMiddlewares(appPath('middleware'))
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/scheduler",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
5
5
  "description": "The Stacks scheduler.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/search-engine",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
5
5
  "description": "The Stacks search engine integrations.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/security",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
5
5
  "description": "The Stacks framework security.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/server",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
5
5
  "description": "Local development and production-ready.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/signals",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
5
5
  "description": "The Stacks signals integration, based on Maverick.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/slug",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
5
5
  "description": "The Stacks slug functionality.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -0,0 +1,240 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, {
5
+ get: all[name],
6
+ enumerable: true,
7
+ configurable: true,
8
+ set: (newValue) => all[name] = () => newValue
9
+ });
10
+ };
11
+
12
+ // src/drivers/twilio.ts
13
+ var exports_twilio = {};
14
+ __export(exports_twilio, {
15
+ send: () => {
16
+ {
17
+ return send;
18
+ }
19
+ },
20
+ Send: () => {
21
+ {
22
+ return send;
23
+ }
24
+ }
25
+ });
26
+ import {TwilioSmsProvider} from "@novu/twilio";
27
+ import {italic} from "@stacksjs/cli";
28
+ import {ResultAsync} from "@stacksjs/error-handling";
29
+ import {notification} from "@stacksjs/config";
30
+ var send = function(options) {
31
+ return ResultAsync.fromPromise(provider.sendMessage(options), () => new Error(`Failed to send message using provider: ${italic("Twilio")}`));
32
+ };
33
+ var from = notification.sms?.from;
34
+ var env = notification.sms?.drivers.twilio;
35
+ var provider = new TwilioSmsProvider({
36
+ accountSid: env?.sid,
37
+ authToken: env?.authToken,
38
+ from: from || ""
39
+ });
40
+ // src/drivers/plivo.ts
41
+ var exports_plivo = {};
42
+ __export(exports_plivo, {
43
+ send: () => {
44
+ {
45
+ return send2;
46
+ }
47
+ },
48
+ Send: () => {
49
+ {
50
+ return send2;
51
+ }
52
+ }
53
+ });
54
+ import {PlivoSmsProvider} from "@novu/plivo";
55
+ import {italic as italic2} from "@stacksjs/cli";
56
+ import {ResultAsync as ResultAsync2} from "@stacksjs/error-handling";
57
+ import {notification as notification2} from "@stacksjs/config";
58
+ var send2 = function(options) {
59
+ return ResultAsync2.fromPromise(provider2.sendMessage(options), () => new Error(`Failed to send message using provider: ${italic2("Plivo")}`));
60
+ };
61
+ var from2 = notification2.sms?.from;
62
+ var env2 = notification2.sms?.drivers.plivo;
63
+ var provider2 = new PlivoSmsProvider({
64
+ accountSid: env2?.sid,
65
+ authToken: env2?.authToken,
66
+ from: from2 || ""
67
+ });
68
+ // src/drivers/nexmo.ts
69
+ var exports_nexmo = {};
70
+ __export(exports_nexmo, {
71
+ send: () => {
72
+ {
73
+ return send3;
74
+ }
75
+ },
76
+ Send: () => {
77
+ {
78
+ return send3;
79
+ }
80
+ }
81
+ });
82
+ import {NexmoSmsProvider} from "@novu/nexmo";
83
+ import {italic as italic3} from "@stacksjs/cli";
84
+ import {ResultAsync as ResultAsync3} from "@stacksjs/error-handling";
85
+ import {notification as notification3} from "@stacksjs/config";
86
+ var send3 = function(options) {
87
+ return ResultAsync3.fromPromise(provider3.sendMessage(options), () => new Error(`Failed to send message using provider: ${italic3("Nexmo")}`));
88
+ };
89
+ var from3 = notification3.sms?.from;
90
+ var env3 = notification3.sms?.drivers.nexmo;
91
+ var provider3 = new NexmoSmsProvider({
92
+ apiKey: env3?.key || "",
93
+ apiSecret: env3?.secret || "",
94
+ from: from3 || ""
95
+ });
96
+ // src/drivers/sms77.ts
97
+ var exports_sms77 = {};
98
+ __export(exports_sms77, {
99
+ send: () => {
100
+ {
101
+ return send4;
102
+ }
103
+ },
104
+ Send: () => {
105
+ {
106
+ return send4;
107
+ }
108
+ }
109
+ });
110
+ import {Sms77SmsProvider} from "@novu/sms77";
111
+ import {italic as italic4} from "@stacksjs/cli";
112
+ import {ResultAsync as ResultAsync4} from "@stacksjs/error-handling";
113
+ import {notification as notification4} from "@stacksjs/config";
114
+ var send4 = function(options) {
115
+ return ResultAsync4.fromPromise(provider4.sendMessage(options), () => new Error(`Failed to send message using provider: ${italic4("Sms77")}`));
116
+ };
117
+ var from4 = notification4.sms?.from;
118
+ var env4 = notification4.sms?.drivers.sms77;
119
+ var provider4 = new Sms77SmsProvider({
120
+ apiKey: env4?.key,
121
+ from: from4
122
+ });
123
+ // src/drivers/sns.ts
124
+ var exports_sns = {};
125
+ __export(exports_sns, {
126
+ send: () => {
127
+ {
128
+ return send5;
129
+ }
130
+ },
131
+ Send: () => {
132
+ {
133
+ return send5;
134
+ }
135
+ }
136
+ });
137
+ import {SNSSmsProvider} from "@novu/sns";
138
+ import {italic as italic5} from "@stacksjs/cli";
139
+ import {ResultAsync as ResultAsync5} from "@stacksjs/error-handling";
140
+ import {notification as notification5} from "@stacksjs/config";
141
+ var send5 = function(options) {
142
+ return ResultAsync5.fromPromise(provider5.sendMessage(options), () => new Error(`Failed to send message using provider: ${italic5("SNS")}`));
143
+ };
144
+ var env5 = notification5.sms?.drivers.sns;
145
+ var provider5 = new SNSSmsProvider({
146
+ region: env5?.region,
147
+ accessKeyId: env5?.key,
148
+ secretAccessKey: env5?.secret
149
+ });
150
+ // src/drivers/gupshup.ts
151
+ var exports_gupshup = {};
152
+ __export(exports_gupshup, {
153
+ send: () => {
154
+ {
155
+ return send6;
156
+ }
157
+ },
158
+ Send: () => {
159
+ {
160
+ return send6;
161
+ }
162
+ }
163
+ });
164
+ import {GupshupSmsProvider} from "@novu/gupshup";
165
+ import {italic as italic6} from "@stacksjs/cli";
166
+ import {ResultAsync as ResultAsync6} from "@stacksjs/error-handling";
167
+ import {notification as notification6} from "@stacksjs/config";
168
+ var send6 = function(options) {
169
+ return ResultAsync6.fromPromise(provider6.sendMessage(options), () => new Error(`Failed to send message using provider: ${italic6("Gupshup")}`));
170
+ };
171
+ var env6 = notification6.sms?.drivers.gupshup;
172
+ var provider6 = new GupshupSmsProvider({
173
+ userId: env6?.user || "",
174
+ password: env6?.password || ""
175
+ });
176
+ // src/drivers/telnyx.ts
177
+ var exports_telnyx = {};
178
+ __export(exports_telnyx, {
179
+ send: () => {
180
+ {
181
+ return send7;
182
+ }
183
+ },
184
+ Send: () => {
185
+ {
186
+ return send7;
187
+ }
188
+ }
189
+ });
190
+ import {TelnyxSmsProvider} from "@novu/telnyx";
191
+ import {italic as italic7} from "@stacksjs/cli";
192
+ import {ResultAsync as ResultAsync7} from "@stacksjs/error-handling";
193
+ import {notification as notification7} from "@stacksjs/config";
194
+ var send7 = function(options) {
195
+ return ResultAsync7.fromPromise(provider7.sendMessage(options), () => new Error(`Failed to send message using provider: ${italic7("Telnyx")}`));
196
+ };
197
+ var from5 = notification7.sms?.from;
198
+ var env7 = notification7.sms?.drivers.telnyx;
199
+ var provider7 = new TelnyxSmsProvider({
200
+ apiKey: env7?.key,
201
+ messageProfileId: env7?.messageProfileId,
202
+ from: from5 || ""
203
+ });
204
+ // src/drivers/termii.ts
205
+ var exports_termii = {};
206
+ __export(exports_termii, {
207
+ send: () => {
208
+ {
209
+ return send8;
210
+ }
211
+ },
212
+ Send: () => {
213
+ {
214
+ return send8;
215
+ }
216
+ }
217
+ });
218
+ import {TermiiSmsProvider} from "@novu/termii";
219
+ import {italic as italic8} from "@stacksjs/cli";
220
+ import {ResultAsync as ResultAsync8} from "@stacksjs/error-handling";
221
+ import {notification as notification8} from "@stacksjs/config";
222
+ var send8 = function(options) {
223
+ return ResultAsync8.fromPromise(provider8.sendMessage(options), () => new Error(`Failed to send message using provider: ${italic8("Termii")}`));
224
+ };
225
+ var from6 = notification8.sms?.from;
226
+ var env8 = notification8.sms?.drivers.termii;
227
+ var provider8 = new TermiiSmsProvider({
228
+ apiKey: env8?.key,
229
+ from: from6 || ""
230
+ });
231
+ export {
232
+ exports_twilio as twilio,
233
+ exports_termii as termii,
234
+ exports_telnyx as telnyx,
235
+ exports_sns as sns,
236
+ exports_sms77 as sms77,
237
+ exports_plivo as plivo,
238
+ exports_nexmo as nexmo,
239
+ exports_gupshup as gupshup
240
+ };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/sms",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
5
5
  "description": "The Stacks SMS integration. Painlessly create & manage your inboxes, templates, and send sms.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -382,7 +382,9 @@ import {runCommand} from "@stacksjs/cli";
382
382
  async function zip(from, to, options) {
383
383
  const toPath = to || "archive.zip";
384
384
  const fromPath = Array.isArray(from) ? from.join(" ") : from;
385
- console.log("zip", fromPath, toPath, options);
385
+ if (Array.isArray(from))
386
+ return runCommand(`zip -r ${toPath} ${fromPath}`, options);
387
+ return runCommand(`zip -r ${to} ${from}`, options);
386
388
  }
387
389
  async function unzip(paths) {
388
390
  if (Array.isArray(paths))
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/storage",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
5
5
  "description": "The Stacks file system.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -9,13 +9,10 @@ export async function zip(from: string | string[], to?: string, options?: ZipOpt
9
9
  const toPath = to || 'archive.zip'
10
10
  const fromPath = Array.isArray(from) ? from.join(' ') : from
11
11
 
12
- // eslint-disable-next-line no-console
13
- console.log('zip', fromPath, toPath, options)
12
+ if (Array.isArray(from))
13
+ return runCommand(`zip -r ${toPath} ${fromPath}`, options)
14
14
 
15
- // if (Array.isArray(from))
16
- // return runCommand(`zip -r ${toPath} ${fromPath}`, options)
17
-
18
- // return runCommand(`zip -r ${to} ${from}`, options)
15
+ return runCommand(`zip -r ${to} ${from}`, options)
19
16
  }
20
17
 
21
18
  export async function unzip(paths: string | string[]) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/strings",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
5
5
  "description": "The Stacks string utilities.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stacksjs/tables",
3
- "version": "0.58.41",
3
+ "version": "0.58.44",
4
4
  "description": "The easy & modern way to work with tables. Facet filtering, searching, pagination, ...",
5
5
  "author": "Open Web Labs",
6
6
  "license": "MIT",
@@ -28,7 +28,7 @@
28
28
  ],
29
29
  "scripts": {
30
30
  "dev": "vite",
31
- "build": "",
31
+ "build": "echo 'Coming soon'",
32
32
  "preview": "vite preview",
33
33
  "dev:components": "vite -c vite.config.ts"
34
34
  },