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.
Files changed (136) hide show
  1. package/core/actions/dist/src/clean.js +2 -2
  2. package/core/actions/dist/src/lint/fix.js +4 -1
  3. package/core/actions/dist/src/upgrade.js +10 -7
  4. package/core/actions/package.json +1 -1
  5. package/core/actions/src/action.ts +18 -8
  6. package/core/actions/src/clean.ts +2 -2
  7. package/core/actions/src/dev/api.ts +1 -2
  8. package/core/actions/src/domains/add.ts +12 -27
  9. package/core/actions/src/lint/fix.ts +6 -1
  10. package/core/actions/src/migrate/dns.ts +1 -1
  11. package/core/actions/src/upgrade.ts +5 -2
  12. package/core/ai/package.json +2 -2
  13. package/core/alias/package.json +4 -4
  14. package/core/analytics/package.json +1 -1
  15. package/core/api/package.json +4 -4
  16. package/core/arrays/package.json +4 -4
  17. package/core/auth/package.json +1 -1
  18. package/core/buddy/dist/{chunk-7b24d1e3e585766e.js → chunk-6658b07ce4c24cac.js} +62 -1
  19. package/core/buddy/dist/cli.js +1 -1
  20. package/core/buddy/dist/index.js +1 -1
  21. package/core/buddy/package.json +1 -1
  22. package/core/buddy/src/commands/build.ts +25 -25
  23. package/core/buddy/src/commands/deploy.ts +1 -1
  24. package/core/buddy/src/commands/dev.ts +33 -34
  25. package/core/buddy/src/commands/upgrade.ts +23 -24
  26. package/core/build/package.json +1 -1
  27. package/core/bun-create/bud/package.json +1 -1
  28. package/core/bun-create/buddy/package.json +1 -1
  29. package/core/bun-create/stack/package.json +1 -1
  30. package/core/bun-create/stacks/package.json +1 -1
  31. package/core/bun-create/stx/package.json +1 -1
  32. package/core/bun-create/tmp.json +0 -0
  33. package/core/bun-plugin-yaml/package.json +4 -4
  34. package/core/cache/package.json +4 -4
  35. package/core/chat/package.json +10 -10
  36. package/core/cli/dist/index.js +27 -20
  37. package/core/cli/package.json +1 -1
  38. package/core/cli/src/console.ts +18 -18
  39. package/core/cli/src/exec.ts +9 -6
  40. package/core/cli/src/parse.ts +3 -3
  41. package/core/cloud/dist/index.js +2 -2
  42. package/core/cloud/package.json +2 -2
  43. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +1 -1
  44. package/core/cloud/src/cloud/dashboard.ts +86 -85
  45. package/core/cloud/src/cloud/docs.ts +2 -2
  46. package/core/cloud/src/cloud/router-layer/nodejs/package.json +2 -2
  47. package/core/cloud/zip.ts +1 -1
  48. package/core/collections/package.json +2 -2
  49. package/core/collections/tmp.json +0 -0
  50. package/core/config/dist/index.js +3 -3
  51. package/core/config/package.json +1 -1
  52. package/core/config/src/defaults.ts +4 -2
  53. package/core/database/package.json +1 -1
  54. package/core/database/src/kysely-bun-worker/worker.ts +0 -1
  55. package/core/datetime/package.json +1 -1
  56. package/core/desktop/package.json +1 -1
  57. package/core/development/package.json +1 -1
  58. package/core/dns/package.json +13 -13
  59. package/core/docs/package.json +1 -1
  60. package/core/email/package.json +2 -1
  61. package/core/email/src/server/converter.ts +19 -19
  62. package/core/email/src/server/inbound.ts +24 -8
  63. package/core/email/src/server/outbound.ts +17 -17
  64. package/core/enums/package.json +1 -1
  65. package/core/env/dist/index.js +1 -1
  66. package/core/env/package.json +4 -4
  67. package/core/env/tmp.json +0 -0
  68. package/core/error-handling/package.json +1 -1
  69. package/core/eslint-config/build.ts +1 -1
  70. package/core/eslint-config/package.json +3 -1
  71. package/core/eslint-config/test/cli.spec.ts +2 -1
  72. package/core/eslint-config/tsconfig.json +2 -2
  73. package/core/events/package.json +1 -1
  74. package/core/faker/package.json +1 -1
  75. package/core/git/package.json +1 -1
  76. package/core/health/package.json +1 -1
  77. package/core/http/package.json +1 -1
  78. package/core/lint/package.json +1 -1
  79. package/core/logging/build.ts +1 -1
  80. package/core/logging/dist/index.js +13 -11043
  81. package/core/logging/package.json +5 -5
  82. package/core/notifications/package.json +1 -1
  83. package/core/objects/package.json +1 -1
  84. package/core/orm/package.json +8 -8
  85. package/core/path/dist/index.js +5 -0
  86. package/core/path/package.json +3 -3
  87. package/core/path/src/index.ts +5 -0
  88. package/core/path/tmp.json +0 -0
  89. package/core/payments/package.json +1 -1
  90. package/core/push/package.json +1 -1
  91. package/core/query-builder/package.json +1 -1
  92. package/core/queue/package.json +2 -2
  93. package/core/queue/tmp.json +0 -0
  94. package/core/raycast/package.json +1 -1
  95. package/core/raycast/tmp.json +0 -0
  96. package/core/realtime/package.json +1 -1
  97. package/core/repl/package.json +4 -4
  98. package/core/router/dist/index.js +4 -0
  99. package/core/router/package.json +1 -1
  100. package/core/scheduler/package.json +3 -2
  101. package/core/scheduler/tests/cron.test.ts +11 -9
  102. package/core/search-engine/package.json +1 -1
  103. package/core/security/package.json +9 -9
  104. package/core/server/package.json +1 -1
  105. package/core/signals/package.json +1 -1
  106. package/core/slug/package.json +1 -1
  107. package/core/sms/package.json +11 -11
  108. package/core/storage/package.json +13 -13
  109. package/core/strings/package.json +1 -1
  110. package/core/tables/package.json +6 -6
  111. package/core/testing/package.json +6 -4
  112. package/core/tinker/package.json +4 -4
  113. package/core/tunnel/package.json +1 -1
  114. package/core/types/package.json +1 -1
  115. package/core/types/src/app.ts +1 -1
  116. package/core/types/src/docs.ts +3 -3
  117. package/core/types/src/team.ts +1 -1
  118. package/core/ui/package.json +2 -2
  119. package/core/utils/dist/index.js +15 -13
  120. package/core/utils/package.json +21 -21
  121. package/core/utils/src/clean.ts +3 -3
  122. package/core/utils/src/hash.ts +9 -9
  123. package/core/validation/package.json +7 -7
  124. package/core/vite/dist/index.js +1 -1
  125. package/core/vite/package.json +1 -1
  126. package/core/vite/src/example-wc.ts +1 -4
  127. package/core/vite/src/plugin/auto-imports.ts +1 -2
  128. package/core/vite/src/plugin/components.ts +1 -2
  129. package/core/vite/src/plugin/docs.ts +1 -1
  130. package/core/whois/package.json +4 -4
  131. package/core/x-ray/package.json +4 -4
  132. package/core/zsh-buddy/package.json +3 -3
  133. package/ide/vscode/package.json +3 -4
  134. package/package.json +1 -1
  135. package/core/cloud/cdk.json +0 -62
  136. package/core/cloud/deploy.ts +0 -85
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/tunnel",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.61",
5
5
  "description": "Local development tunnel.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.61",
5
5
  "description": "The Stacks framework types.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,4 +1,4 @@
1
- export type AppEnvType = 'local' | 'dev' | 'stage' | 'prod'
1
+ export type AppEnvType = 'local' | 'dev' | 'stage' | 'prod' | string
2
2
 
3
3
  interface Ports {
4
4
  frontend: number
@@ -1,11 +1,11 @@
1
1
  import type { UserConfig } from 'vitepress'
2
2
 
3
- interface DeployedUserConfig extends UserConfig {
3
+ export interface DocsUserConfig extends UserConfig {
4
4
  deploy: boolean
5
5
  }
6
6
 
7
- export type DocsConfig = DeployedUserConfig
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
@@ -1,6 +1,6 @@
1
1
  type TeamMemberName = string
2
2
  type Email = string
3
- type TeamMembers = Record<TeamMemberName, Email>[]
3
+ type TeamMembers = Record<TeamMemberName, Email>
4
4
 
5
5
  export interface Team {
6
6
  name: string
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/ui",
3
3
  "type": "module",
4
- "version": "0.58.59",
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.181",
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:*",
@@ -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.cloudPath("cdk.out/"),
28
- p.cloudPath("cdk.context.json"),
29
- p.cloudPath("dist.zip")
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
- var originRequestFunctionHash;
151
- try {
152
- originRequestFunctionHash = hashPaths(p2.cloudPath("src/edge"));
153
- } catch (error) {
154
- console.error("Are we in a Docker container? Failed to hash paths:", error);
155
- originRequestFunctionHash = null;
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
- log.info("Project not yet initialized, generating application key...");
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
- log.info("Application key generated.");
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.59";
925
+ var version = "0.58.61";
924
926
  export {
925
927
  wordChar,
926
928
  wordBoundary,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/utils",
3
3
  "type": "module",
4
- "version": "0.58.59",
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": "workspace:*",
56
- "@stacksjs/arrays": "workspace:*",
57
- "@stacksjs/cli": "workspace:*",
58
- "@stacksjs/config": "workspace:*",
59
- "@stacksjs/development": "workspace:*",
60
- "@stacksjs/lint": "workspace:*",
61
- "@stacksjs/path": "workspace:*",
62
- "@stacksjs/storage": "workspace:*",
63
- "@stacksjs/strings": "workspace:*",
64
- "@stacksjs/types": "workspace:*",
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": "workspace:*",
78
- "@stacksjs/arrays": "workspace:*",
79
- "@stacksjs/cli": "workspace:*",
80
- "@stacksjs/config": "workspace:*",
81
- "@stacksjs/lint": "workspace:*",
82
- "@stacksjs/path": "workspace:*",
83
- "@stacksjs/storage": "workspace:*",
84
- "@stacksjs/strings": "workspace:*",
85
- "@stacksjs/types": "workspace:*",
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": "workspace:*",
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"
@@ -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.cloudPath('cdk.out/'),
14
- p.cloudPath('cdk.context.json'),
15
- p.cloudPath('dist.zip'),
13
+ p.frameworkCloudPath('cdk.out/'),
14
+ p.frameworkCloudPath('cdk.context.json'),
15
+ p.frameworkCloudPath('dist.zip'),
16
16
  ])
17
17
  }
@@ -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
- // eslint-disable-next-line import/no-mutable-exports
6
- let originRequestFunctionHash
7
- try {
8
- originRequestFunctionHash = hashPaths(p.cloudPath('src/edge'))
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.59",
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": "workspace:*",
52
- "@stacksjs/types": "workspace:*",
51
+ "@stacksjs/strings": "latest",
52
+ "@stacksjs/types": "latest",
53
53
  "@vinejs/vine": "^1.7.1"
54
54
  },
55
55
  "dependencies": {
56
- "@stacksjs/strings": "workspace:*",
57
- "@stacksjs/types": "workspace:*",
56
+ "@stacksjs/strings": "latest",
57
+ "@stacksjs/types": "latest",
58
58
  "@vinejs/vine": "^1.7.1"
59
59
  },
60
60
  "devDependencies": {
61
- "@stacksjs/development": "workspace:*",
62
- "@stacksjs/vite": "workspace:*"
61
+ "@stacksjs/development": "latest",
62
+ "@stacksjs/vite": "latest"
63
63
  }
64
64
  }
@@ -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.59";
612
+ var version = "0.58.61";
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.59",
4
+ "version": "0.58.61",
5
5
  "description": "The Stacks Vite plugin.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -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
- // import { uiEngine } from '.'
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): Plugin {
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): Plugin {
5
+ export function components(options?: ComponentOptions) {
7
6
  return Components({
8
7
  extensions: ['stx', 'vue', 'md'],
9
8
  include: /\.(stx|vue|md)($|\?)/,
@@ -1,5 +1,5 @@
1
1
  import { kolorist as c } from '@stacksjs/cli'
2
- import type { ViteDevServer } from '..'
2
+ import type { ViteDevServer } from 'vite'
3
3
  import { version } from '../../package.json'
4
4
 
5
5
  export const docsEngine = {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/whois",
3
3
  "type": "module",
4
- "version": "0.58.59",
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.1"
52
+ "socks": "^2.7.3"
53
53
  },
54
54
  "dependencies": {
55
55
  "node-fetch": "^3.3.2",
56
- "socks": "^2.7.1"
56
+ "socks": "^2.7.3"
57
57
  },
58
58
  "devDependencies": {
59
- "@stacksjs/development": "workspace:*"
59
+ "@stacksjs/development": "latest"
60
60
  }
61
61
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/x-ray",
3
3
  "type": "module",
4
- "version": "0.58.59",
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": "workspace:*",
48
- "@stacksjs/logging": "workspace:*"
47
+ "@stacksjs/desktop": "latest",
48
+ "@stacksjs/logging": "latest"
49
49
  },
50
50
  "devDependencies": {
51
- "@stacksjs/development": "workspace:*"
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.59",
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/ui#readme",
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/ui"
13
+ "directory": "./storage/framework/core/zsh-buddy"
14
14
  },
15
15
  "bugs": {
16
16
  "url": "https://github.com/stacksjs/stacks/issues"
@@ -2,7 +2,7 @@
2
2
  "publisher": "Stacks",
3
3
  "name": "vscode-stacks",
4
4
  "displayName": "Stacks",
5
- "version": "0.58.59",
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stacks",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.61",
5
5
  "description": "The Stacks framework.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -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
- }
@@ -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()