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.
- package/core/actions/dist/src/build.js +18 -26
- package/core/actions/dist/src/bump.js +9 -3
- package/core/actions/dist/src/changelog.js +11 -3
- package/core/actions/dist/src/clean.js +2 -2
- package/core/actions/dist/src/dev/index.js +18 -26
- package/core/actions/dist/src/generate/index.js +18 -26
- package/core/actions/dist/src/helpers/index.js +18 -26
- package/core/actions/dist/src/helpers/utils.js +18 -26
- package/core/actions/dist/src/index.js +26 -34
- package/core/actions/dist/src/lint/fix.js +6 -2
- package/core/actions/dist/src/release.js +30 -35
- package/core/actions/dist/src/upgrade/index.js +18 -26
- package/core/actions/dist/src/upgrade.js +10 -7
- package/core/actions/package.json +1 -1
- package/core/actions/src/action.ts +18 -8
- package/core/actions/src/bump.ts +13 -6
- package/core/actions/src/changelog.ts +14 -4
- package/core/actions/src/clean.ts +2 -2
- package/core/actions/src/dev/api.ts +1 -2
- package/core/actions/src/domains/add.ts +12 -27
- package/core/actions/src/helpers/utils.ts +24 -36
- package/core/actions/src/lint/fix.ts +8 -2
- package/core/actions/src/migrate/dns.ts +1 -1
- package/core/actions/src/release.ts +4 -1
- package/core/actions/src/upgrade.ts +5 -2
- package/core/ai/dist/index.js +31 -29
- package/core/ai/package.json +3 -3
- package/core/alias/package.json +1 -1
- package/core/analytics/package.json +1 -1
- package/core/api/dist/index.js +6 -3
- package/core/api/package.json +1 -1
- package/core/arrays/package.json +1 -1
- package/core/auth/package.json +1 -1
- package/core/buddy/dist/chunk-59a9de11428ba763.js +993 -0
- package/core/buddy/dist/{chunk-e9c0ec1a3b7be088.js → chunk-6658b07ce4c24cac.js} +604 -512
- package/core/buddy/dist/cli.js +3916 -19
- package/core/buddy/dist/index.js +2 -5
- package/core/buddy/package.json +1 -1
- package/core/buddy/src/cli.ts +91 -17
- package/core/buddy/src/commands/add.ts +3 -0
- package/core/buddy/src/commands/build.ts +18 -3
- package/core/buddy/src/commands/changelog.ts +13 -6
- package/core/buddy/src/commands/clean.ts +3 -1
- package/core/buddy/src/commands/cloud.ts +14 -2
- package/core/buddy/src/commands/commit.ts +2 -0
- package/core/buddy/src/commands/configure.ts +6 -3
- package/core/buddy/src/commands/create.ts +3 -1
- package/core/buddy/src/commands/deploy.ts +4 -2
- package/core/buddy/src/commands/dev.ts +17 -4
- package/core/buddy/src/commands/dns.ts +7 -1
- package/core/buddy/src/commands/domains.ts +7 -1
- package/core/buddy/src/commands/fresh.ts +4 -2
- package/core/buddy/src/commands/generate.ts +36 -26
- package/core/buddy/src/commands/http.ts +6 -4
- package/core/buddy/src/commands/index.ts +0 -2
- package/core/buddy/src/commands/install.ts +3 -1
- package/core/buddy/src/commands/key.ts +2 -0
- package/core/buddy/src/commands/lint.ts +4 -0
- package/core/buddy/src/commands/list.ts +6 -2
- package/core/buddy/src/commands/make.ts +52 -30
- package/core/buddy/src/commands/migrate.ts +6 -2
- package/core/buddy/src/commands/prepublish.ts +3 -0
- package/core/buddy/src/commands/release.ts +12 -2
- package/core/buddy/src/commands/seed.ts +3 -1
- package/core/buddy/src/commands/setup.ts +16 -8
- package/core/buddy/src/commands/tinker.ts +3 -1
- package/core/buddy/src/commands/types.ts +4 -2
- package/core/buddy/src/commands/upgrade.ts +14 -3
- package/core/buddy/src/commands/version.ts +7 -0
- package/core/build/package.json +1 -1
- package/core/bun-create/bud/package.json +1 -1
- package/core/bun-create/buddy/package.json +1 -1
- package/core/bun-create/stack/package.json +1 -1
- package/core/bun-create/stacks/package.json +1 -1
- package/core/bun-create/stx/package.json +1 -1
- package/core/bun-plugin-yaml/package.json +1 -1
- package/core/cache/package.json +2 -2
- package/core/chat/package.json +1 -1
- package/core/cli/dist/index.js +463 -81
- package/core/cli/package.json +1 -1
- package/core/cli/src/cli.ts +9 -31
- package/core/cli/src/console.ts +19 -19
- package/core/cli/src/exec.ts +25 -8
- package/core/cli/src/helpers.ts +3 -3
- package/core/cli/src/index.ts +1 -1
- package/core/cli/src/parse.ts +95 -17
- package/core/cli/src/run.ts +7 -7
- package/core/cli/src/utils.ts +62 -0
- package/core/cloud/dist/index.js +29 -30
- package/core/cloud/package.json +32 -32
- package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package-lock.json +6 -6
- package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +2 -2
- package/core/cloud/src/cloud/dashboard.ts +86 -85
- package/core/cloud/src/cloud/docs.ts +1 -1
- package/core/cloud/src/cloud/queue.ts +35 -34
- package/core/cloud/src/cloud/router-layer/nodejs/package.json +2 -2
- package/core/collections/package.json +1 -1
- package/core/config/dist/index.js +52 -30
- package/core/config/package.json +1 -1
- package/core/config/src/config.ts +1 -1
- package/core/config/src/defaults.ts +32 -16
- package/core/config/src/overrides.ts +2 -0
- package/core/database/package.json +1 -1
- package/core/database/src/kysely-bun-worker/worker.ts +0 -1
- package/core/datetime/package.json +1 -1
- package/core/desktop/package.json +3 -3
- package/core/development/package.json +1 -1
- package/core/dns/package.json +7 -7
- package/core/docs/package.json +1 -1
- package/core/email/package.json +4 -3
- package/core/email/src/server/converter.ts +19 -19
- package/core/email/src/server/inbound.ts +24 -8
- package/core/email/src/server/outbound.ts +17 -17
- package/core/enums/dist/index.js +2 -2
- package/core/enums/package.json +1 -1
- package/core/enums/src/index.ts +2 -2
- package/core/env/dist/index.js +1 -1
- package/core/env/package.json +3 -2
- package/core/env/src/utils.ts +1 -0
- package/core/error-handling/package.json +1 -1
- package/core/eslint-config/build.ts +1 -1
- package/core/eslint-config/package.json +12 -10
- package/core/eslint-config/test/cli.spec.ts +2 -1
- package/core/eslint-config/tsconfig.json +2 -2
- package/core/events/package.json +1 -1
- package/core/faker/package.json +2 -2
- package/core/git/package.json +1 -1
- package/core/health/package.json +1 -1
- package/core/http/package.json +1 -1
- package/core/lint/package.json +1 -1
- package/core/logging/build.ts +1 -1
- package/core/logging/dist/index.js +44 -1915
- package/core/logging/package.json +1 -1
- package/core/logging/src/index.ts +79 -13
- package/core/notifications/package.json +2 -2
- package/core/objects/package.json +1 -1
- package/core/orm/package.json +1 -1
- package/core/path/dist/index.js +10 -0
- package/core/path/package.json +1 -1
- package/core/path/src/index.ts +10 -0
- package/core/payments/dist/index.js +34 -10
- package/core/payments/package.json +2 -2
- package/core/push/package.json +1 -1
- package/core/query-builder/package.json +1 -1
- package/core/queue/package.json +1 -1
- package/core/raycast/package.json +1 -1
- package/core/realtime/package.json +1 -1
- package/core/repl/package.json +1 -1
- package/core/router/dist/index.js +517 -14
- package/core/router/package.json +1 -1
- package/core/router/src/router.ts +10 -3
- package/core/scheduler/package.json +2 -1
- package/core/scheduler/tests/cron.test.ts +11 -9
- package/core/search-engine/package.json +1 -1
- package/core/security/package.json +1 -1
- package/core/server/package.json +2 -2
- package/core/signals/package.json +1 -1
- package/core/slug/package.json +1 -1
- package/core/sms/package.json +1 -1
- package/core/storage/package.json +1 -1
- package/core/strings/package.json +1 -1
- package/core/tables/package.json +2 -2
- package/core/testing/package.json +5 -3
- package/core/tinker/package.json +1 -1
- package/core/tunnel/package.json +1 -1
- package/core/types/dist/index.js +1787 -6
- package/core/types/package.json +6 -6
- package/core/types/src/ai.ts +1 -0
- package/core/types/src/app.ts +1 -1
- package/core/types/src/binary.ts +1 -0
- package/core/types/src/cli.ts +13 -3
- package/core/types/src/docs.ts +6 -2
- package/core/types/src/index.ts +1 -0
- package/core/types/src/logger.ts +54 -0
- package/core/types/src/router.ts +2 -1
- package/core/types/src/stacks.ts +10 -0
- package/core/ui/package.json +4 -4
- package/core/utils/dist/index.js +13 -5
- package/core/utils/package.json +2 -2
- package/core/utils/src/hash.ts +10 -1
- package/core/validation/package.json +1 -1
- package/core/vite/dist/index.js +1 -1
- package/core/vite/package.json +4 -4
- package/core/vite/src/example-wc.ts +1 -4
- package/core/vite/src/plugin/auto-imports.ts +1 -2
- package/core/vite/src/plugin/components.ts +1 -2
- package/core/vite/src/plugin/docs.ts +1 -1
- package/core/whois/package.json +3 -3
- package/core/x-ray/package.json +1 -1
- package/core/zsh-buddy/buddy.plugin.zsh +4 -0
- package/core/zsh-buddy/package.json +3 -3
- package/ide/dictionary.txt +1 -0
- package/ide/vscode/package.json +3 -4
- package/package.json +1 -1
- package/core/buddy/src/commands/example.ts +0 -66
- package/core/buddy/src/commands/inspire.ts +0 -24
- 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,
|
|
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
|
}
|
package/core/build/package.json
CHANGED
package/core/cache/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/cache",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.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.
|
|
60
|
+
"@aws-sdk/client-dynamodb": "^3.511.0",
|
|
61
61
|
"ioredis": "^5.3.2"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|