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,22 +1,65 @@
1
1
  import process from 'node:process'
2
2
  import consola from 'consola'
3
3
  import { ExitCode } from '@stacksjs/types'
4
+ import { logsPath } from '@stacksjs/path'
4
5
 
5
6
  export const logger = consola
6
- export const log = consola
7
- // export const log = {
8
- // info: (...args: any[]) => consola.info(...args),
9
- // success: (msg: string) => logger.success(msg),
10
- // error: (err: string | StacksError, options?: any) => handleError(err, options),
11
- // warn: (...args: any[]) => logger.warn(...args),
12
- // debug: (...args: any[]) => logger.debug(...args),
13
- // prompt:
14
- // dump,
15
- // dd,
16
- // }
7
+
8
+ export const logFilePath = logsPath('console.log')
9
+
10
+ async function writeToLogFile(message: string) {
11
+ const formattedMessage = `[${new Date().toISOString()}] ${message}\n`
12
+ try {
13
+ const file = Bun.file(logFilePath)
14
+ const writer = file.writer()
15
+ const text = await file.text()
16
+ writer.write(`${text}\n`)
17
+ writer.write(`${formattedMessage}\n`)
18
+ await writer.end()
19
+ }
20
+ catch (error) {
21
+ // Assuming the error is due to the file not existing
22
+ // Create the file and then write the message
23
+ const file = Bun.file(logFilePath) // Use the create option
24
+ const writer = file.writer()
25
+ writer.write(`${formattedMessage}\n`)
26
+ await writer.end()
27
+ }
28
+ }
29
+
30
+ export const log = {
31
+ info: async (...arg: any) => {
32
+ consola.info(...arg)
33
+ await writeToLogFile(`INFO: ${arg}`)
34
+ },
35
+
36
+ success: async (msg: string) => {
37
+ consola.success(msg)
38
+ await writeToLogFile(`SUCCESS: ${msg}`)
39
+ },
40
+
41
+ error: async (err: string, options?: any) => {
42
+ handleError(err, options) // Assuming handleError logs the error
43
+ await writeToLogFile(`ERROR: ${err}`)
44
+ },
45
+
46
+ warn: async (arg: string) => {
47
+ consola.warn(arg)
48
+ await writeToLogFile(`WARN: ${arg}`)
49
+ },
50
+
51
+ debug: async (arg: string) => {
52
+ consola.debug(arg)
53
+ await writeToLogFile(`DEBUG: ${arg}`)
54
+ },
55
+
56
+ // prompt,
57
+ dump,
58
+ dd,
59
+ }
17
60
 
18
61
  export function dump(...args: any[]) {
19
- return log.debug(args)
62
+ args.forEach(arg => log.debug(arg))
20
63
  }
21
64
 
22
65
  export function dd(...args: any[]) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/notifications",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks notifications integration.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -76,27 +76,27 @@
76
76
  "@stacksjs/types": "workspace:*"
77
77
  },
78
78
  "optionalDependencies": {
79
- "@novu/discord": "^0.23.0",
80
- "@novu/emailjs": "^0.23.0",
81
- "@novu/gupshup": "^0.23.0",
82
- "@novu/mailgun": "^0.23.0",
83
- "@novu/mailjet": "^0.23.0",
84
- "@novu/mandrill": "^0.23.0",
85
- "@novu/netcore": "^0.23.0",
86
- "@novu/nexmo": "^0.23.0",
87
- "@novu/node": "^0.23.0",
88
- "@novu/nodemailer": "^0.23.0",
89
- "@novu/plivo": "^0.23.0",
90
- "@novu/postmark": "^0.23.0",
91
- "@novu/sendgrid": "^0.23.0",
92
- "@novu/ses": "^0.23.0",
93
- "@novu/slack": "^0.23.0",
94
- "@novu/sms77": "^0.23.0",
95
- "@novu/sns": "^0.23.0",
96
- "@novu/stateless": "^0.23.0",
97
- "@novu/telnyx": "^0.23.0",
98
- "@novu/termii": "^0.23.0",
99
- "@novu/twilio": "^0.23.0"
79
+ "@novu/discord": "^0.23.1",
80
+ "@novu/emailjs": "^0.23.1",
81
+ "@novu/gupshup": "^0.23.1",
82
+ "@novu/mailgun": "^0.23.1",
83
+ "@novu/mailjet": "^0.23.1",
84
+ "@novu/mandrill": "^0.23.1",
85
+ "@novu/netcore": "^0.23.1",
86
+ "@novu/nexmo": "^0.23.1",
87
+ "@novu/node": "^0.23.1",
88
+ "@novu/nodemailer": "^0.23.1",
89
+ "@novu/plivo": "^0.23.1",
90
+ "@novu/postmark": "^0.23.1",
91
+ "@novu/sendgrid": "^0.23.1",
92
+ "@novu/ses": "^0.23.1",
93
+ "@novu/slack": "^0.23.1",
94
+ "@novu/sms77": "^0.23.1",
95
+ "@novu/sns": "^0.23.1",
96
+ "@novu/stateless": "^0.23.1",
97
+ "@novu/telnyx": "^0.23.1",
98
+ "@novu/termii": "^0.23.1",
99
+ "@novu/twilio": "^0.23.1"
100
100
  },
101
101
  "devDependencies": {
102
102
  "@stacksjs/development": "workspace:*"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/objects",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
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.56",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks ORM integration",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -150,7 +150,7 @@ function eslintPath(path) {
150
150
  return lintPath(`eslint/${path || ""}`);
151
151
  }
152
152
  function jobsPath(path) {
153
- return resourcesPath(`jobs/${path || ""}`);
153
+ return appPath(`Jobs/${path || ""}`);
154
154
  }
155
155
  function loggingPath(path) {
156
156
  return corePath(`logging/${path || ""}`);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/path",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks path.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -243,7 +243,7 @@ export function eslintPath(path?: string) {
243
243
  }
244
244
 
245
245
  export function jobsPath(path?: string) {
246
- return resourcesPath(`jobs/${path || ''}`)
246
+ return appPath(`Jobs/${path || ''}`)
247
247
  }
248
248
 
249
249
  export function loggingPath(path?: string) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/payments",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks payments package. Currently supporting Stripe.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/push",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks Push integration",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -46,15 +46,15 @@
46
46
  "prepublishOnly": "bun --bun run build"
47
47
  },
48
48
  "peerDependencies": {
49
- "@novu/node": "^0.23.0",
50
- "@novu/stateless": "^0.23.0",
49
+ "@novu/node": "^0.23.1",
50
+ "@novu/stateless": "^0.23.1",
51
51
  "@stacksjs/cli": "workspace:*",
52
52
  "@stacksjs/config": "workspace:*",
53
53
  "@stacksjs/error-handling": "workspace:*"
54
54
  },
55
55
  "dependencies": {
56
- "@novu/node": "^0.23.0",
57
- "@novu/stateless": "^0.23.0",
56
+ "@novu/node": "^0.23.1",
57
+ "@novu/stateless": "^0.23.1",
58
58
  "@stacksjs/cli": "workspace:*",
59
59
  "@stacksjs/config": "workspace:*",
60
60
  "@stacksjs/error-handling": "workspace:*"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/query-builder",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks Query Builder integration",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -5,15 +5,19 @@ class Job {
5
5
  description;
6
6
  action;
7
7
  handle;
8
+ rate;
8
9
  tries;
9
10
  backoff;
10
- constructor({ name, description, handle, tries, backoff, action }) {
11
+ enabled;
12
+ constructor({ name, description, handle, rate, tries, backoff, action, enabled }) {
11
13
  this.name = name;
12
14
  this.description = description;
13
15
  this.handle = handle;
16
+ this.rate = rate;
14
17
  this.action = action;
15
18
  this.tries = tries;
16
19
  this.backoff = backoff;
20
+ this.enabled = enabled;
17
21
  }
18
22
  }
19
23
  export {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/queue",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks Queue system.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -5,15 +5,19 @@ export class Job {
5
5
  description: JobOptions['description']
6
6
  action?: JobOptions['action']
7
7
  handle?: JobOptions['handle']
8
+ rate: JobOptions['rate']
8
9
  tries: JobOptions['tries']
9
10
  backoff: JobOptions['backoff']
11
+ enabled: JobOptions['enabled']
10
12
 
11
- constructor({ name, description, handle, tries, backoff, action }: JobOptions) {
13
+ constructor({ name, description, handle, rate, tries, backoff, action, enabled }: JobOptions) {
12
14
  this.name = name
13
15
  this.description = description
14
16
  this.handle = handle
17
+ this.rate = rate
15
18
  this.action = action
16
19
  this.tries = tries
17
20
  this.backoff = backoff
21
+ this.enabled = enabled
18
22
  }
19
23
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stacks-raycast",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks Raycast plugin.",
6
6
  "scripts": {
7
7
  "build": "echo 'No build step required yet.'"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/realtime",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
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.56",
4
+ "version": "0.58.58",
5
5
  "description": "A Stacks optimized TS & Vue REPL.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/router",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks framework router.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -520,6 +520,10 @@ class Schedule {
520
520
  this.cronPattern = "0 * * * * *";
521
521
  return this;
522
522
  }
523
+ everyTwoMinutes() {
524
+ this.cronPattern = "*/2 * * * * *";
525
+ return this;
526
+ }
523
527
  everyFiveMinutes() {
524
528
  this.cronPattern = "*/5 * * * *";
525
529
  return this;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/scheduler",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks scheduler.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -13,6 +13,7 @@ export type {
13
13
  Ranges,
14
14
  TimeUnit,
15
15
  } from './types/cron'
16
+ export * from './types/utils'
16
17
 
17
18
  export * from './schedule'
18
19
 
@@ -23,6 +23,11 @@ export class Schedule {
23
23
  return this
24
24
  }
25
25
 
26
+ everyTwoMinutes() {
27
+ this.cronPattern = '*/2 * * * * *'
28
+ return this
29
+ }
30
+
26
31
  everyFiveMinutes() {
27
32
  this.cronPattern = '*/5 * * * *'
28
33
  return this
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/search-engine",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
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.56",
4
+ "version": "0.58.58",
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.56",
4
+ "version": "0.58.58",
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.56",
4
+ "version": "0.58.58",
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.56",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks slug functionality.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/sms",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
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",
@@ -65,16 +65,16 @@
65
65
  "@stacksjs/types": "workspace:*"
66
66
  },
67
67
  "optionalDependencies": {
68
- "@novu/gupshup": "^0.23.0",
69
- "@novu/nexmo": "^0.23.0",
70
- "@novu/node": "^0.23.0",
71
- "@novu/plivo": "^0.23.0",
72
- "@novu/sms77": "^0.23.0",
73
- "@novu/sns": "^0.23.0",
74
- "@novu/stateless": "^0.23.0",
75
- "@novu/telnyx": "^0.23.0",
76
- "@novu/termii": "^0.23.0",
77
- "@novu/twilio": "^0.23.0"
68
+ "@novu/gupshup": "^0.23.1",
69
+ "@novu/nexmo": "^0.23.1",
70
+ "@novu/node": "^0.23.1",
71
+ "@novu/plivo": "^0.23.1",
72
+ "@novu/sms77": "^0.23.1",
73
+ "@novu/sns": "^0.23.1",
74
+ "@novu/stateless": "^0.23.1",
75
+ "@novu/telnyx": "^0.23.1",
76
+ "@novu/termii": "^0.23.1",
77
+ "@novu/twilio": "^0.23.1"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@stacksjs/config": "workspace:*",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/storage",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks file system.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/strings",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
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.56",
3
+ "version": "0.58.58",
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",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/testing",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks way of testing.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/tinker",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
5
5
  "description": "All you need to tinker.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/tunnel",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
5
5
  "description": "Local development tunnel.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -399,14 +399,19 @@ var require_pluralize = __commonJS((exports, module) => {
399
399
  var Every;
400
400
  (function(Every2) {
401
401
  Every2["Minute"] = "* * * * *";
402
+ Every2["TwoMinutes"] = "*/2 * * * *";
403
+ Every2["FiveMinutes"] = "*/5 * * * *";
404
+ Every2["TenMinutes"] = "*/10 * * * *";
405
+ Every2["FifteenMinutes"] = "*/15 * * * *";
406
+ Every2["ThirtyMinutes"] = "*/30 * * * *";
402
407
  Every2["Hour"] = "0 * * * *";
403
408
  Every2["HalfHour"] = "0,30 * * * *";
404
409
  Every2["Day"] = "0 0 * * *";
405
- Every2["Month"] = "0 0 1 * *";
406
410
  Every2["Week"] = "0 0 * * 0";
411
+ Every2["Weekday"] = "0 0 * * 1-5";
412
+ Every2["Weekend"] = "0 0 * * 0,6";
413
+ Every2["Month"] = "0 0 1 * *";
407
414
  Every2["Year"] = "0 0 1 1 *";
408
- Every2["FifthMinute"] = "*/5 * * * *";
409
- Every2["TenthMinute"] = "*/10 * * * *";
410
415
  })(Every || (Every = {}));
411
416
  // src/docs.ts
412
417
  var SocialLinkIcon;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks framework types.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -51,7 +51,7 @@
51
51
  "@mdit-vue/plugin-component": "^2.0.0",
52
52
  "@mdit-vue/plugin-frontmatter": "^2.0.0",
53
53
  "@mdit-vue/types": "^2.0.0",
54
- "@novu/stateless": "^0.23.0",
54
+ "@novu/stateless": "^0.23.1",
55
55
  "@rollup/pluginutils": "^5.1.0",
56
56
  "@stacksjs/validation": "workspace:*",
57
57
  "@types/aws4": "^1.11.6",
@@ -78,7 +78,7 @@
78
78
  "vite-plugin-pwa": "^0.17.5",
79
79
  "vite-ssg": "^0.23.6",
80
80
  "vitepress": "1.0.0-rc.42",
81
- "vue": "^3.4.15"
81
+ "vue": "^3.4.16"
82
82
  },
83
83
  "devDependencies": {
84
84
  "aws-cdk-lib": "^2.126.0",
@@ -1,6 +1,13 @@
1
1
  export interface ConfigureOptions {
2
2
  aws: boolean
3
+ profile: string
4
+ project: boolean
3
5
  verbose: boolean
6
+ accessKeyId: string
7
+ secretAccessKey: string
8
+ region: string
9
+ output: string
10
+ quiet: boolean
4
11
  }
5
12
 
6
13
  export type ConfigureConfig = Partial<ConfigureOptions>
@@ -1,3 +1,5 @@
1
+ import type { IntRange } from '@stacksjs/scheduler'
2
+
1
3
  /**
2
4
  * Cron Job Options.
3
5
  */
@@ -12,7 +14,10 @@ export interface JobOptions {
12
14
  description?: string
13
15
  queue?: string
14
16
  timezone?: string
15
- tries?: number
17
+ /**
18
+ * Number of tries. Must be between 0 and 185.
19
+ */
20
+ tries?: IntRange<0, 185>
16
21
  backoff?: number | number[]
17
22
  rate?: string | Every
18
23
  enabled?: boolean
@@ -35,12 +40,17 @@ export enum Every {
35
40
  // TenSeconds = '*/10 * * * * *',
36
41
  // ThirtySeconds = '*/30 * * * * *',
37
42
  Minute = '* * * * *',
43
+ TwoMinutes = '*/2 * * * *',
44
+ FiveMinutes = '*/5 * * * *',
45
+ TenMinutes = '*/10 * * * *',
46
+ FifteenMinutes = '*/15 * * * *',
47
+ ThirtyMinutes = '*/30 * * * *',
38
48
  Hour = '0 * * * *',
39
49
  HalfHour = '0,30 * * * *',
40
50
  Day = '0 0 * * *',
41
- Month = '0 0 1 * *',
42
51
  Week = '0 0 * * 0',
52
+ Weekday = '0 0 * * 1-5',
53
+ Weekend = '0 0 * * 0,6',
54
+ Month = '0 0 1 * *',
43
55
  Year = '0 0 1 1 *',
44
- FifthMinute = '*/5 * * * *',
45
- TenthMinute = '*/10 * * * *',
46
56
  }