stacks 0.58.56 → 0.58.58

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 (110) hide show
  1. package/core/actions/dist/src/index.js +9 -3
  2. package/core/actions/dist/src/release.js +9 -3
  3. package/core/actions/dist/src/upgrade.js +1 -1
  4. package/core/actions/package.json +1 -1
  5. package/core/actions/src/action.ts +11 -3
  6. package/core/ai/dist/index.js +4 -4
  7. package/core/ai/package.json +3 -3
  8. package/core/alias/package.json +1 -1
  9. package/core/analytics/package.json +1 -1
  10. package/core/api/package.json +1 -1
  11. package/core/arrays/package.json +1 -1
  12. package/core/auth/package.json +1 -1
  13. package/core/buddy/dist/{chunk-d52e40a990b45728.js → chunk-e9c0ec1a3b7be088.js} +120 -92
  14. package/core/buddy/dist/cli.js +1 -1
  15. package/core/buddy/dist/index.js +1 -1
  16. package/core/buddy/package.json +1 -1
  17. package/core/buddy/src/commands/configure.ts +38 -27
  18. package/core/buddy/src/commands/deploy.ts +81 -56
  19. package/core/buddy/src/commands/setup.ts +11 -9
  20. package/core/build/package.json +1 -1
  21. package/core/bun-create/bud/package.json +1 -1
  22. package/core/bun-create/buddy/package.json +1 -1
  23. package/core/bun-create/stack/package.json +1 -1
  24. package/core/bun-create/stacks/package.json +1 -1
  25. package/core/bun-create/stx/package.json +1 -1
  26. package/core/bun-plugin-yaml/package.json +1 -1
  27. package/core/cache/package.json +2 -2
  28. package/core/chat/package.json +8 -8
  29. package/core/cli/dist/index.js +7 -1
  30. package/core/cli/package.json +1 -1
  31. package/core/cli/src/exec.ts +8 -0
  32. package/core/cloud/deploy.ts +3 -2
  33. package/core/cloud/dist/index.js +145 -54
  34. package/core/cloud/package.json +28 -28
  35. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package-lock.json +6 -6
  36. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +2 -2
  37. package/core/cloud/src/cloud/index.ts +76 -50
  38. package/core/cloud/src/cloud/queue.ts +106 -9
  39. package/core/cloud/src/cloud/router-layer/nodejs/package.json +2 -2
  40. package/core/collections/package.json +1 -1
  41. package/core/config/package.json +1 -1
  42. package/core/database/package.json +1 -1
  43. package/core/datetime/package.json +1 -1
  44. package/core/desktop/package.json +9 -9
  45. package/core/development/package.json +1 -1
  46. package/core/dns/package.json +4 -4
  47. package/core/docs/package.json +1 -1
  48. package/core/email/package.json +12 -12
  49. package/core/enums/package.json +1 -1
  50. package/core/env/package.json +1 -1
  51. package/core/error-handling/package.json +1 -1
  52. package/core/eslint-config/package.json +1 -1
  53. package/core/events/package.json +1 -1
  54. package/core/faker/package.json +1 -1
  55. package/core/git/package.json +1 -1
  56. package/core/health/package.json +1 -1
  57. package/core/http/package.json +1 -1
  58. package/core/lint/package.json +1 -1
  59. package/core/logging/dist/index.js +161 -4
  60. package/core/logging/package.json +1 -1
  61. package/core/logging/src/index.ts +55 -12
  62. package/core/notifications/package.json +22 -22
  63. package/core/objects/package.json +1 -1
  64. package/core/orm/package.json +1 -1
  65. package/core/path/dist/index.js +1 -1
  66. package/core/path/package.json +1 -1
  67. package/core/path/src/index.ts +1 -1
  68. package/core/payments/package.json +1 -1
  69. package/core/push/package.json +5 -5
  70. package/core/query-builder/package.json +1 -1
  71. package/core/queue/dist/index.js +5 -1
  72. package/core/queue/package.json +1 -1
  73. package/core/queue/src/index.ts +5 -1
  74. package/core/raycast/package.json +1 -1
  75. package/core/realtime/package.json +1 -1
  76. package/core/repl/package.json +1 -1
  77. package/core/router/package.json +1 -1
  78. package/core/scheduler/dist/index.js +4 -0
  79. package/core/scheduler/package.json +1 -1
  80. package/core/scheduler/src/index.ts +1 -0
  81. package/core/scheduler/src/schedule.ts +5 -0
  82. package/core/search-engine/package.json +1 -1
  83. package/core/security/package.json +1 -1
  84. package/core/server/package.json +1 -1
  85. package/core/signals/package.json +1 -1
  86. package/core/slug/package.json +1 -1
  87. package/core/sms/package.json +11 -11
  88. package/core/storage/package.json +1 -1
  89. package/core/strings/package.json +1 -1
  90. package/core/tables/package.json +1 -1
  91. package/core/testing/package.json +1 -1
  92. package/core/tinker/package.json +1 -1
  93. package/core/tunnel/package.json +1 -1
  94. package/core/types/dist/index.js +8 -3
  95. package/core/types/package.json +3 -3
  96. package/core/types/src/configure.ts +7 -0
  97. package/core/types/src/cron-jobs.ts +14 -4
  98. package/core/ui/package.json +6 -6
  99. package/core/utils/dist/index.js +32 -1
  100. package/core/utils/package.json +1 -1
  101. package/core/utils/src/index.ts +1 -0
  102. package/core/utils/src/retry.ts +33 -0
  103. package/core/validation/package.json +1 -1
  104. package/core/vite/dist/index.js +1 -1
  105. package/core/vite/package.json +1 -1
  106. package/core/whois/package.json +1 -1
  107. package/core/x-ray/package.json +1 -1
  108. package/core/zsh-buddy/package.json +1 -1
  109. package/ide/vscode/package.json +1 -1
  110. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/ui",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks UI engine.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -58,22 +58,22 @@
58
58
  "prepublishOnly": "bun --bun run build"
59
59
  },
60
60
  "peerDependencies": {
61
- "@headlessui/vue": "^1.7.18",
61
+ "@headlessui/vue": "^1.7.19",
62
62
  "@stacksjs/build": "workspace:*",
63
63
  "@stacksjs/config": "workspace:*",
64
64
  "@stacksjs/router": "workspace:*",
65
65
  "pinia": "^2.1.7",
66
66
  "unocss": "^0.58.5",
67
67
  "vite-plugin-vue-layouts": "^0.11.0",
68
- "vue": "^3.4.15",
68
+ "vue": "^3.4.16",
69
69
  "vue-tsc": "^1.8.27"
70
70
  },
71
71
  "dependencies": {
72
- "@headlessui/vue": "^1.7.18",
72
+ "@headlessui/vue": "^1.7.19",
73
73
  "@iconify-json/heroicons": "^1.1.19",
74
74
  "@iconify-json/heroicons-outline": "^1.1.10",
75
75
  "@iconify-json/heroicons-solid": "^1.1.11",
76
- "@iconify/json": "^2.2.180",
76
+ "@iconify/json": "^2.2.181",
77
77
  "@julr/unocss-preset-forms": "^0.1.0",
78
78
  "@stacksjs/build": "workspace:*",
79
79
  "@stacksjs/config": "workspace:*",
@@ -84,7 +84,7 @@
84
84
  "unocss": "^0.58.5",
85
85
  "unocss-preset-primitives": "0.0.2-beta.0",
86
86
  "vite-plugin-vue-layouts": "^0.11.0",
87
- "vue": "^3.4.15",
87
+ "vue": "^3.4.16",
88
88
  "vue-tsc": "^1.8.27"
89
89
  },
90
90
  "devDependencies": {
@@ -487,6 +487,36 @@ var createRegExp = (...inputs) => {
487
487
  const flags = inputs.length > 1 && (Array.isArray(inputs[inputs.length - 1]) || inputs[inputs.length - 1] instanceof Set) ? inputs.pop() : undefined;
488
488
  return new RegExp(exactly(...inputs).toString(), [...flags || ""].join(""));
489
489
  };
490
+ // src/retry.ts
491
+ function retry(fn, options) {
492
+ const { retries = 3, initialDelay = 1000, backoffFactor = 2, jitter = true } = options;
493
+ return new Promise((resolve, reject) => {
494
+ let attemptCount = 0;
495
+ const attempt = async () => {
496
+ try {
497
+ resolve(await fn());
498
+ } catch (err2) {
499
+ if (attemptCount >= retries) {
500
+ reject(err2);
501
+ } else {
502
+ const delay = calculateDelay(attemptCount, initialDelay, backoffFactor, jitter);
503
+ setTimeout(() => attempt(), delay);
504
+ attemptCount++;
505
+ }
506
+ }
507
+ };
508
+ attempt();
509
+ });
510
+ }
511
+ var calculateDelay = function(attemptCount, initialDelay, backoffFactor, jitter) {
512
+ let delay = initialDelay * backoffFactor ** attemptCount;
513
+ if (jitter) {
514
+ const random = Math.random();
515
+ const jitterValue = delay * 0.3;
516
+ delay = delay + jitterValue * (random - 0.5) * 2;
517
+ }
518
+ return delay;
519
+ };
490
520
  // src/sleep.ts
491
521
  function sleep(ms) {
492
522
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -884,7 +914,7 @@ function prettyBytes(number, options) {
884
914
  return prefix + numberString + separator + unit;
885
915
  }
886
916
  // package.json
887
- var version = "0.58.56";
917
+ var version = "0.58.58";
888
918
  export {
889
919
  wordChar,
890
920
  wordBoundary,
@@ -1102,6 +1132,7 @@ export {
1102
1132
  setEnvValue,
1103
1133
  runNpmScript,
1104
1134
  rimraf,
1135
+ retry,
1105
1136
  resolveUnref,
1106
1137
  resolveRef,
1107
1138
  renderHeadToString,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/utils",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks helper functions.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -16,6 +16,7 @@ export * from './math'
16
16
  export * from './p'
17
17
  export * from './promise'
18
18
  export * from './regex'
19
+ export * from './retry'
19
20
  export * from './sleep'
20
21
  export * from './throttle'
21
22
  export * from './vendors'
@@ -0,0 +1,33 @@
1
+ export function retry(fn, options) {
2
+ const { retries = 3, initialDelay = 1000, backoffFactor = 2, jitter = true } = options
3
+
4
+ return new Promise((resolve, reject) => {
5
+ let attemptCount = 0
6
+ const attempt = async () => {
7
+ try {
8
+ resolve(await fn())
9
+ }
10
+ catch (err) {
11
+ if (attemptCount >= retries) {
12
+ reject(err)
13
+ }
14
+ else {
15
+ const delay = calculateDelay(attemptCount, initialDelay, backoffFactor, jitter)
16
+ setTimeout(() => attempt(), delay)
17
+ attemptCount++
18
+ }
19
+ }
20
+ }
21
+ attempt()
22
+ })
23
+ }
24
+
25
+ function calculateDelay(attemptCount, initialDelay, backoffFactor, jitter) {
26
+ let delay = initialDelay * backoffFactor ** attemptCount
27
+ if (jitter) {
28
+ const random = Math.random() // Generates a number between 0 and 1
29
+ const jitterValue = delay * 0.3 // Jitter will be up to 30% of the delay
30
+ delay = delay + jitterValue * (random - 0.5) * 2 // Adjust delay randomly within ±30%
31
+ }
32
+ return delay
33
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/validation",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks Validation ways.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -609,7 +609,7 @@ var web_components_default = defineConfig6(({ command }) => {
609
609
  // src/plugin/docs.ts
610
610
  import {kolorist as c2} from "@stacksjs/cli";
611
611
  // package.json
612
- var version = "0.58.56";
612
+ var version = "0.58.58";
613
613
 
614
614
  // src/plugin/docs.ts
615
615
  var docsEngine = {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/vite",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks Vite plugin.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/whois",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
5
5
  "description": "Easily get whois info.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/x-ray",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
5
5
  "description": "All you need to debug, log & analyze.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zsh-buddy",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
5
5
  "description": "A better Stacks zsh experience.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -2,7 +2,7 @@
2
2
  "publisher": "Stacks",
3
3
  "name": "vscode-stacks",
4
4
  "displayName": "Stacks",
5
- "version": "0.58.56",
5
+ "version": "0.58.58",
6
6
  "description": "A modern Stacks development environment.",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/chrisbbreuer",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stacks",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks framework.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",