stacks 0.58.58 → 0.58.60

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 (197) hide show
  1. package/core/actions/dist/src/build.js +18 -26
  2. package/core/actions/dist/src/bump.js +9 -3
  3. package/core/actions/dist/src/changelog.js +11 -3
  4. package/core/actions/dist/src/clean.js +2 -2
  5. package/core/actions/dist/src/dev/index.js +18 -26
  6. package/core/actions/dist/src/generate/index.js +18 -26
  7. package/core/actions/dist/src/helpers/index.js +18 -26
  8. package/core/actions/dist/src/helpers/utils.js +18 -26
  9. package/core/actions/dist/src/index.js +26 -34
  10. package/core/actions/dist/src/lint/fix.js +6 -2
  11. package/core/actions/dist/src/release.js +30 -35
  12. package/core/actions/dist/src/upgrade/index.js +18 -26
  13. package/core/actions/dist/src/upgrade.js +10 -7
  14. package/core/actions/package.json +1 -1
  15. package/core/actions/src/action.ts +18 -8
  16. package/core/actions/src/bump.ts +13 -6
  17. package/core/actions/src/changelog.ts +14 -4
  18. package/core/actions/src/clean.ts +2 -2
  19. package/core/actions/src/dev/api.ts +1 -2
  20. package/core/actions/src/domains/add.ts +12 -27
  21. package/core/actions/src/helpers/utils.ts +24 -36
  22. package/core/actions/src/lint/fix.ts +8 -2
  23. package/core/actions/src/migrate/dns.ts +1 -1
  24. package/core/actions/src/release.ts +4 -1
  25. package/core/actions/src/upgrade.ts +5 -2
  26. package/core/ai/dist/index.js +31 -29
  27. package/core/ai/package.json +3 -3
  28. package/core/alias/package.json +1 -1
  29. package/core/analytics/package.json +1 -1
  30. package/core/api/dist/index.js +6 -3
  31. package/core/api/package.json +1 -1
  32. package/core/arrays/package.json +1 -1
  33. package/core/auth/package.json +1 -1
  34. package/core/buddy/dist/chunk-59a9de11428ba763.js +993 -0
  35. package/core/buddy/dist/{chunk-e9c0ec1a3b7be088.js → chunk-6658b07ce4c24cac.js} +604 -512
  36. package/core/buddy/dist/cli.js +3916 -19
  37. package/core/buddy/dist/index.js +2 -5
  38. package/core/buddy/package.json +1 -1
  39. package/core/buddy/src/cli.ts +91 -17
  40. package/core/buddy/src/commands/add.ts +3 -0
  41. package/core/buddy/src/commands/build.ts +18 -3
  42. package/core/buddy/src/commands/changelog.ts +13 -6
  43. package/core/buddy/src/commands/clean.ts +3 -1
  44. package/core/buddy/src/commands/cloud.ts +14 -2
  45. package/core/buddy/src/commands/commit.ts +2 -0
  46. package/core/buddy/src/commands/configure.ts +6 -3
  47. package/core/buddy/src/commands/create.ts +3 -1
  48. package/core/buddy/src/commands/deploy.ts +4 -2
  49. package/core/buddy/src/commands/dev.ts +17 -4
  50. package/core/buddy/src/commands/dns.ts +7 -1
  51. package/core/buddy/src/commands/domains.ts +7 -1
  52. package/core/buddy/src/commands/fresh.ts +4 -2
  53. package/core/buddy/src/commands/generate.ts +36 -26
  54. package/core/buddy/src/commands/http.ts +6 -4
  55. package/core/buddy/src/commands/index.ts +0 -2
  56. package/core/buddy/src/commands/install.ts +3 -1
  57. package/core/buddy/src/commands/key.ts +2 -0
  58. package/core/buddy/src/commands/lint.ts +4 -0
  59. package/core/buddy/src/commands/list.ts +6 -2
  60. package/core/buddy/src/commands/make.ts +52 -30
  61. package/core/buddy/src/commands/migrate.ts +6 -2
  62. package/core/buddy/src/commands/prepublish.ts +3 -0
  63. package/core/buddy/src/commands/release.ts +12 -2
  64. package/core/buddy/src/commands/seed.ts +3 -1
  65. package/core/buddy/src/commands/setup.ts +16 -8
  66. package/core/buddy/src/commands/tinker.ts +3 -1
  67. package/core/buddy/src/commands/types.ts +4 -2
  68. package/core/buddy/src/commands/upgrade.ts +14 -3
  69. package/core/buddy/src/commands/version.ts +7 -0
  70. package/core/build/package.json +1 -1
  71. package/core/bun-create/bud/package.json +1 -1
  72. package/core/bun-create/buddy/package.json +1 -1
  73. package/core/bun-create/stack/package.json +1 -1
  74. package/core/bun-create/stacks/package.json +1 -1
  75. package/core/bun-create/stx/package.json +1 -1
  76. package/core/bun-plugin-yaml/package.json +1 -1
  77. package/core/cache/package.json +2 -2
  78. package/core/chat/package.json +1 -1
  79. package/core/cli/dist/index.js +463 -81
  80. package/core/cli/package.json +1 -1
  81. package/core/cli/src/cli.ts +9 -31
  82. package/core/cli/src/console.ts +19 -19
  83. package/core/cli/src/exec.ts +25 -8
  84. package/core/cli/src/helpers.ts +3 -3
  85. package/core/cli/src/index.ts +1 -1
  86. package/core/cli/src/parse.ts +95 -17
  87. package/core/cli/src/run.ts +7 -7
  88. package/core/cli/src/utils.ts +62 -0
  89. package/core/cloud/dist/index.js +29 -30
  90. package/core/cloud/package.json +32 -32
  91. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package-lock.json +6 -6
  92. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +2 -2
  93. package/core/cloud/src/cloud/dashboard.ts +86 -85
  94. package/core/cloud/src/cloud/docs.ts +1 -1
  95. package/core/cloud/src/cloud/queue.ts +35 -34
  96. package/core/cloud/src/cloud/router-layer/nodejs/package.json +2 -2
  97. package/core/collections/package.json +1 -1
  98. package/core/config/dist/index.js +52 -30
  99. package/core/config/package.json +1 -1
  100. package/core/config/src/config.ts +1 -1
  101. package/core/config/src/defaults.ts +32 -16
  102. package/core/config/src/overrides.ts +2 -0
  103. package/core/database/package.json +1 -1
  104. package/core/database/src/kysely-bun-worker/worker.ts +0 -1
  105. package/core/datetime/package.json +1 -1
  106. package/core/desktop/package.json +3 -3
  107. package/core/development/package.json +1 -1
  108. package/core/dns/package.json +7 -7
  109. package/core/docs/package.json +1 -1
  110. package/core/email/package.json +4 -3
  111. package/core/email/src/server/converter.ts +19 -19
  112. package/core/email/src/server/inbound.ts +24 -8
  113. package/core/email/src/server/outbound.ts +17 -17
  114. package/core/enums/dist/index.js +2 -2
  115. package/core/enums/package.json +1 -1
  116. package/core/enums/src/index.ts +2 -2
  117. package/core/env/dist/index.js +1 -1
  118. package/core/env/package.json +3 -2
  119. package/core/env/src/utils.ts +1 -0
  120. package/core/error-handling/package.json +1 -1
  121. package/core/eslint-config/build.ts +1 -1
  122. package/core/eslint-config/package.json +12 -10
  123. package/core/eslint-config/test/cli.spec.ts +2 -1
  124. package/core/eslint-config/tsconfig.json +2 -2
  125. package/core/events/package.json +1 -1
  126. package/core/faker/package.json +2 -2
  127. package/core/git/package.json +1 -1
  128. package/core/health/package.json +1 -1
  129. package/core/http/package.json +1 -1
  130. package/core/lint/package.json +1 -1
  131. package/core/logging/build.ts +1 -1
  132. package/core/logging/dist/index.js +44 -1915
  133. package/core/logging/package.json +1 -1
  134. package/core/logging/src/index.ts +79 -13
  135. package/core/notifications/package.json +2 -2
  136. package/core/objects/package.json +1 -1
  137. package/core/orm/package.json +1 -1
  138. package/core/path/dist/index.js +10 -0
  139. package/core/path/package.json +1 -1
  140. package/core/path/src/index.ts +10 -0
  141. package/core/payments/dist/index.js +34 -10
  142. package/core/payments/package.json +2 -2
  143. package/core/push/package.json +1 -1
  144. package/core/query-builder/package.json +1 -1
  145. package/core/queue/package.json +1 -1
  146. package/core/raycast/package.json +1 -1
  147. package/core/realtime/package.json +1 -1
  148. package/core/repl/package.json +1 -1
  149. package/core/router/dist/index.js +517 -14
  150. package/core/router/package.json +1 -1
  151. package/core/router/src/router.ts +10 -3
  152. package/core/scheduler/package.json +2 -1
  153. package/core/scheduler/tests/cron.test.ts +11 -9
  154. package/core/search-engine/package.json +1 -1
  155. package/core/security/package.json +1 -1
  156. package/core/server/package.json +2 -2
  157. package/core/signals/package.json +1 -1
  158. package/core/slug/package.json +1 -1
  159. package/core/sms/package.json +1 -1
  160. package/core/storage/package.json +1 -1
  161. package/core/strings/package.json +1 -1
  162. package/core/tables/package.json +2 -2
  163. package/core/testing/package.json +5 -3
  164. package/core/tinker/package.json +1 -1
  165. package/core/tunnel/package.json +1 -1
  166. package/core/types/dist/index.js +1787 -6
  167. package/core/types/package.json +6 -6
  168. package/core/types/src/ai.ts +1 -0
  169. package/core/types/src/app.ts +1 -1
  170. package/core/types/src/binary.ts +1 -0
  171. package/core/types/src/cli.ts +13 -3
  172. package/core/types/src/docs.ts +6 -2
  173. package/core/types/src/index.ts +1 -0
  174. package/core/types/src/logger.ts +54 -0
  175. package/core/types/src/router.ts +2 -1
  176. package/core/types/src/stacks.ts +10 -0
  177. package/core/ui/package.json +4 -4
  178. package/core/utils/dist/index.js +13 -5
  179. package/core/utils/package.json +2 -2
  180. package/core/utils/src/hash.ts +10 -1
  181. package/core/validation/package.json +1 -1
  182. package/core/vite/dist/index.js +1 -1
  183. package/core/vite/package.json +4 -4
  184. package/core/vite/src/example-wc.ts +1 -4
  185. package/core/vite/src/plugin/auto-imports.ts +1 -2
  186. package/core/vite/src/plugin/components.ts +1 -2
  187. package/core/vite/src/plugin/docs.ts +1 -1
  188. package/core/whois/package.json +3 -3
  189. package/core/x-ray/package.json +1 -1
  190. package/core/zsh-buddy/buddy.plugin.zsh +4 -0
  191. package/core/zsh-buddy/package.json +3 -3
  192. package/ide/dictionary.txt +1 -0
  193. package/ide/vscode/package.json +3 -4
  194. package/package.json +1 -1
  195. package/core/buddy/src/commands/example.ts +0 -66
  196. package/core/buddy/src/commands/inspire.ts +0 -24
  197. package/core/cli/src/utilities.ts +0 -2
@@ -2,7 +2,7 @@ import process from 'node:process'
2
2
  import { ExitCode } from '@stacksjs/types'
3
3
  import type { CLI, TinkerOptions } from '@stacksjs/types'
4
4
  import { runAction } from '@stacksjs/actions'
5
- import { intro, outro } from '@stacksjs/cli'
5
+ import { intro, log, outro } from '@stacksjs/cli'
6
6
  import { Action } from '@stacksjs/enums'
7
7
 
8
8
  export function tinker(buddy: CLI) {
@@ -17,6 +17,8 @@ export function tinker(buddy: CLI) {
17
17
  .option('-p, --project', descriptions.project, { default: false })
18
18
  .option('--verbose', descriptions.verbose, { default: false })
19
19
  .action(async (options: TinkerOptions) => {
20
+ log.debug('Running `buddy tinker` ...', options)
21
+
20
22
  const perf = await intro('buddy tinker')
21
23
  const result = await runAction(Action.Tinker, options)
22
24
 
@@ -1,6 +1,7 @@
1
1
  import process from 'node:process'
2
- import type { CLI } from '@stacksjs/types'
2
+ import type { CLI, CliOptions } from '@stacksjs/types'
3
3
  import { generateTypes } from '@stacksjs/actions'
4
+ import { log } from 'stacks/logging'
4
5
 
5
6
  export function types(buddy: CLI) {
6
7
  const descriptions = {
@@ -14,7 +15,8 @@ export function types(buddy: CLI) {
14
15
  .command('types:generate', descriptions.generate)
15
16
  .option('-p, --project', descriptions.project, { default: false })
16
17
  .option('--verbose', descriptions.verbose, { default: false })
17
- .action(async () => {
18
+ .action(async (options: CliOptions) => {
19
+ log.debug('Running `buddy types:generate` ...', options)
18
20
  await generateTypes()
19
21
  })
20
22
 
@@ -1,10 +1,9 @@
1
1
  import process from 'node:process'
2
2
  import { runAction } from '@stacksjs/actions'
3
- import { intro, outro, prompt } from '@stacksjs/cli'
3
+ import { intro, log, outro } from '@stacksjs/cli'
4
4
  import { ExitCode } from '@stacksjs/types'
5
5
  import type { CLI, UpgradeOptions } from '@stacksjs/types'
6
6
  import { Action } from '@stacksjs/enums'
7
- import { isString } from '@stacksjs/validation'
8
7
 
9
8
  export function upgrade(buddy: CLI) {
10
9
  const descriptions = {
@@ -31,10 +30,12 @@ export function upgrade(buddy: CLI) {
31
30
  .alias('update')
32
31
  .example('buddy upgrade -a --verbose')
33
32
  .action(async (options: UpgradeOptions) => {
33
+ log.debug('Running `buddy upgrade` ...', options)
34
+
34
35
  const perf = await intro('buddy upgrade')
35
36
 
36
37
  if (hasNoOptions(options)) {
37
- let answers = await prompt.require()
38
+ let answers = await log.prompt.require()
38
39
  .multiselect(descriptions.select, {
39
40
  options: [
40
41
  { value: 'dependencies', label: 'Dependencies' },
@@ -71,6 +72,8 @@ export function upgrade(buddy: CLI) {
71
72
  .option('--verbose', descriptions.verbose, { default: false })
72
73
  .example('buddy upgrade:framework --verbose')
73
74
  .action(async (options: UpgradeOptions) => {
75
+ log.debug('Running `buddy upgrade:framework` ...', options)
76
+
74
77
  // const perf = await intro('buddy update:framework')
75
78
  await runAction(Action.Upgrade, options)
76
79
  })
@@ -82,6 +85,7 @@ export function upgrade(buddy: CLI) {
82
85
  .alias('upgrade:deps')
83
86
  .example('buddy upgrade:dependencies --verbose')
84
87
  .action(async (options: UpgradeOptions) => {
88
+ log.debug('Running `buddy upgrade:dependencies` ...', options)
85
89
  await runAction(Action.Upgrade, options)
86
90
  })
87
91
 
@@ -90,6 +94,7 @@ export function upgrade(buddy: CLI) {
90
94
  .option('-p, --project', descriptions.project, { default: false })
91
95
  .option('--verbose', descriptions.verbose, { default: false })
92
96
  .action(async (options: UpgradeOptions) => {
97
+ log.debug('Running `buddy upgrade:bun` ...', options)
93
98
  const perf = await intro('buddy upgrade:bun')
94
99
  const result = await runAction(Action.UpgradeBun, options)
95
100
 
@@ -106,8 +111,14 @@ export function upgrade(buddy: CLI) {
106
111
  .option('-p, --project', descriptions.project, { default: false })
107
112
  .option('--verbose', descriptions.verbose, { default: false })
108
113
  .action(async (options: UpgradeOptions) => {
114
+ log.debug('Running `buddy upgrade:all` ...', options)
109
115
  await runAction(Action.Upgrade, options)
110
116
  })
117
+
118
+ buddy.on('upgrade:*', () => {
119
+ console.error('Invalid command: %s\nSee --help for a list of available commands.', buddy.args.join(' '))
120
+ process.exit(1)
121
+ })
111
122
  }
112
123
 
113
124
  function hasNoOptions(options: UpgradeOptions) {
@@ -1,3 +1,4 @@
1
+ import process from 'node:process'
1
2
  import type { CLI } from '@stacksjs/types'
2
3
  import { bold, dim, green, intro, log } from '@stacksjs/cli'
3
4
  import { storage } from '@stacksjs/storage'
@@ -10,6 +11,7 @@ export function version(buddy: CLI) {
10
11
  buddy
11
12
  .command('version', descriptions.version)
12
13
  .action(async () => {
14
+ log.debug('Running `buddy version` ...')
13
15
  await intro('buddy version')
14
16
 
15
17
  const pkg = await storage.readPackageJson('./package.json')
@@ -21,4 +23,9 @@ export function version(buddy: CLI) {
21
23
 
22
24
  // redis (or other cache/s), mysql (or other database/s),
23
25
  })
26
+
27
+ buddy.on('version:*', () => {
28
+ console.error('Invalid command: %s\nSee --help for a list of available commands.', buddy.args.join(' '))
29
+ process.exit(1)
30
+ })
24
31
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/build",
3
3
  "type": "module",
4
- "version": "0.58.58",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks framework build tools and configurations.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bun-examples/bud",
3
3
  "type": "module",
4
- "version": "0.58.58",
4
+ "version": "0.58.60",
5
5
  "description": "Your project description.",
6
6
  "author": "your-name <your-email>",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bun-examples/buddy",
3
3
  "type": "module",
4
- "version": "0.58.58",
4
+ "version": "0.58.60",
5
5
  "description": "Your project description.",
6
6
  "author": "your-name <your-email>",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bun-examples/stack",
3
3
  "type": "module",
4
- "version": "0.58.58",
4
+ "version": "0.58.60",
5
5
  "description": "Your project description.",
6
6
  "author": "your-name <your-email>",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bun-examples/stacks",
3
3
  "type": "module",
4
- "version": "0.58.58",
4
+ "version": "0.58.60",
5
5
  "description": "Your project description.",
6
6
  "author": "your-name <your-email>",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bun-examples/stx",
3
3
  "type": "module",
4
- "version": "0.58.58",
4
+ "version": "0.58.60",
5
5
  "description": "Your project description.",
6
6
  "author": "your-name <your-email>",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bun-plugin-yaml",
3
3
  "type": "module",
4
- "version": "0.58.58",
4
+ "version": "0.58.60",
5
5
  "description": "A Bun plugin to load yaml files",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/cache",
3
3
  "type": "module",
4
- "version": "0.58.58",
4
+ "version": "0.58.60",
5
5
  "description": "Caching the Stacks way.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -57,7 +57,7 @@
57
57
  "@stacksjs/config": "workspace:*"
58
58
  },
59
59
  "optionalDependencies": {
60
- "@aws-sdk/client-dynamodb": "^3.509.0",
60
+ "@aws-sdk/client-dynamodb": "^3.511.0",
61
61
  "ioredis": "^5.3.2"
62
62
  },
63
63
  "devDependencies": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/chat",
3
3
  "type": "module",
4
- "version": "0.58.58",
4
+ "version": "0.58.60",
5
5
  "description": "Easily interact with chat APIs.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",