stacks 0.58.59 → 0.58.61
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/clean.js +2 -2
- package/core/actions/dist/src/lint/fix.js +4 -1
- 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/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/lint/fix.ts +6 -1
- package/core/actions/src/migrate/dns.ts +1 -1
- package/core/actions/src/upgrade.ts +5 -2
- package/core/ai/package.json +2 -2
- package/core/alias/package.json +4 -4
- package/core/analytics/package.json +1 -1
- package/core/api/package.json +4 -4
- package/core/arrays/package.json +4 -4
- package/core/auth/package.json +1 -1
- package/core/buddy/dist/{chunk-7b24d1e3e585766e.js → chunk-6658b07ce4c24cac.js} +62 -1
- package/core/buddy/dist/cli.js +1 -1
- package/core/buddy/dist/index.js +1 -1
- package/core/buddy/package.json +1 -1
- package/core/buddy/src/commands/build.ts +25 -25
- package/core/buddy/src/commands/deploy.ts +1 -1
- package/core/buddy/src/commands/dev.ts +33 -34
- package/core/buddy/src/commands/upgrade.ts +23 -24
- 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-create/tmp.json +0 -0
- package/core/bun-plugin-yaml/package.json +4 -4
- package/core/cache/package.json +4 -4
- package/core/chat/package.json +10 -10
- package/core/cli/dist/index.js +27 -20
- package/core/cli/package.json +1 -1
- package/core/cli/src/console.ts +18 -18
- package/core/cli/src/exec.ts +9 -6
- package/core/cli/src/parse.ts +3 -3
- package/core/cloud/dist/index.js +2 -2
- package/core/cloud/package.json +2 -2
- package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +1 -1
- package/core/cloud/src/cloud/dashboard.ts +86 -85
- package/core/cloud/src/cloud/docs.ts +2 -2
- package/core/cloud/src/cloud/router-layer/nodejs/package.json +2 -2
- package/core/cloud/zip.ts +1 -1
- package/core/collections/package.json +2 -2
- package/core/collections/tmp.json +0 -0
- package/core/config/dist/index.js +3 -3
- package/core/config/package.json +1 -1
- package/core/config/src/defaults.ts +4 -2
- 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 +1 -1
- package/core/development/package.json +1 -1
- package/core/dns/package.json +13 -13
- package/core/docs/package.json +1 -1
- package/core/email/package.json +2 -1
- 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/package.json +1 -1
- package/core/env/dist/index.js +1 -1
- package/core/env/package.json +4 -4
- package/core/env/tmp.json +0 -0
- package/core/error-handling/package.json +1 -1
- package/core/eslint-config/build.ts +1 -1
- package/core/eslint-config/package.json +3 -1
- 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 +1 -1
- 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 +13 -11043
- package/core/logging/package.json +5 -5
- package/core/notifications/package.json +1 -1
- package/core/objects/package.json +1 -1
- package/core/orm/package.json +8 -8
- package/core/path/dist/index.js +5 -0
- package/core/path/package.json +3 -3
- package/core/path/src/index.ts +5 -0
- package/core/path/tmp.json +0 -0
- package/core/payments/package.json +1 -1
- package/core/push/package.json +1 -1
- package/core/query-builder/package.json +1 -1
- package/core/queue/package.json +2 -2
- package/core/queue/tmp.json +0 -0
- package/core/raycast/package.json +1 -1
- package/core/raycast/tmp.json +0 -0
- package/core/realtime/package.json +1 -1
- package/core/repl/package.json +4 -4
- package/core/router/dist/index.js +4 -0
- package/core/router/package.json +1 -1
- package/core/scheduler/package.json +3 -2
- package/core/scheduler/tests/cron.test.ts +11 -9
- package/core/search-engine/package.json +1 -1
- package/core/security/package.json +9 -9
- package/core/server/package.json +1 -1
- package/core/signals/package.json +1 -1
- package/core/slug/package.json +1 -1
- package/core/sms/package.json +11 -11
- package/core/storage/package.json +13 -13
- package/core/strings/package.json +1 -1
- package/core/tables/package.json +6 -6
- package/core/testing/package.json +6 -4
- package/core/tinker/package.json +4 -4
- package/core/tunnel/package.json +1 -1
- package/core/types/package.json +1 -1
- package/core/types/src/app.ts +1 -1
- package/core/types/src/docs.ts +3 -3
- package/core/types/src/team.ts +1 -1
- package/core/ui/package.json +2 -2
- package/core/utils/dist/index.js +15 -13
- package/core/utils/package.json +21 -21
- package/core/utils/src/clean.ts +3 -3
- package/core/utils/src/hash.ts +9 -9
- package/core/validation/package.json +7 -7
- package/core/vite/dist/index.js +1 -1
- package/core/vite/package.json +1 -1
- 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 +4 -4
- package/core/x-ray/package.json +4 -4
- package/core/zsh-buddy/package.json +3 -3
- package/ide/vscode/package.json +3 -4
- package/package.json +1 -1
- package/core/cloud/cdk.json +0 -62
- package/core/cloud/deploy.ts +0 -85
package/core/tunnel/package.json
CHANGED
package/core/types/package.json
CHANGED
package/core/types/src/app.ts
CHANGED
package/core/types/src/docs.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { UserConfig } from 'vitepress'
|
|
2
2
|
|
|
3
|
-
interface
|
|
3
|
+
export interface DocsUserConfig extends UserConfig {
|
|
4
4
|
deploy: boolean
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
export type DocsConfig =
|
|
8
|
-
export type DocsOptions = DocsConfig
|
|
7
|
+
export type DocsConfig = DocsUserConfig
|
|
8
|
+
export type DocsOptions = Partial<DocsConfig>
|
|
9
9
|
|
|
10
10
|
export interface SocialLink {
|
|
11
11
|
icon: SocialLinkIcon
|
package/core/types/src/team.ts
CHANGED
package/core/ui/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.61",
|
|
5
5
|
"description": "The Stacks UI engine.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -73,7 +73,7 @@
|
|
|
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.
|
|
76
|
+
"@iconify/json": "^2.2.182",
|
|
77
77
|
"@julr/unocss-preset-forms": "^0.1.0",
|
|
78
78
|
"@stacksjs/build": "workspace:*",
|
|
79
79
|
"@stacksjs/config": "workspace:*",
|
package/core/utils/dist/index.js
CHANGED
|
@@ -24,9 +24,9 @@ async function cleanProject() {
|
|
|
24
24
|
p.frameworkPath("node_modules"),
|
|
25
25
|
p.frameworkPath("**/dist"),
|
|
26
26
|
p.frameworkPath("**/node_modules"),
|
|
27
|
-
p.
|
|
28
|
-
p.
|
|
29
|
-
p.
|
|
27
|
+
p.frameworkCloudPath("cdk.out/"),
|
|
28
|
+
p.frameworkCloudPath("cdk.context.json"),
|
|
29
|
+
p.frameworkCloudPath("dist.zip")
|
|
30
30
|
]);
|
|
31
31
|
}
|
|
32
32
|
// src/config.ts
|
|
@@ -147,12 +147,14 @@ function isTruthy(v) {
|
|
|
147
147
|
import {hashPaths} from "@stacksjs/storage";
|
|
148
148
|
import {path as p2} from "@stacksjs/path";
|
|
149
149
|
import {config as config2} from "@stacksjs/config";
|
|
150
|
-
|
|
151
|
-
try {
|
|
152
|
-
|
|
153
|
-
} catch (error) {
|
|
154
|
-
|
|
155
|
-
|
|
150
|
+
function originRequestFunctionHash() {
|
|
151
|
+
try {
|
|
152
|
+
return hashPaths(p2.cloudPath("src/edge"));
|
|
153
|
+
} catch (error) {
|
|
154
|
+
log.error("Are we in a Docker container? Failed to hash paths. Error below:");
|
|
155
|
+
log.error(error);
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
156
158
|
}
|
|
157
159
|
var docsSrc = [
|
|
158
160
|
p2.projectPath("docs"),
|
|
@@ -163,7 +165,7 @@ var websiteSrc = [
|
|
|
163
165
|
];
|
|
164
166
|
var websiteSourceHash = config2.app.docMode === true ? hashPaths(docsSrc) : hashPaths(websiteSrc);
|
|
165
167
|
// src/helpers.ts
|
|
166
|
-
import {log, runCommand} from "@stacksjs/cli";
|
|
168
|
+
import {log as log2, runCommand} from "@stacksjs/cli";
|
|
167
169
|
import {err, handleError, ok} from "@stacksjs/error-handling";
|
|
168
170
|
import {frameworkPath, projectPath} from "@stacksjs/path";
|
|
169
171
|
import * as storage2 from "@stacksjs/storage";
|
|
@@ -176,13 +178,13 @@ async function packageManager() {
|
|
|
176
178
|
}
|
|
177
179
|
async function initProject() {
|
|
178
180
|
if (app.env !== "production")
|
|
179
|
-
|
|
181
|
+
log2.info("Project not yet initialized, generating application key...");
|
|
180
182
|
else
|
|
181
183
|
handleError("Please run `buddy key:generate` to generate an application key");
|
|
182
184
|
const result = await runAction(Action.KeyGenerate, { cwd: projectPath() });
|
|
183
185
|
if (result.isErr())
|
|
184
186
|
return err(handleError(result.error));
|
|
185
|
-
|
|
187
|
+
log2.info("Application key generated.");
|
|
186
188
|
return ok(result.value);
|
|
187
189
|
}
|
|
188
190
|
async function ensureProjectIsInitialized() {
|
|
@@ -920,7 +922,7 @@ function prettyBytes(number, options) {
|
|
|
920
922
|
return prefix + numberString + separator + unit;
|
|
921
923
|
}
|
|
922
924
|
// package.json
|
|
923
|
-
var version = "0.58.
|
|
925
|
+
var version = "0.58.61";
|
|
924
926
|
export {
|
|
925
927
|
wordChar,
|
|
926
928
|
wordBoundary,
|
package/core/utils/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/utils",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.61",
|
|
5
5
|
"description": "The Stacks helper functions.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -52,16 +52,16 @@
|
|
|
52
52
|
"size": "bun scripts/export-size.ts"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@stacksjs/actions": "
|
|
56
|
-
"@stacksjs/arrays": "
|
|
57
|
-
"@stacksjs/cli": "
|
|
58
|
-
"@stacksjs/config": "
|
|
59
|
-
"@stacksjs/development": "
|
|
60
|
-
"@stacksjs/lint": "
|
|
61
|
-
"@stacksjs/path": "
|
|
62
|
-
"@stacksjs/storage": "
|
|
63
|
-
"@stacksjs/strings": "
|
|
64
|
-
"@stacksjs/types": "
|
|
55
|
+
"@stacksjs/actions": "latest",
|
|
56
|
+
"@stacksjs/arrays": "latest",
|
|
57
|
+
"@stacksjs/cli": "latest",
|
|
58
|
+
"@stacksjs/config": "latest",
|
|
59
|
+
"@stacksjs/development": "latest",
|
|
60
|
+
"@stacksjs/lint": "latest",
|
|
61
|
+
"@stacksjs/path": "latest",
|
|
62
|
+
"@stacksjs/storage": "latest",
|
|
63
|
+
"@stacksjs/strings": "latest",
|
|
64
|
+
"@stacksjs/types": "latest",
|
|
65
65
|
"@types/js-yaml": "^4.0.9",
|
|
66
66
|
"@vueuse/core": "^10.7.2",
|
|
67
67
|
"@vueuse/head": "^2.0.0",
|
|
@@ -74,15 +74,15 @@
|
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@dinero.js/currencies": "2.0.0-alpha.14",
|
|
77
|
-
"@stacksjs/actions": "
|
|
78
|
-
"@stacksjs/arrays": "
|
|
79
|
-
"@stacksjs/cli": "
|
|
80
|
-
"@stacksjs/config": "
|
|
81
|
-
"@stacksjs/lint": "
|
|
82
|
-
"@stacksjs/path": "
|
|
83
|
-
"@stacksjs/storage": "
|
|
84
|
-
"@stacksjs/strings": "
|
|
85
|
-
"@stacksjs/types": "
|
|
77
|
+
"@stacksjs/actions": "latest",
|
|
78
|
+
"@stacksjs/arrays": "latest",
|
|
79
|
+
"@stacksjs/cli": "latest",
|
|
80
|
+
"@stacksjs/config": "latest",
|
|
81
|
+
"@stacksjs/lint": "latest",
|
|
82
|
+
"@stacksjs/path": "latest",
|
|
83
|
+
"@stacksjs/storage": "latest",
|
|
84
|
+
"@stacksjs/strings": "latest",
|
|
85
|
+
"@stacksjs/types": "latest",
|
|
86
86
|
"@vueuse/core": "^10.7.2",
|
|
87
87
|
"@vueuse/head": "^2.0.0",
|
|
88
88
|
"@vueuse/math": "^10.7.2",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"yaml": "^2.3.4"
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
|
-
"@stacksjs/development": "
|
|
106
|
+
"@stacksjs/development": "latest",
|
|
107
107
|
"@types/js-yaml": "^4.0.9",
|
|
108
108
|
"markdown-table": "^3.0.3",
|
|
109
109
|
"vue-starport": "^0.4.0"
|
package/core/utils/src/clean.ts
CHANGED
|
@@ -10,8 +10,8 @@ export async function cleanProject() {
|
|
|
10
10
|
p.frameworkPath('node_modules'),
|
|
11
11
|
p.frameworkPath('**/dist'),
|
|
12
12
|
p.frameworkPath('**/node_modules'),
|
|
13
|
-
p.
|
|
14
|
-
p.
|
|
15
|
-
p.
|
|
13
|
+
p.frameworkCloudPath('cdk.out/'),
|
|
14
|
+
p.frameworkCloudPath('cdk.context.json'),
|
|
15
|
+
p.frameworkCloudPath('dist.zip'),
|
|
16
16
|
])
|
|
17
17
|
}
|
package/core/utils/src/hash.ts
CHANGED
|
@@ -2,16 +2,16 @@ import { hashPaths } from '@stacksjs/storage'
|
|
|
2
2
|
import { path as p } from '@stacksjs/path'
|
|
3
3
|
import { config } from '@stacksjs/config'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
export function originRequestFunctionHash() {
|
|
6
|
+
try {
|
|
7
|
+
return hashPaths(p.cloudPath('src/edge'))
|
|
8
|
+
}
|
|
9
|
+
catch (error: any) {
|
|
10
|
+
log.error('Are we in a Docker container? Failed to hash paths. Error below:')
|
|
11
|
+
log.error(error)
|
|
12
|
+
return undefined
|
|
13
|
+
}
|
|
9
14
|
}
|
|
10
|
-
catch (error) {
|
|
11
|
-
console.error('Are we in a Docker container? Failed to hash paths:', error)
|
|
12
|
-
originRequestFunctionHash = null // or some default/fallback value
|
|
13
|
-
}
|
|
14
|
-
export { originRequestFunctionHash }
|
|
15
15
|
|
|
16
16
|
const docsSrc = [
|
|
17
17
|
p.projectPath('docs'),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/validation",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.61",
|
|
5
5
|
"description": "The Stacks Validation ways.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -48,17 +48,17 @@
|
|
|
48
48
|
"prepublishOnly": "bun --bun run build"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@stacksjs/strings": "
|
|
52
|
-
"@stacksjs/types": "
|
|
51
|
+
"@stacksjs/strings": "latest",
|
|
52
|
+
"@stacksjs/types": "latest",
|
|
53
53
|
"@vinejs/vine": "^1.7.1"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@stacksjs/strings": "
|
|
57
|
-
"@stacksjs/types": "
|
|
56
|
+
"@stacksjs/strings": "latest",
|
|
57
|
+
"@stacksjs/types": "latest",
|
|
58
58
|
"@vinejs/vine": "^1.7.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@stacksjs/development": "
|
|
62
|
-
"@stacksjs/vite": "
|
|
61
|
+
"@stacksjs/development": "latest",
|
|
62
|
+
"@stacksjs/vite": "latest"
|
|
63
63
|
}
|
|
64
64
|
}
|
package/core/vite/dist/index.js
CHANGED
|
@@ -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.
|
|
612
|
+
var version = "0.58.61";
|
|
613
613
|
|
|
614
614
|
// src/plugin/docs.ts
|
|
615
615
|
var docsEngine = {
|
package/core/vite/package.json
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import type { ViteConfig } from '@stacksjs/types'
|
|
2
1
|
import { examplesPath } from '@stacksjs/path'
|
|
3
2
|
import { server } from '@stacksjs/server'
|
|
4
3
|
import { alias } from '@stacksjs/alias'
|
|
5
4
|
import { defineConfig } from 'vite'
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export const webComponentsExampleConfig: ViteConfig = {
|
|
6
|
+
export const webComponentsExampleConfig = {
|
|
10
7
|
root: examplesPath('web-components'),
|
|
11
8
|
|
|
12
9
|
resolve: {
|
|
@@ -2,10 +2,9 @@ import { path as p } from '@stacksjs/path'
|
|
|
2
2
|
import type { AutoImportsOptions } from '@stacksjs/types'
|
|
3
3
|
import { unheadVueComposablesImports as VueHeadImports } from '@unhead/vue'
|
|
4
4
|
import AutoImport from 'unplugin-auto-import/vite'
|
|
5
|
-
import type { Plugin } from 'vite'
|
|
6
5
|
import { VueRouterAutoImports } from 'unplugin-vue-router'
|
|
7
6
|
|
|
8
|
-
export function autoImports(options?: AutoImportsOptions)
|
|
7
|
+
export function autoImports(options?: AutoImportsOptions) {
|
|
9
8
|
return AutoImport({
|
|
10
9
|
include: /\.(stx|js|ts|mdx?|elm|html)($|\?)/,
|
|
11
10
|
imports: [
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import Components from 'unplugin-vue-components/vite'
|
|
2
2
|
import { path as p } from '@stacksjs/path'
|
|
3
3
|
import type { ComponentOptions } from '@stacksjs/types'
|
|
4
|
-
import type { Plugin } from 'vite'
|
|
5
4
|
|
|
6
|
-
export function components(options?: ComponentOptions)
|
|
5
|
+
export function components(options?: ComponentOptions) {
|
|
7
6
|
return Components({
|
|
8
7
|
extensions: ['stx', 'vue', 'md'],
|
|
9
8
|
include: /\.(stx|vue|md)($|\?)/,
|
package/core/whois/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/whois",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.61",
|
|
5
5
|
"description": "Easily get whois info.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"node-fetch": "^3.3.2",
|
|
52
|
-
"socks": "^2.7.
|
|
52
|
+
"socks": "^2.7.3"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"node-fetch": "^3.3.2",
|
|
56
|
-
"socks": "^2.7.
|
|
56
|
+
"socks": "^2.7.3"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@stacksjs/development": "
|
|
59
|
+
"@stacksjs/development": "latest"
|
|
60
60
|
}
|
|
61
61
|
}
|
package/core/x-ray/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/x-ray",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.61",
|
|
5
5
|
"description": "All you need to debug, log & analyze.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"typecheck": "bun --bun tsc --noEmit"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@stacksjs/desktop": "
|
|
48
|
-
"@stacksjs/logging": "
|
|
47
|
+
"@stacksjs/desktop": "latest",
|
|
48
|
+
"@stacksjs/logging": "latest"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@stacksjs/development": "
|
|
51
|
+
"@stacksjs/development": "latest"
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zsh-buddy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.61",
|
|
5
5
|
"description": "A better Stacks zsh experience.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"funding": "https://github.com/sponsors/chrisbbreuer",
|
|
9
|
-
"homepage": "https://github.com/stacksjs/stacks/tree/main/storage/framework/core/
|
|
9
|
+
"homepage": "https://github.com/stacksjs/stacks/tree/main/storage/framework/core/zsh-buddy#readme",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
13
|
-
"directory": "./storage/framework/core/
|
|
13
|
+
"directory": "./storage/framework/core/zsh-buddy"
|
|
14
14
|
},
|
|
15
15
|
"bugs": {
|
|
16
16
|
"url": "https://github.com/stacksjs/stacks/issues"
|
package/ide/vscode/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"publisher": "Stacks",
|
|
3
3
|
"name": "vscode-stacks",
|
|
4
4
|
"displayName": "Stacks",
|
|
5
|
-
"version": "0.58.
|
|
5
|
+
"version": "0.58.61",
|
|
6
6
|
"description": "A modern Stacks development environment.",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"funding": "https://github.com/sponsors/chrisbbreuer",
|
|
@@ -47,16 +47,15 @@
|
|
|
47
47
|
"davidanson.vscode-markdownlint",
|
|
48
48
|
"antfu.unocss",
|
|
49
49
|
"christian-kohler.npm-intellisense",
|
|
50
|
-
"wmaurer.vscode-jumpy",
|
|
51
50
|
"IBM.output-colorizer",
|
|
52
51
|
"mattpocock.ts-error-translator",
|
|
53
52
|
"amazonwebservices.aws-toolkit-vscode",
|
|
54
53
|
"antfu.goto-alias",
|
|
55
54
|
"mikestead.dotenv",
|
|
56
|
-
"pflannery.vscode-versionlens",
|
|
57
55
|
"foxundermoon.shell-format",
|
|
58
56
|
"mylesmurphy.prettify-ts",
|
|
59
|
-
"Orta.vscode-twoslash-queries"
|
|
57
|
+
"Orta.vscode-twoslash-queries",
|
|
58
|
+
"ZixuanChen.vitest-explorer"
|
|
60
59
|
],
|
|
61
60
|
"devDependencies": {
|
|
62
61
|
"@vscode/vsce": "^2.23.0"
|
package/package.json
CHANGED
package/core/cloud/cdk.json
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"app": "bun ./deploy.ts",
|
|
3
|
-
"watch": {
|
|
4
|
-
"include": [
|
|
5
|
-
"**"
|
|
6
|
-
],
|
|
7
|
-
"exclude": [
|
|
8
|
-
"README.md",
|
|
9
|
-
"cdk*.json",
|
|
10
|
-
"**/*.d.ts",
|
|
11
|
-
"**/*.js",
|
|
12
|
-
"tsconfig.json",
|
|
13
|
-
"package*.json",
|
|
14
|
-
"yarn.lock",
|
|
15
|
-
"node_modules",
|
|
16
|
-
"test"
|
|
17
|
-
]
|
|
18
|
-
},
|
|
19
|
-
"context": {
|
|
20
|
-
"@aws-cdk/aws-lambda:recognizeLayerVersion": true,
|
|
21
|
-
"@aws-cdk/core:checkSecretUsage": true,
|
|
22
|
-
"@aws-cdk/core:target-partitions": [
|
|
23
|
-
"aws",
|
|
24
|
-
"aws-cn"
|
|
25
|
-
],
|
|
26
|
-
"@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": true,
|
|
27
|
-
"@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true,
|
|
28
|
-
"@aws-cdk/aws-ecs:arnFormatIncludesClusterName": true,
|
|
29
|
-
"@aws-cdk/aws-iam:minimizePolicies": true,
|
|
30
|
-
"@aws-cdk/core:validateSnapshotRemovalPolicy": true,
|
|
31
|
-
"@aws-cdk/aws-s3:createDefaultLoggingPolicy": true,
|
|
32
|
-
"@aws-cdk/aws-sns-subscriptions:restrictSqsDescryption": true,
|
|
33
|
-
"@aws-cdk/aws-apigateway:disableCloudWatchRole": true,
|
|
34
|
-
"@aws-cdk/core:enablePartitionLiterals": true,
|
|
35
|
-
"@aws-cdk/aws-events:eventsTargetQueueSameAccount": true,
|
|
36
|
-
"@aws-cdk/aws-iam:standardizedServicePrincipals": true,
|
|
37
|
-
"@aws-cdk/aws-ecs:disableExplicitDeploymentControllerForCircuitBreaker": true,
|
|
38
|
-
"@aws-cdk/aws-iam:importedRoleStackSafeDefaultPolicyName": true,
|
|
39
|
-
"@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy": true,
|
|
40
|
-
"@aws-cdk/aws-route53-patters:useCertificate": true,
|
|
41
|
-
"@aws-cdk/customresources:installLatestAwsSdkDefault": false,
|
|
42
|
-
"@aws-cdk/aws-rds:databaseProxyUniqueResourceName": true,
|
|
43
|
-
"@aws-cdk/aws-apigateway:authorizerChangeDeploymentLogicalId": true,
|
|
44
|
-
"@aws-cdk/aws-ec2:launchTemplateDefaultUserData": true,
|
|
45
|
-
"@aws-cdk/aws-secretsmanager:useAttachedSecretResourcePolicyForSecretTargetAttachments": true,
|
|
46
|
-
"@aws-cdk/aws-redshift:columnId": true,
|
|
47
|
-
"@aws-cdk/aws-stepfunctions-tasks:enableEmrServicePolicyV2": true,
|
|
48
|
-
"@aws-cdk/aws-ec2:restrictDefaultSecurityGroup": true,
|
|
49
|
-
"@aws-cdk/aws-apigateway:requestValidatorUniqueId": true,
|
|
50
|
-
"@aws-cdk/aws-kms:aliasNameRef": true,
|
|
51
|
-
"@aws-cdk/aws-autoscaling:generateLaunchTemplateInsteadOfLaunchConfig": true,
|
|
52
|
-
"@aws-cdk/core:includePrefixInUniqueNameGeneration": true,
|
|
53
|
-
"@aws-cdk/aws-opensearchservice:enableOpensearchMultiAzWithStandby": true,
|
|
54
|
-
"@aws-cdk/aws-codepipeline:crossAccountKeyAliasStackSafeResourceName": true,
|
|
55
|
-
"@aws-cdk/aws-codedeploy:removeAlarmsFromDeploymentGroup": true,
|
|
56
|
-
"@aws-cdk/aws-lambda-nodejs:useLatestRuntimeVersion": true,
|
|
57
|
-
"@aws-cdk/aws-rds:auroraClusterChangeScopeOfInstanceParameterGroupWithEachParameters": true,
|
|
58
|
-
"@aws-cdk/aws-appsync:useArnForSourceApiAssociationIdentifier": true,
|
|
59
|
-
"@aws-cdk/aws-rds:preventRenderingDeprecatedCredentials": true
|
|
60
|
-
},
|
|
61
|
-
"toolkitStackName": "stacks-toolkit"
|
|
62
|
-
}
|
package/core/cloud/deploy.ts
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import 'source-map-support/register'
|
|
2
|
-
import process from 'node:process'
|
|
3
|
-
import { config } from '@stacksjs/config'
|
|
4
|
-
import { log } from '@stacksjs/cli'
|
|
5
|
-
import { ExitCode } from '@stacksjs/types'
|
|
6
|
-
import { slug as slugify } from '@stacksjs/strings'
|
|
7
|
-
import { env } from '@stacksjs/env'
|
|
8
|
-
import { App } from 'aws-cdk-lib'
|
|
9
|
-
import { Cloud } from './src/cloud'
|
|
10
|
-
import { getOrCreateTimestamp } from './src/helpers'
|
|
11
|
-
import type { CloudOptions } from './src/types'
|
|
12
|
-
|
|
13
|
-
const app = new App()
|
|
14
|
-
const appEnv = (config.app.env as string) === 'local'
|
|
15
|
-
? 'dev'
|
|
16
|
-
: (config.app.env as string) === 'development'
|
|
17
|
-
? 'dev'
|
|
18
|
-
: (config.app.env as string) === 'staging'
|
|
19
|
-
? 'stage'
|
|
20
|
-
: (config.app.env as string) === 'production'
|
|
21
|
-
? 'prod'
|
|
22
|
-
: config.app.env
|
|
23
|
-
|
|
24
|
-
const appKey = config.app.key
|
|
25
|
-
const domain = config.app.url
|
|
26
|
-
const appName = config.app.name?.toLowerCase() ?? 'stacks'
|
|
27
|
-
const slug = slugify(appName)
|
|
28
|
-
const name = `${slug}-cloud`
|
|
29
|
-
const account = env.AWS_ACCOUNT_ID
|
|
30
|
-
// const region = env.AWS_DEFAULT_REGION
|
|
31
|
-
const region = 'us-east-1' // currently, us-east-1 is the only fully-supported region
|
|
32
|
-
let timestamp
|
|
33
|
-
|
|
34
|
-
if (!appKey) {
|
|
35
|
-
log.info('Please set an application key. You may need to run `buddy key:generate`.')
|
|
36
|
-
process.exit(ExitCode.InvalidArgument)
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
const parts = appKey.split(':')
|
|
40
|
-
if (parts && parts.length < 2)
|
|
41
|
-
throw new Error('Invalid format application key format. Expected a colon-separated string. You may need to run `buddy key:generate`.')
|
|
42
|
-
|
|
43
|
-
if (!account || !region)
|
|
44
|
-
throw new Error('Stacks is missing your accountId or region. Please ensure it is set in your .env file')
|
|
45
|
-
|
|
46
|
-
if (!domain)
|
|
47
|
-
throw new Error('Missing app.url in config.')
|
|
48
|
-
|
|
49
|
-
if (!appName)
|
|
50
|
-
throw new Error('Missing app.name in config.')
|
|
51
|
-
|
|
52
|
-
if (!config.team || Object.keys(config.team).length === 0)
|
|
53
|
-
throw new Error('Your ./config team needs to at least have one member defined. Please set yourself as a team member and try deploying again.')
|
|
54
|
-
|
|
55
|
-
const usEnv = {
|
|
56
|
-
account,
|
|
57
|
-
region,
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
try {
|
|
61
|
-
timestamp = await getOrCreateTimestamp()
|
|
62
|
-
}
|
|
63
|
-
catch (error) {
|
|
64
|
-
console.error('Error fetching timestamp', error)
|
|
65
|
-
process.exit(ExitCode.FatalError)
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export const options = {
|
|
69
|
-
env: usEnv,
|
|
70
|
-
name,
|
|
71
|
-
slug,
|
|
72
|
-
appEnv: appEnv ?? 'dev',
|
|
73
|
-
appName,
|
|
74
|
-
domain,
|
|
75
|
-
timestamp,
|
|
76
|
-
} satisfies CloudOptions
|
|
77
|
-
|
|
78
|
-
const cloud = new Cloud(app, name, {
|
|
79
|
-
...options,
|
|
80
|
-
description: `The Stacks Cloud`,
|
|
81
|
-
})
|
|
82
|
-
|
|
83
|
-
await cloud.init()
|
|
84
|
-
|
|
85
|
-
app.synth()
|