stacks 0.58.41 → 0.58.44

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 (129) hide show
  1. package/core/actions/dist/src/build/core.js +10 -14
  2. package/core/actions/dist/src/lint/index.js +11 -15
  3. package/core/actions/dist/src/upgrade/index.js +62 -0
  4. package/core/actions/dist/src/upgrade.js +10 -5
  5. package/core/actions/package.json +1 -1
  6. package/core/actions/src/build/cli.ts +7 -0
  7. package/core/actions/src/build/core.ts +16 -48
  8. package/core/actions/src/dev/api.ts +1 -1
  9. package/core/actions/src/lint/index.ts +20 -12
  10. package/core/actions/src/upgrade/index.ts +16 -20
  11. package/core/actions/src/upgrade.ts +5 -5
  12. package/core/ai/dist/index.js +10372 -0
  13. package/core/ai/package.json +3 -3
  14. package/core/alias/package.json +1 -1
  15. package/core/analytics/package.json +1 -1
  16. package/core/api/dist/index.js +636 -0
  17. package/core/api/package.json +1 -1
  18. package/core/arrays/package.json +1 -1
  19. package/core/auth/package.json +1 -1
  20. package/core/buddy/{src/compile.ts → compile.ts} +1 -2
  21. package/core/buddy/dist/{chunk-c58676a39cd23812.js → chunk-b32089b9556f373c.js} +48 -14
  22. package/core/buddy/dist/cli.js +6 -2
  23. package/core/buddy/dist/index.js +1 -1
  24. package/core/buddy/package.json +1 -1
  25. package/core/buddy/src/cli.ts +2 -3
  26. package/core/buddy/src/commands/build.ts +55 -10
  27. package/core/buddy/src/commands/lint.ts +2 -1
  28. package/core/buddy/src/commands/upgrade.ts +2 -2
  29. package/core/build/package.json +1 -1
  30. package/core/bun-create/bud/package.json +1 -1
  31. package/core/bun-create/buddy/package.json +1 -1
  32. package/core/bun-create/stack/package.json +1 -1
  33. package/core/bun-create/stacks/package.json +1 -1
  34. package/core/bun-create/stx/package.json +1 -1
  35. package/core/bun-plugin-yaml/package.json +1 -1
  36. package/core/cache/package.json +2 -2
  37. package/core/chat/package.json +1 -1
  38. package/core/cli/dist/index.js +1 -1
  39. package/core/cli/package.json +1 -1
  40. package/core/cloud/build.ts +4 -0
  41. package/core/cloud/dist/index.js +2718 -0
  42. package/core/cloud/package.json +29 -29
  43. package/core/cloud/src/cloud/ai.ts +4 -34
  44. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package-lock.json +6 -6
  45. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +2 -2
  46. package/core/cloud/src/cloud/cdn.ts +23 -23
  47. package/core/cloud/src/cloud/compute.ts +1 -0
  48. package/core/cloud/src/cloud/index.ts +1 -0
  49. package/core/collections/package.json +1 -1
  50. package/core/config/dist/index.js +2 -13
  51. package/core/config/package.json +1 -1
  52. package/core/database/package.json +2 -2
  53. package/core/datetime/package.json +1 -1
  54. package/core/desktop/package.json +3 -5
  55. package/core/development/package.json +1 -1
  56. package/core/dns/package.json +4 -4
  57. package/core/docs/package.json +1 -1
  58. package/core/email/package.json +1 -1
  59. package/core/enums/dist/index.js +3 -3
  60. package/core/enums/package.json +1 -1
  61. package/core/enums/src/index.ts +3 -3
  62. package/core/env/package.json +1 -1
  63. package/core/error-handling/package.json +1 -1
  64. package/core/eslint-config/package.json +4 -4
  65. package/core/events/package.json +1 -1
  66. package/core/faker/package.json +1 -1
  67. package/core/git/package.json +1 -1
  68. package/core/health/package.json +1 -1
  69. package/core/http/package.json +1 -1
  70. package/core/lint/package.json +1 -1
  71. package/core/logging/package.json +1 -1
  72. package/core/notifications/package.json +1 -1
  73. package/core/objects/package.json +1 -1
  74. package/core/orm/package.json +1 -1
  75. package/core/path/dist/index.js +14 -2
  76. package/core/path/package.json +1 -1
  77. package/core/path/src/index.ts +18 -2
  78. package/core/payments/package.json +1 -1
  79. package/core/push/dist/index.js +35 -0
  80. package/core/push/package.json +1 -1
  81. package/core/query-builder/package.json +1 -1
  82. package/core/queue/package.json +1 -1
  83. package/core/raycast/package.json +6 -2
  84. package/core/realtime/package.json +1 -1
  85. package/core/repl/package.json +1 -1
  86. package/core/router/dist/index.js +1 -2
  87. package/core/router/package.json +1 -1
  88. package/core/router/src/middleware.ts +1 -3
  89. package/core/scheduler/package.json +1 -1
  90. package/core/search-engine/package.json +1 -1
  91. package/core/security/package.json +1 -1
  92. package/core/server/package.json +1 -1
  93. package/core/signals/package.json +1 -1
  94. package/core/slug/package.json +1 -1
  95. package/core/sms/dist/index.js +240 -0
  96. package/core/sms/package.json +1 -1
  97. package/core/storage/dist/index.js +3 -1
  98. package/core/storage/package.json +1 -1
  99. package/core/storage/src/zip.ts +3 -6
  100. package/core/strings/package.json +1 -1
  101. package/core/tables/package.json +2 -2
  102. package/core/testing/package.json +1 -1
  103. package/core/tinker/package.json +1 -1
  104. package/core/tunnel/package.json +1 -1
  105. package/core/types/package.json +2 -2
  106. package/core/types/src/cli.ts +2 -2
  107. package/core/ui/dist/index.js +4 -2
  108. package/core/ui/package.json +2 -2
  109. package/core/ui/src/uno.config.ts +2 -1
  110. package/core/utils/dist/index.js +1 -1
  111. package/core/utils/package.json +1 -1
  112. package/core/validation/package.json +3 -3
  113. package/core/vite/dist/index.js +2 -10
  114. package/core/vite/package.json +3 -3
  115. package/core/vite/src/api.ts +9 -11
  116. package/core/vite/src/example-vue.ts +1 -8
  117. package/core/whois/package.json +1 -1
  118. package/core/x-ray/package.json +2 -3
  119. package/core/x-ray/src/desktop/main.ts +0 -6
  120. package/core/zsh-buddy/package.json +8 -2
  121. package/ide/dictionary.txt +6 -0
  122. package/ide/vscode/package.json +1 -1
  123. package/package.json +2 -2
  124. package/core/music/package.json +0 -46
  125. package/core/music/src/components/SampleComponent.stx +0 -5
  126. package/core/music/src/layouts/default.stx +0 -3
  127. package/core/music/src/pages/index.stx +0 -10
  128. package/core/music/src/pages/music.stx +0 -10
  129. package/core/music/src/styles/main.css +0 -1
@@ -1,7 +1,6 @@
1
1
  import { log, runCommand } from '@stacksjs/cli'
2
2
 
3
- // bun build ./storage/framework/core/buddy/src/cli.ts --external @stacksjs/utils --compile --outfile budd --minify
4
- const result = await runCommand('bun build ./src/cli.ts --compile --outfile budd', {
3
+ const result = await runCommand('bun build ./src/cli.ts --compile --outfile buddy', {
5
4
  cwd: import.meta.dir,
6
5
  })
7
6
 
@@ -7,10 +7,12 @@ import {Action} from "@stacksjs/enums";
7
7
  import {isString} from "@stacksjs/validation";
8
8
  function build(buddy) {
9
9
  const descriptions = {
10
+ build: "Build any of your libraries (packages) for production use",
10
11
  components: "Build your component library",
11
12
  vueComponents: "Build your Vue component library",
12
13
  webComponents: "Build your framework agnostic web component library",
13
14
  elements: "An alias to the -w flag",
15
+ buddy: "Build the Buddy binary",
14
16
  functions: "Build your function library",
15
17
  desktop: "Build the Desktop Application",
16
18
  pages: "Build your frontend",
@@ -20,13 +22,45 @@ function build(buddy) {
20
22
  project: "Target a specific project",
21
23
  verbose: "Enable verbose output"
22
24
  };
23
- buddy.command("build", "Automagically build any of your libraries/packages for production use. Select any of the following packages").option("-c, --components", descriptions.components).option("-v, --vue-components", descriptions.vueComponents).option("-w, --web-components", descriptions.webComponents).option("-e, --elements", descriptions.elements).option("-f, --functions", descriptions.functions).option("-p, --views", descriptions.pages).option("-d, --docs", descriptions.docs).option("-s, --stacks", descriptions.framework, { default: false }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
25
+ buddy.command("build [type]", descriptions.build).option("-c, --components", descriptions.components).option("-v, --vue-components", descriptions.vueComponents).option("-w, --web-components", descriptions.webComponents).option("-e, --elements", descriptions.elements).option("-f, --functions", descriptions.functions).option("-p, --views", descriptions.pages).option("-d, --docs", descriptions.docs).option("-b, --buddy", descriptions.buddy, { default: false }).option("-s, --stacks", descriptions.framework, { default: false }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (server, options) => {
26
+ switch (server) {
27
+ case "components":
28
+ options.components = true;
29
+ break;
30
+ case "vue":
31
+ options.vueComponents = true;
32
+ break;
33
+ case "web-components":
34
+ options.webComponents = true;
35
+ break;
36
+ case "functions":
37
+ options.functions = true;
38
+ break;
39
+ case "views":
40
+ options.views = true;
41
+ break;
42
+ case "docs":
43
+ options.docs = true;
44
+ break;
45
+ case "buddy":
46
+ options.buddy = true;
47
+ break;
48
+ case "cli":
49
+ options.buddy = true;
50
+ break;
51
+ case "stacks":
52
+ options.stacks = true;
53
+ break;
54
+ default:
55
+ break;
56
+ }
24
57
  if (hasNoOptions(options)) {
25
58
  let answers = await prompt.require().multiselect(descriptions.select, {
26
59
  options: [
27
60
  { label: "Components", value: "components" },
61
+ { label: "Web Components", value: "web-components" },
28
62
  { label: "Functions", value: "functions" },
29
- { label: "Pages", value: "pages" },
63
+ { label: "Views", value: "views" },
30
64
  { label: "Documentation", value: "docs" }
31
65
  ]
32
66
  });
@@ -39,34 +73,34 @@ function build(buddy) {
39
73
  await runAction(Action.BuildStacks, options);
40
74
  process.exit(ExitCode.Success);
41
75
  });
42
- buddy.command("build:components", "Automagically build component libraries for production use & npm/CDN distribution").option("-c, --components", descriptions.components, { default: true }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
76
+ buddy.command("build:components", "Automagically build component libraries for production use & npm/CDN distribution").alias("prod:components").option("-c, --components", descriptions.components, { default: true }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
43
77
  await runAction(Action.BuildComponentLibs, options);
44
78
  });
45
- buddy.command("build:cli", "Automagically build the CLI").option("-c, --components", descriptions.components, { default: true }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
79
+ buddy.command("build:cli", "Automagically build the CLI").alias("prod:cli").option("-b, --buddy", descriptions.buddy, { default: true }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
46
80
  await runAction(Action.BuildCli, options);
47
81
  });
48
82
  buddy.command("build:functions", "Automagically build function library for npm/CDN distribution").option("-f, --functions", descriptions.functions, { default: true }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
49
83
  await runAction(Action.BuildFunctionLib, options);
50
84
  });
51
- buddy.command("build:vue-components", "Automagically build Vue component library for npm/CDN distribution").option("-v, --vue-components", descriptions.vueComponents, { default: true }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).alias("build:vue").action(async (options) => {
85
+ buddy.command("build:vue-components", "Automagically build Vue component library for npm/CDN distribution").alias("build:vue").alias("prod:vue-components").alias("prod:vue").option("-v, --vue-components", descriptions.vueComponents, { default: true }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).alias("build:vue").action(async (options) => {
52
86
  await runAction(Action.BuildVueComponentLib, options);
53
87
  });
54
- buddy.command("build:web-components", "Automagically build Web Component library for npm/CDN distribution").option("-w, --web-components", descriptions.webComponents, { default: true }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).alias("build:elements").alias("build:wc").action(async (options) => {
88
+ buddy.command("build:web-components", "Automagically build Web Component library for npm/CDN distribution").alias("build:wc").alias("prod:web-components").alias("prod:wc").option("-w, --web-components", descriptions.webComponents, { default: true }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
55
89
  await runAction(Action.BuildWebComponentLib, options);
56
90
  });
57
- buddy.command("build:docs", "Automagically build your documentation site.").option("-d, --docs", descriptions.docs, { default: true }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
91
+ buddy.command("build:docs", "Automagically build your documentation site.").alias("prod:docs").alias("build:documentation").alias("prod:documentation").option("-d, --docs", descriptions.docs, { default: true }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
58
92
  await runAction(Action.BuildDocs, options);
59
93
  });
60
- buddy.command("build:core", "Automagically build the Stacks core.").option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: true }).action(async (options) => {
94
+ buddy.command("build:core", "Automagically build the Stacks core.").option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
61
95
  const startTime = await intro("buddy build:core");
62
96
  const result = await runAction(Action.BuildCore, options);
63
97
  if (result.isErr()) {
64
98
  log2.error("Failed to build the Stacks core.", result.error);
65
99
  process.exit();
66
100
  }
67
- await outro("Stacks core built successfully", { startTime, useSeconds: true });
101
+ await outro("Core packages built successfully", { startTime, useSeconds: true });
68
102
  });
69
- buddy.command("build:desktop", descriptions.desktop).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
103
+ buddy.command("build:desktop", descriptions.desktop).alias("prod:desktop").option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
70
104
  const perf = await intro("buddy build:desktop");
71
105
  const result = await runAction(Action.BuildDesktop, options);
72
106
  if (result.isErr()) {
@@ -92,7 +126,7 @@ function build(buddy) {
92
126
  });
93
127
  }
94
128
  var hasNoOptions = function(options) {
95
- return !options.components && !options.vueComponents && !options.webComponents && !options.elements && !options.functions && !options.pages && !options.docs && !options.stacks;
129
+ return !options.components && !options.vueComponents && !options.webComponents && !options.elements && !options.functions && !options.views && !options.docs && !options.stacks && !options.buddy;
96
130
  };
97
131
 
98
132
  // src/commands/changelog.ts
@@ -1047,7 +1081,7 @@ function lint(buddy) {
1047
1081
  };
1048
1082
  buddy.command("lint", descriptions.lint).option("-f, --fix", descriptions.lintFix, { default: false }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
1049
1083
  const startTime = await intro10("buddy lint");
1050
- const result = await runAction9(Action9.Lint, { ...options });
1084
+ const result = await runAction9(Action9.Lint, options);
1051
1085
  if (result.isErr()) {
1052
1086
  await outro10("While running `buddy lint`, there was an issue", { startTime, useSeconds: true }, result.error);
1053
1087
  process16.exit();
@@ -1632,7 +1666,7 @@ function upgrade(buddy) {
1632
1666
  const descriptions2 = {
1633
1667
  command: "Upgrade dependencies, framework, package manager, JS/TS runtime",
1634
1668
  framework: "Upgrade the Stacks framework",
1635
- dependencies: "Upgrade your dependencies",
1669
+ dependencies: "Upgrade your dependencies (pkgx.yaml & package.json)",
1636
1670
  bun: "Upgrade Bun to the latest version",
1637
1671
  all: "Upgrade Node, package manager, project dependencies, and framework",
1638
1672
  force: "Overwrite possible local updates with remote framework updates",
@@ -1657,7 +1691,7 @@ function upgrade(buddy) {
1657
1691
  answers = [answers];
1658
1692
  options = answers.reduce((a, v) => ({ ...a, [v]: true }), {});
1659
1693
  }
1660
- const result = await runAction18(Action18.Upgrade, { ...options });
1694
+ const result = await runAction18(Action18.Upgrade, options);
1661
1695
  if (result.isErr()) {
1662
1696
  await outro19("While running the buddy:upgrade command, there was an issue", { startTime: perf, useSeconds: true }, result.error);
1663
1697
  process29.exit();
@@ -14,9 +14,11 @@ generate,
14
14
  http,
15
15
  install,
16
16
  key,
17
+ lint,
17
18
  release,
18
- setup
19
- } from "./chunk-c58676a39cd23812.js";
19
+ setup,
20
+ upgrade
21
+ } from "./chunk-b32089b9556f373c.js";
20
22
  import"./chunk-0455e53fab4244b1.js";
21
23
 
22
24
  // src/cli.ts
@@ -42,8 +44,10 @@ async function main() {
42
44
  generate(buddy);
43
45
  http(buddy);
44
46
  install(buddy);
47
+ lint(buddy);
45
48
  release(buddy);
46
49
  setup(buddy);
50
+ upgrade(buddy);
47
51
  buddy.parse();
48
52
  }
49
53
  process.on("uncaughtException", handleError);
@@ -32,7 +32,7 @@ tinker,
32
32
  types,
33
33
  upgrade,
34
34
  version
35
- } from "./chunk-c58676a39cd23812.js";
35
+ } from "./chunk-b32089b9556f373c.js";
36
36
  import"./chunk-0455e53fab4244b1.js";
37
37
  export {
38
38
  version,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/buddy",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
5
5
  "description": "Meet Buddy. The Stacks runtime.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -12,7 +12,6 @@ async function main() {
12
12
  const buddy = cli('buddy')
13
13
 
14
14
  // the following commands are not dependent on the project being initialized
15
- // await installIfVersionMismatch()
16
15
  cmd.setup(buddy)
17
16
  cmd.key(buddy)
18
17
 
@@ -33,7 +32,7 @@ async function main() {
33
32
  cmd.generate(buddy)
34
33
  cmd.http(buddy)
35
34
  cmd.install(buddy)
36
- // cmd.lint(buddy)
35
+ cmd.lint(buddy)
37
36
  // cmd.make(buddy)
38
37
  // cmd.migrate(buddy)
39
38
  cmd.release(buddy)
@@ -43,7 +42,7 @@ async function main() {
43
42
  // cmd.test(buddy)
44
43
  // cmd.version(buddy)
45
44
  // cmd.prepublish(buddy)
46
- // cmd.upgrade(buddy)
45
+ cmd.upgrade(buddy)
47
46
 
48
47
  buddy.parse()
49
48
  }
@@ -8,10 +8,12 @@ import { isString } from '@stacksjs/validation'
8
8
 
9
9
  export function build(buddy: CLI) {
10
10
  const descriptions = {
11
+ build: 'Build any of your libraries (packages) for production use',
11
12
  components: 'Build your component library',
12
13
  vueComponents: 'Build your Vue component library',
13
14
  webComponents: 'Build your framework agnostic web component library',
14
15
  elements: 'An alias to the -w flag',
16
+ buddy: 'Build the Buddy binary',
15
17
  functions: 'Build your function library',
16
18
  desktop: 'Build the Desktop Application',
17
19
  pages: 'Build your frontend',
@@ -23,7 +25,7 @@ export function build(buddy: CLI) {
23
25
  }
24
26
 
25
27
  buddy
26
- .command('build', 'Automagically build any of your libraries/packages for production use. Select any of the following packages')
28
+ .command('build [type]', descriptions.build)
27
29
  .option('-c, --components', descriptions.components)
28
30
  .option('-v, --vue-components', descriptions.vueComponents) // these are automatically built with your -c option as well
29
31
  .option('-w, --web-components', descriptions.webComponents) // these are automatically built with your -c option as well
@@ -31,19 +33,52 @@ export function build(buddy: CLI) {
31
33
  .option('-f, --functions', descriptions.functions)
32
34
  .option('-p, --views', descriptions.pages)
33
35
  .option('-d, --docs', descriptions.docs)
36
+ .option('-b, --buddy', descriptions.buddy, { default: false })
34
37
  .option('-s, --stacks', descriptions.framework, { default: false })
35
38
  .option('-p, --project', descriptions.project, { default: false })
36
39
  .option('--verbose', descriptions.verbose, { default: false })
37
- .action(async (options: BuildOptions) => {
40
+ .action(async (server: string | undefined, options: BuildOptions) => {
41
+ switch (server) {
42
+ case 'components':
43
+ options.components = true
44
+ break
45
+ case 'vue':
46
+ options.vueComponents = true
47
+ break
48
+ case 'web-components':
49
+ options.webComponents = true
50
+ break
51
+ case 'functions':
52
+ options.functions = true
53
+ break
54
+ case 'views':
55
+ options.views = true
56
+ break
57
+ case 'docs':
58
+ options.docs = true
59
+ break
60
+ case 'buddy':
61
+ options.buddy = true
62
+ break
63
+ case 'cli':
64
+ options.buddy = true
65
+ break
66
+ case 'stacks':
67
+ options.stacks = true
68
+ break
69
+ default:
70
+ break
71
+ }
72
+
38
73
  if (hasNoOptions(options)) {
39
74
  let answers = await prompt.require()
40
75
  .multiselect(descriptions.select, {
41
76
  options: [
42
77
  { label: 'Components', value: 'components' },
43
78
  // { label: 'Vue Components', value: 'vue-components' },
44
- // { label: 'Web Components', value: 'web-components' },
79
+ { label: 'Web Components', value: 'web-components' },
45
80
  { label: 'Functions', value: 'functions' },
46
- { label: 'Pages', value: 'pages' },
81
+ { label: 'Views', value: 'views' },
47
82
  { label: 'Documentation', value: 'docs' },
48
83
  ],
49
84
  })
@@ -65,6 +100,7 @@ export function build(buddy: CLI) {
65
100
 
66
101
  buddy
67
102
  .command('build:components', 'Automagically build component libraries for production use & npm/CDN distribution')
103
+ .alias('prod:components')
68
104
  .option('-c, --components', descriptions.components, { default: true })
69
105
  .option('-p, --project', descriptions.project, { default: false })
70
106
  .option('--verbose', descriptions.verbose, { default: false })
@@ -74,7 +110,8 @@ export function build(buddy: CLI) {
74
110
 
75
111
  buddy
76
112
  .command('build:cli', 'Automagically build the CLI')
77
- .option('-c, --components', descriptions.components, { default: true })
113
+ .alias('prod:cli')
114
+ .option('-b, --buddy', descriptions.buddy, { default: true })
78
115
  .option('-p, --project', descriptions.project, { default: false })
79
116
  .option('--verbose', descriptions.verbose, { default: false })
80
117
  .action(async (options: BuildOptions) => {
@@ -92,6 +129,9 @@ export function build(buddy: CLI) {
92
129
 
93
130
  buddy
94
131
  .command('build:vue-components', 'Automagically build Vue component library for npm/CDN distribution')
132
+ .alias('build:vue')
133
+ .alias('prod:vue-components')
134
+ .alias('prod:vue')
95
135
  .option('-v, --vue-components', descriptions.vueComponents, { default: true })
96
136
  .option('-p, --project', descriptions.project, { default: false })
97
137
  .option('--verbose', descriptions.verbose, { default: false })
@@ -102,17 +142,21 @@ export function build(buddy: CLI) {
102
142
 
103
143
  buddy
104
144
  .command('build:web-components', 'Automagically build Web Component library for npm/CDN distribution')
145
+ .alias('build:wc')
146
+ .alias('prod:web-components')
147
+ .alias('prod:wc')
105
148
  .option('-w, --web-components', descriptions.webComponents, { default: true })
106
149
  .option('-p, --project', descriptions.project, { default: false })
107
150
  .option('--verbose', descriptions.verbose, { default: false })
108
- .alias('build:elements')
109
- .alias('build:wc')
110
151
  .action(async (options: BuildOptions) => {
111
152
  await runAction(Action.BuildWebComponentLib, options)
112
153
  })
113
154
 
114
155
  buddy
115
156
  .command('build:docs', 'Automagically build your documentation site.')
157
+ .alias('prod:docs')
158
+ .alias('build:documentation')
159
+ .alias('prod:documentation')
116
160
  .option('-d, --docs', descriptions.docs, { default: true })
117
161
  .option('-p, --project', descriptions.project, { default: false })
118
162
  .option('--verbose', descriptions.verbose, { default: false })
@@ -123,7 +167,7 @@ export function build(buddy: CLI) {
123
167
  buddy
124
168
  .command('build:core', 'Automagically build the Stacks core.')
125
169
  .option('-p, --project', descriptions.project, { default: false })
126
- .option('--verbose', descriptions.verbose, { default: true })
170
+ .option('--verbose', descriptions.verbose, { default: false })
127
171
  .action(async (options: BuildOptions) => {
128
172
  const startTime = await intro('buddy build:core')
129
173
  const result = await runAction(Action.BuildCore, options)
@@ -133,11 +177,12 @@ export function build(buddy: CLI) {
133
177
  process.exit()
134
178
  }
135
179
 
136
- await outro('Stacks core built successfully', { startTime, useSeconds: true })
180
+ await outro('Core packages built successfully', { startTime, useSeconds: true })
137
181
  })
138
182
 
139
183
  buddy
140
184
  .command('build:desktop', descriptions.desktop)
185
+ .alias('prod:desktop')
141
186
  .option('-p, --project', descriptions.project, { default: false })
142
187
  .option('--verbose', descriptions.verbose, { default: false })
143
188
  .action(async (options: BuildOptions) => {
@@ -179,5 +224,5 @@ export function build(buddy: CLI) {
179
224
  }
180
225
 
181
226
  function hasNoOptions(options: BuildOptions) {
182
- return !options.components && !options.vueComponents && !options.webComponents && !options.elements && !options.functions && !options.pages && !options.docs && !options.stacks
227
+ return !options.components && !options.vueComponents && !options.webComponents && !options.elements && !options.functions && !options.views && !options.docs && !options.stacks && !options.buddy
183
228
  }
@@ -19,7 +19,8 @@ export function lint(buddy: CLI) {
19
19
  .option('--verbose', descriptions.verbose, { default: false })
20
20
  .action(async (options: LintOptions) => {
21
21
  const startTime = await intro('buddy lint')
22
- const result = await runAction(Action.Lint, { ...options })
22
+ const result = await runAction(Action.Lint, options)
23
+
23
24
  // console.log('res', result)
24
25
  if (result.isErr()) {
25
26
  await outro('While running `buddy lint`, there was an issue', { startTime, useSeconds: true }, result.error)
@@ -10,7 +10,7 @@ export function upgrade(buddy: CLI) {
10
10
  const descriptions = {
11
11
  command: 'Upgrade dependencies, framework, package manager, JS/TS runtime',
12
12
  framework: 'Upgrade the Stacks framework',
13
- dependencies: 'Upgrade your dependencies',
13
+ dependencies: 'Upgrade your dependencies (pkgx.yaml & package.json)',
14
14
  bun: 'Upgrade Bun to the latest version',
15
15
  all: 'Upgrade Node, package manager, project dependencies, and framework',
16
16
  force: 'Overwrite possible local updates with remote framework updates',
@@ -54,7 +54,7 @@ export function upgrade(buddy: CLI) {
54
54
  options = answers.reduce((a: any, v: any) => ({ ...a, [v]: true }), {})
55
55
  }
56
56
 
57
- const result = await runAction(Action.Upgrade, { ...options })
57
+ const result = await runAction(Action.Upgrade, options)
58
58
 
59
59
  if (result.isErr()) {
60
60
  await outro('While running the buddy:upgrade command, there was an issue', { startTime: perf, useSeconds: true }, result.error)
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/build",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
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.41",
4
+ "version": "0.58.44",
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.41",
4
+ "version": "0.58.44",
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.41",
4
+ "version": "0.58.44",
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.41",
4
+ "version": "0.58.44",
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.41",
4
+ "version": "0.58.44",
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.41",
4
+ "version": "0.58.44",
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.41",
4
+ "version": "0.58.44",
5
5
  "description": "Caching the Stacks way.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -56,7 +56,7 @@
56
56
  "@stacksjs/config": "workspace:*"
57
57
  },
58
58
  "optionalDependencies": {
59
- "@aws-sdk/client-dynamodb": "^3.501.0",
59
+ "@aws-sdk/client-dynamodb": "^3.502.0",
60
60
  "ioredis": "^5.3.2"
61
61
  },
62
62
  "devDependencies": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/chat",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
5
5
  "description": "Easily interact with chat APIs.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -14,7 +14,7 @@ async function installStack(name, options) {
14
14
  // src/cli.ts
15
15
  import cac from "cac";
16
16
  // package.json
17
- var version = "0.58.41";
17
+ var version = "0.58.44";
18
18
 
19
19
  // src/cli.ts
20
20
  function cli(name, options) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/cli",
3
3
  "type": "module",
4
- "version": "0.58.41",
4
+ "version": "0.58.44",
5
5
  "description": "TypeScript framework for CLI artisans. Build beautiful console apps with ease.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,5 +1,9 @@
1
1
  import { log, runCommand } from '@stacksjs/cli'
2
2
 
3
+ await runCommand('bun build ./src/index.ts --outfile ./dist/index.js --outdir ./dist/ --external @aws-sdk/client-cloudformation --external @aws-sdk/client-cloudwatch-logs --external @aws-sdk/client-ec2 --external @aws-sdk/client-efs --external @aws-sdk/client-iam --external @aws-sdk/client-ssm --external @aws-sdk/lambda --external @aws-sdk/client-route-53-domains --external @aws-sdk/client-s3 --external @stacksjs/config --external @stacksjs/error-handling --external @stacksjs/logging --external @stacksjs/path --external @stacksjs/utils --external @stacksjs/strings --external aws-cdk-lib --external constructs --external @stacksjs/env --external @smithy/types --external @smithy/protocol-http --external @aws-sdk/middleware-logger --external @aws-sdk/middleware-recursion-detection --external @aws-sdk/middleware-host-header --external @smithy/property-provider --external @aws-crypto/crc32 --external @smithy/util-hex-encoding --external @smithy/smithy-client --external @smithy/signature-v4 --external @smithy/util-endpoints --external @aws-sdk/util-endpoints --external @smithy/util-middleware --external @aws-sdk/middleware-user-agent --external @smithy/util-config-provider --external @smithy/config-resolver --external @smithy/middleware-content-length --external @smithy/middleware-endpoint --external @smithy/util-retry --external @smithy/service-error-classification --external @smithy/middleware-retry --external @smithy/core --external @aws-sdk/core --external @smithy/middleware-serde --external fast-xml-parser --external @smithy/shared-ini-file-loader --external @smithy/credential-provider-imds --external @aws-sdk/credential-provider-env --external @aws-sdk/client-sso --external @aws-sdk/credential-provider-sso --external @aws-sdk/credential-provider-ini --external @aws-sdk/credential-provider-process --external @aws-sdk/credential-provider-web-identity --external universalify --external graceful-fs --external fs-extra --external fast-glob --external kleur --external @stacksjs/cli --external @aws-sdk/middleware-signing --external @smithy/eventstream-serde-config-resolver --external @aws-sdk/client-lambda --target bun', {
4
+ cwd: import.meta.dir,
5
+ })
6
+
3
7
  const result = await runCommand('bun build ./src/edge/origin-request.ts --outfile ./dist/origin-request.js --outdir ./dist/', {
4
8
  cwd: import.meta.dir,
5
9
  })