stacks 0.58.28 → 0.58.30

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 (233) hide show
  1. package/core/README.md +1 -1
  2. package/core/actions/dist/src/deploy/index.js +1 -1
  3. package/core/actions/dist/src/dev/components.js +1 -1
  4. package/core/actions/dist/src/dev/index.js +10 -0
  5. package/core/actions/dist/src/generate/lib-entries.js +3 -3
  6. package/core/actions/dist/src/helpers/lib-entries.js +3 -3
  7. package/core/actions/dist/src/index.js +10 -0
  8. package/core/actions/dist/src/lint/fix.js +1 -1
  9. package/core/actions/dist/src/release.js +8 -0
  10. package/core/actions/dist/src/upgrade.js +1 -1
  11. package/core/actions/package.json +1 -1
  12. package/core/actions/src/build/docs.ts +7 -0
  13. package/core/actions/src/deploy/index.ts +1 -1
  14. package/core/actions/src/dev/api.ts +2 -2
  15. package/core/actions/src/dev/components.ts +1 -1
  16. package/core/actions/src/dev/dashboard.ts +7 -0
  17. package/core/actions/src/dev/desktop.ts +3 -3
  18. package/core/actions/src/dev/index.ts +10 -0
  19. package/core/actions/src/dev/system-tray.ts +6 -0
  20. package/core/actions/src/helpers/lib-entries.ts +3 -3
  21. package/core/actions/src/lint/fix.ts +1 -1
  22. package/core/ai/package.json +3 -3
  23. package/core/alias/package.json +1 -1
  24. package/core/analytics/package.json +1 -1
  25. package/core/api/package.json +1 -1
  26. package/core/arrays/package.json +1 -1
  27. package/core/auth/package.json +1 -1
  28. package/core/buddy/README.md +2 -2
  29. package/core/buddy/dist/{chunk-b75e6db0012faa55.js → chunk-0455e53fab4244b1.js} +1 -4
  30. package/core/buddy/dist/{chunk-fd47b42fb923a4be.js → chunk-61e8f138963fc709.js} +173 -137
  31. package/core/buddy/dist/cli.js +2 -2
  32. package/core/buddy/dist/index.js +2 -2
  33. package/core/buddy/package.json +1 -1
  34. package/core/buddy/src/commands/add.ts +4 -0
  35. package/core/buddy/src/commands/build.ts +12 -1
  36. package/core/buddy/src/commands/changelog.ts +2 -0
  37. package/core/buddy/src/commands/clean.ts +2 -0
  38. package/core/buddy/src/commands/cloud.ts +6 -0
  39. package/core/buddy/src/commands/commit.ts +2 -0
  40. package/core/buddy/src/commands/configure.ts +3 -0
  41. package/core/buddy/src/commands/create.ts +8 -8
  42. package/core/buddy/src/commands/deploy.ts +24 -23
  43. package/core/buddy/src/commands/dev.ts +50 -10
  44. package/core/buddy/src/commands/dns.ts +2 -0
  45. package/core/buddy/src/commands/domains.ts +2 -0
  46. package/core/buddy/src/commands/example.ts +4 -0
  47. package/core/buddy/src/commands/fresh.ts +2 -0
  48. package/core/buddy/src/commands/generate.ts +12 -3
  49. package/core/buddy/src/commands/http.ts +2 -0
  50. package/core/buddy/src/commands/install.ts +2 -0
  51. package/core/buddy/src/commands/key.ts +4 -2
  52. package/core/buddy/src/commands/lint.ts +3 -0
  53. package/core/buddy/src/commands/make.ts +11 -1
  54. package/core/buddy/src/commands/migrate.ts +3 -0
  55. package/core/buddy/src/commands/prepublish.ts +2 -0
  56. package/core/buddy/src/commands/release.ts +2 -0
  57. package/core/buddy/src/commands/seed.ts +2 -0
  58. package/core/buddy/src/commands/setup.ts +33 -34
  59. package/core/buddy/src/commands/test.ts +2 -0
  60. package/core/buddy/src/commands/tinker.ts +2 -0
  61. package/core/buddy/src/commands/types.ts +3 -0
  62. package/core/buddy/src/commands/upgrade.ts +6 -0
  63. package/core/build/package.json +1 -1
  64. package/core/bun-create/bud/package.json +3 -2
  65. package/core/bun-create/buddy/package.json +2 -2
  66. package/core/bun-create/stack/package.json +2 -2
  67. package/core/bun-create/stacks/package.json +2 -2
  68. package/core/bun-create/stx/package.json +2 -2
  69. package/core/bun-plugin-yaml/dist/index.js +1 -19
  70. package/core/bun-plugin-yaml/package.json +1 -1
  71. package/core/bun-plugin-yaml/src/index.ts +1 -1
  72. package/core/cache/package.json +2 -2
  73. package/core/chat/package.json +1 -1
  74. package/core/cli/dist/index.js +24 -23
  75. package/core/cli/package.json +1 -1
  76. package/core/cli/src/helpers.ts +21 -31
  77. package/core/cli/src/run.ts +9 -7
  78. package/core/cloud/buddy +2 -0
  79. package/core/cloud/package.json +33 -33
  80. package/core/cloud/src/cloud/ai.ts +45 -36
  81. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package-lock.json +10 -10
  82. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +2 -2
  83. package/core/cloud/src/cloud/cdn.ts +44 -5
  84. package/core/cloud/src/cloud/cli.ts +45 -0
  85. package/core/cloud/src/cloud/compute.ts +1 -1
  86. package/core/cloud/src/cloud/index.ts +6 -1
  87. package/core/cloud/src/cloud/lambda/cli-setup/index.js +67 -0
  88. package/core/cloud/src/index.ts +1 -0
  89. package/core/cloud/src/runtime/example/lambda.ts +1 -1
  90. package/core/cloud/src/runtime/runtime.ts +1 -0
  91. package/core/cloud/src/runtime/server.ts +1 -1
  92. package/core/collections/package.json +1 -1
  93. package/core/config/dist/index.js +130 -122
  94. package/core/config/package.json +1 -1
  95. package/core/config/src/overrides.ts +0 -2
  96. package/core/database/package.json +2 -2
  97. package/core/database/src/kysely-bun-worker/driver.ts +1 -0
  98. package/core/database/src/kysely-bun-worker/worker.ts +1 -1
  99. package/core/datetime/package.json +1 -1
  100. package/core/desktop/dist/index.js +6 -0
  101. package/core/desktop/package.json +5 -5
  102. package/core/desktop/src/index.ts +2 -0
  103. package/core/desktop/src/system-tray.ts +1 -0
  104. package/core/development/package.json +1 -1
  105. package/core/dns/package.json +7 -7
  106. package/core/docs/build.ts +1 -1
  107. package/core/docs/dist/index.js +29878 -9995
  108. package/core/docs/package.json +6 -5
  109. package/core/docs/src/index.ts +7 -1
  110. package/core/docs/src/meta.ts +32 -0
  111. package/core/docs/src/scripts/pwa.ts +116 -0
  112. package/core/email/email-forwarder.cjs +1 -0
  113. package/core/email/package.json +3 -3
  114. package/core/email/src/server/converter.ts +1 -0
  115. package/core/email/src/server/inbound.ts +1 -0
  116. package/core/email/src/server/outbound.ts +6 -4
  117. package/core/enums/dist/index.js +4 -2
  118. package/core/enums/package.json +1 -1
  119. package/core/enums/src/index.ts +4 -2
  120. package/core/env/package.json +1 -1
  121. package/core/error-handling/package.json +1 -1
  122. package/core/eslint-config/package.json +18 -18
  123. package/core/eslint-config/src/configs/comments.ts +1 -1
  124. package/core/eslint-config/src/configs/imports.ts +9 -0
  125. package/core/eslint-config/src/configs/svelte.ts +1 -0
  126. package/core/eslint-config/src/configs/unicorn.ts +1 -1
  127. package/core/eslint-config/src/configs/vue.ts +0 -1
  128. package/core/eslint-config/src/factory.ts +2 -8
  129. package/core/events/package.json +1 -1
  130. package/core/faker/package.json +2 -2
  131. package/core/git/dist/index.js +40 -0
  132. package/core/git/package.json +3 -3
  133. package/core/git/src/index.ts +62 -0
  134. package/core/health/package.json +1 -1
  135. package/core/http/package.json +1 -1
  136. package/core/lint/package.json +1 -1
  137. package/core/logging/dist/index.js +0 -6
  138. package/core/logging/package.json +1 -1
  139. package/core/music/package.json +3 -3
  140. package/core/notifications/package.json +2 -2
  141. package/core/objects/package.json +1 -1
  142. package/core/orm/package.json +1 -1
  143. package/core/path/dist/index.js +6 -3
  144. package/core/path/package.json +1 -1
  145. package/core/path/src/index.ts +7 -3
  146. package/core/payments/dist/index.js +2 -5
  147. package/core/payments/package.json +3 -3
  148. package/core/push/package.json +1 -1
  149. package/core/query-builder/package.json +1 -1
  150. package/core/queue/package.json +1 -1
  151. package/core/raycast/package.json +5 -0
  152. package/core/raycast/src/index.ts +0 -0
  153. package/core/realtime/package.json +1 -1
  154. package/core/repl/package.json +1 -1
  155. package/core/router/dist/index.js +16 -496
  156. package/core/router/package.json +1 -1
  157. package/core/router/src/middleware.ts +16 -14
  158. package/core/scheduler/package.json +1 -1
  159. package/core/search-engine/package.json +2 -2
  160. package/core/security/dist/index.js +3 -6
  161. package/core/security/package.json +2 -2
  162. package/core/server/dist/index.js +6 -2
  163. package/core/server/package.json +2 -2
  164. package/core/server/src/config.ts +14 -9
  165. package/core/signals/package.json +1 -1
  166. package/core/slug/package.json +1 -1
  167. package/core/sms/package.json +1 -1
  168. package/core/storage/dist/index.js +28 -10
  169. package/core/storage/package.json +1 -1
  170. package/core/storage/src/files.ts +10 -2
  171. package/core/storage/src/zip.ts +1 -1
  172. package/core/strings/package.json +3 -3
  173. package/core/stx +2 -0
  174. package/core/tables/package.json +3 -3
  175. package/core/testing/package.json +3 -3
  176. package/core/tinker/package.json +1 -1
  177. package/core/tsconfig.json +4 -9
  178. package/core/tunnel/package.json +1 -1
  179. package/core/types/dist/index.js +3 -1
  180. package/core/types/package.json +13 -13
  181. package/core/types/src/cli.ts +3 -3
  182. package/core/types/src/cloud.ts +4 -1
  183. package/core/types/src/dns.ts +1 -1
  184. package/core/types/src/native.ts +0 -0
  185. package/core/types/src/stacks.ts +0 -10
  186. package/core/ui/package.json +8 -8
  187. package/core/utils/dist/index.js +1 -1
  188. package/core/utils/package.json +1 -1
  189. package/core/validation/package.json +1 -1
  190. package/core/vite/README.md +1 -1
  191. package/core/vite/build.ts +1 -1
  192. package/core/vite/dist/index.js +211 -203
  193. package/core/vite/package.json +5 -5
  194. package/core/vite/src/components.ts +1 -1
  195. package/core/vite/src/dashboard.ts +100 -0
  196. package/core/vite/src/desktop.ts +2 -58
  197. package/core/vite/src/example-vue.ts +1 -1
  198. package/core/vite/src/example-wc.ts +1 -1
  199. package/core/vite/src/functions.ts +1 -1
  200. package/core/vite/src/index.ts +9 -11
  201. package/core/vite/src/plugin/auto-imports.ts +1 -1
  202. package/core/vite/src/plugin/layouts.ts +6 -7
  203. package/core/vite/src/plugin/router.ts +3 -1
  204. package/core/vite/src/system-tray.ts +100 -0
  205. package/core/vite/src/views.ts +13 -2
  206. package/core/vite/src/web-components.ts +1 -1
  207. package/core/whois/dist/index.js +1 -2
  208. package/core/whois/package.json +1 -1
  209. package/core/whois/src/index.ts +10 -8
  210. package/core/x-ray/package.json +1 -1
  211. package/core/zsh-buddy/README.md +51 -0
  212. package/core/zsh-buddy/package.json +29 -0
  213. package/ide/dictionary.txt +12 -0
  214. package/ide/jetbrains/.idea/stacks.iml +0 -1
  215. package/ide/vscode/.vscode/settings.json +7 -2
  216. package/ide/vscode/package.json +2 -4
  217. package/package.json +12 -7
  218. package/core/cloud/src/server/.dockerignore +0 -15
  219. package/core/cloud/src/server/Dockerfile +0 -21
  220. package/core/cloud/src/server/index.ts +0 -3
  221. package/core/cloud/src/server/package.json +0 -12
  222. package/core/cloud/src/server/runtime.ts +0 -828
  223. package/core/scripts/build +0 -58
  224. package/core/scripts/ensure +0 -33
  225. package/core/scripts/fresh +0 -14
  226. package/core/scripts/link +0 -14
  227. package/core/scripts/move-built-src-files.ts +0 -28
  228. package/core/scripts/move-dts-files.ts +0 -35
  229. package/core/scripts/publish +0 -43
  230. package/core/scripts/setup +0 -176
  231. package/core/tables/vite.config.ts +0 -84
  232. package/core/vite/src/plugin/index.ts +0 -21
  233. /package/core/vite/src/{stacks.ts → plugins.ts} +0 -0
@@ -9,7 +9,7 @@ function config(options) {
9
9
  host: "localhost",
10
10
  port: 3334
11
11
  },
12
- admin: {
12
+ dashboard: {
13
13
  host: "localhost",
14
14
  port: 3335
15
15
  },
@@ -28,9 +28,13 @@ function config(options) {
28
28
  example: {
29
29
  host: "localhost",
30
30
  port: 3339
31
+ },
32
+ "system-tray": {
33
+ host: "localhost",
34
+ port: 3340
31
35
  }
32
36
  };
33
- if (options.type && ["frontend", "api", "library", "desktop", "admin", "docs", "example"].includes(options.type)) {
37
+ if (options.type && ["frontend", "api", "library", "desktop", "docs", "example", "dashboard", "system-tray"].includes(options.type)) {
34
38
  return {
35
39
  host: serversMap[options.type].host,
36
40
  port: serversMap[options.type].port,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/server",
3
3
  "type": "module",
4
- "version": "0.58.28",
4
+ "version": "0.58.30",
5
5
  "description": "Local development and production-ready.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -59,7 +59,7 @@
59
59
  "@stacksjs/path": "workspace:*",
60
60
  "@stacksjs/router": "workspace:*",
61
61
  "@stacksjs/validation": "workspace:*",
62
- "vite": "^5.0.11"
62
+ "vite": "^5.0.12"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@stacksjs/development": "workspace:*"
@@ -1,5 +1,5 @@
1
1
  interface ServerOptions {
2
- type?: 'frontend' | 'api' | 'library' | 'desktop' | 'admin' | 'docs' | 'example'
2
+ type?: 'frontend' | 'api' | 'library' | 'desktop' | 'docs' | 'example' | 'dashboard' | 'system-tray'
3
3
  host?: string
4
4
  port?: number
5
5
  open?: boolean
@@ -7,43 +7,48 @@ interface ServerOptions {
7
7
 
8
8
  export function config(options: ServerOptions) {
9
9
  const serversMap = {
10
- frontend: {
10
+ 'frontend': {
11
11
  host: 'localhost',
12
12
  port: 3333,
13
13
  },
14
14
 
15
- api: {
15
+ 'api': {
16
16
  host: 'localhost',
17
17
  port: 3334,
18
18
  },
19
19
 
20
- admin: {
20
+ 'dashboard': {
21
21
  host: 'localhost',
22
22
  port: 3335,
23
23
  },
24
24
 
25
- library: { // component library
25
+ 'library': { // component library
26
26
  host: 'localhost',
27
27
  port: 3336,
28
28
  },
29
29
 
30
- desktop: {
30
+ 'desktop': {
31
31
  host: 'localhost',
32
32
  port: 3337,
33
33
  },
34
34
 
35
- docs: {
35
+ 'docs': {
36
36
  host: 'localhost',
37
37
  port: 3338,
38
38
  },
39
39
 
40
- example: {
40
+ 'example': {
41
41
  host: 'localhost',
42
42
  port: 3339,
43
43
  },
44
+
45
+ 'system-tray': {
46
+ host: 'localhost',
47
+ port: 3340,
48
+ },
44
49
  }
45
50
 
46
- if (options.type && ['frontend', 'api', 'library', 'desktop', 'admin', 'docs', 'example'].includes(options.type)) {
51
+ if (options.type && ['frontend', 'api', 'library', 'desktop', 'docs', 'example', 'dashboard', 'system-tray'].includes(options.type)) {
47
52
  return {
48
53
  host: serversMap[options.type].host,
49
54
  port: serversMap[options.type].port,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/signals",
3
3
  "type": "module",
4
- "version": "0.58.28",
4
+ "version": "0.58.30",
5
5
  "description": "The Stacks signals integration, based on Maverick.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/slug",
3
3
  "type": "module",
4
- "version": "0.58.28",
4
+ "version": "0.58.30",
5
5
  "description": "The Stacks slug functionality.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/sms",
3
3
  "type": "module",
4
- "version": "0.58.28",
4
+ "version": "0.58.30",
5
5
  "description": "The Stacks SMS integration. Painlessly create & manage your inboxes, templates, and send sms.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -75,9 +75,15 @@ async function writeTextFile(file) {
75
75
  function isFile(path2) {
76
76
  return fs.existsSync(path2);
77
77
  }
78
+ function doesExist(path2) {
79
+ return !isFile(path2) || !isFolder(path2);
80
+ }
81
+ function doesNotExist(path2) {
82
+ return !isFile(path2) && !isFolder(path2);
83
+ }
78
84
  function hasFiles(folder) {
79
85
  try {
80
- return fs.default.readdirSync(folder).length > 0;
86
+ return fs.readdirSync(folder).length > 0;
81
87
  } catch (err) {
82
88
  return false;
83
89
  }
@@ -142,7 +148,7 @@ var files = {
142
148
  };
143
149
  // src/folders.ts
144
150
  import {join as join3} from "@stacksjs/path";
145
- function isFolder(path3) {
151
+ function isFolder2(path3) {
146
152
  try {
147
153
  return fs.statSync(path3).isDirectory();
148
154
  } catch {
@@ -150,10 +156,10 @@ function isFolder(path3) {
150
156
  }
151
157
  }
152
158
  function isDirectory(path3) {
153
- return isFolder(path3);
159
+ return isFolder2(path3);
154
160
  }
155
161
  function isDir(path3) {
156
- return isFolder(path3);
162
+ return isFolder2(path3);
157
163
  }
158
164
  function doesFolderExist(path3) {
159
165
  return fs.existsSync(path3);
@@ -174,7 +180,7 @@ function getFolders(dir) {
174
180
  });
175
181
  }
176
182
  var folders = {
177
- isFolder,
183
+ isFolder: isFolder2,
178
184
  doesFolderExist,
179
185
  createFolder: createFolder2,
180
186
  getFolders
@@ -274,7 +280,7 @@ import {italic, log} from "@stacksjs/cli";
274
280
  function deleteFolder(path6) {
275
281
  return new Promise((resolve, reject) => {
276
282
  try {
277
- if (isFolder(path6)) {
283
+ if (isFolder2(path6)) {
278
284
  fs.rmSync(path6, { recursive: true, force: true });
279
285
  return resolve(ok(`Deleted ${path6}`));
280
286
  }
@@ -323,7 +329,7 @@ async function deleteEmptyFolders(dir) {
323
329
  const files3 = fs.readdirSync(dir);
324
330
  for (const file of files3) {
325
331
  const p3 = join(dir, file);
326
- if (isFolder(p3)) {
332
+ if (isFolder2(p3)) {
327
333
  if (fs.readdirSync(p3).length === 0)
328
334
  fs.rmSync(p3, { recursive: true, force: true });
329
335
  else
@@ -365,7 +371,7 @@ async function deleteGlob(path6) {
365
371
  async function del(path6) {
366
372
  if (isFile(path6))
367
373
  return await deleteFile(path6);
368
- if (isFolder(path6))
374
+ if (isFolder2(path6))
369
375
  return await deleteFolder(path6);
370
376
  if (path6.includes("*"))
371
377
  return await deleteGlob(path6);
@@ -494,7 +500,7 @@ __export(exports_storage, {
494
500
  },
495
501
  isFolder: () => {
496
502
  {
497
- return isFolder;
503
+ return isFolder2;
498
504
  }
499
505
  },
500
506
  isFile: () => {
@@ -592,11 +598,21 @@ __export(exports_storage, {
592
598
  return exists;
593
599
  }
594
600
  },
601
+ doesNotExist: () => {
602
+ {
603
+ return doesNotExist;
604
+ }
605
+ },
595
606
  doesFolderExist: () => {
596
607
  {
597
608
  return doesFolderExist;
598
609
  }
599
610
  },
611
+ doesExist: () => {
612
+ {
613
+ return doesExist;
614
+ }
615
+ },
600
616
  deleteGlob: () => {
601
617
  {
602
618
  return deleteGlob;
@@ -753,7 +769,7 @@ export {
753
769
  readJsonFile,
754
770
  put,
755
771
  mkdirSync,
756
- isFolder,
772
+ isFolder2 as isFolder,
757
773
  isFile,
758
774
  isDirectoryEmpty,
759
775
  isDirectory,
@@ -778,7 +794,9 @@ export {
778
794
  files,
779
795
  existsSync,
780
796
  exists,
797
+ doesNotExist,
781
798
  doesFolderExist,
799
+ doesExist,
782
800
  deleteGlob,
783
801
  deleteFolder,
784
802
  deleteFiles,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/storage",
3
3
  "type": "module",
4
- "version": "0.58.28",
4
+ "version": "0.58.30",
5
5
  "description": "The Stacks file system.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,4 +1,4 @@
1
- import type { BunFile } from 'bun'
1
+ import type { BunFile, PathLike } from 'node:bun'
2
2
  import type { JsonFile, PackageJson, TextFile } from '@stacksjs/types'
3
3
  import { detectIndent, detectNewline } from '@stacksjs/strings'
4
4
  import { dirname, join, path as p } from '@stacksjs/path'
@@ -95,12 +95,20 @@ export function isFile(path: string): boolean {
95
95
  return fs.existsSync(path)
96
96
  }
97
97
 
98
+ export function doesExist(path: string): boolean {
99
+ return !isFile(path) || !isFolder(path)
100
+ }
101
+
102
+ export function doesNotExist(path: string): boolean {
103
+ return !isFile(path) && !isFolder(path)
104
+ }
105
+
98
106
  /**
99
107
  * Determine whether a folder has any files in it.
100
108
  */
101
109
  export function hasFiles(folder: string): boolean {
102
110
  try {
103
- return fs.default.readdirSync(folder).length > 0
111
+ return fs.readdirSync(folder).length > 0
104
112
  }
105
113
  catch (err) {
106
114
  return false
@@ -1,4 +1,4 @@
1
- import type { ZlibCompressionOptions } from 'bun'
1
+ import type { ZlibCompressionOptions } from 'node:bun'
2
2
  import { runCommand } from '@stacksjs/cli'
3
3
 
4
4
  interface ZipOptions {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/strings",
3
3
  "type": "module",
4
- "version": "0.58.28",
4
+ "version": "0.58.30",
5
5
  "description": "The Stacks string utilities.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -64,14 +64,14 @@
64
64
  "dependencies": {
65
65
  "@stacksjs/alias": "workspace:*",
66
66
  "@stacksjs/types": "workspace:*",
67
- "change-case": "^5.4.1",
67
+ "change-case": "^5.4.2",
68
68
  "detect-indent": "^7.0.1",
69
69
  "detect-newline": "^4.0.1",
70
70
  "macroable": "^7.0.2",
71
71
  "pluralize": "^8.0.0",
72
72
  "slugify": "^1.6.6",
73
73
  "string-ts": "^2.0.0",
74
- "title-case": "^4.3.0",
74
+ "title-case": "^4.3.1",
75
75
  "validator": "^13.11.0"
76
76
  },
77
77
  "devDependencies": {
package/core/stx ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env bun
2
+ import('./buddy/src/cli')
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stacksjs/tables",
3
- "version": "0.58.28",
3
+ "version": "0.58.30",
4
4
  "description": "The easy & modern way to work with tables. Facet filtering, searching, pagination, ...",
5
5
  "author": "Open Web Labs",
6
6
  "license": "MIT",
@@ -38,10 +38,10 @@
38
38
  "@stacksjs/types": "workspace:*",
39
39
  "@stacksjs/utils": "workspace:*",
40
40
  "@vueform/multiselect": "^2.6.6",
41
- "meilisearch": "^0.36.0"
41
+ "meilisearch": "^0.37.0"
42
42
  },
43
43
  "dependencies": {
44
- "vite": "^5.0.11"
44
+ "vite": "^5.0.12"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@stacksjs/development": "workspace:*"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/testing",
3
3
  "type": "module",
4
- "version": "0.58.28",
4
+ "version": "0.58.30",
5
5
  "description": "The Stacks way of testing.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -51,10 +51,10 @@
51
51
  "prepublishOnly": "bun --bun run build"
52
52
  },
53
53
  "peerDependencies": {
54
- "@playwright/test": "^1.40.1"
54
+ "@playwright/test": "^1.41.1"
55
55
  },
56
56
  "dependencies": {
57
- "@playwright/test": "^1.40.1"
57
+ "@playwright/test": "^1.41.1"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@stacksjs/development": "workspace:*"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/tinker",
3
3
  "type": "module",
4
- "version": "0.58.28",
4
+ "version": "0.58.30",
5
5
  "description": "All you need to tinker.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -13,7 +13,7 @@
13
13
  "paths": {
14
14
  "@stacksjs/*": ["./*/src"],
15
15
  "stacks/*": ["./*/src"],
16
- "buddy": ["./buddy/index.ts"],
16
+ "buddy": ["./buddy/src/index.ts"],
17
17
  "buddy/*": ["./buddy/src/*"],
18
18
  "~/*": ["../../../*"]
19
19
  },
@@ -23,7 +23,8 @@
23
23
  // "vue/ref-macros",
24
24
  "vite-plugin-pages/client",
25
25
  "vite-plugin-pwa/client",
26
- "bun-types"
26
+ "vite-plugin-vue-layouts/client",
27
+ "@intlify/unplugin-vue-i18n/messages"
27
28
  ],
28
29
  "allowImportingTsExtensions": true,
29
30
  "allowJs": true,
@@ -54,13 +55,7 @@
54
55
  "../../../**/*.ts",
55
56
  "../../../*.d.ts",
56
57
  "../../../**/*.d.ts",
57
- "../docs/.vitepress/*",
58
- "../stack/**/*",
59
- "../views/desktop/**/*",
60
- "../views/desktop/*",
61
- "./src/**/*.ts",
62
- "../types/*",
63
- "./scripts/*"
58
+ "../docs/.vitepress/*"
64
59
  ],
65
60
  "exclude": [
66
61
  "../**/cdk.out",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/tunnel",
3
3
  "type": "module",
4
- "version": "0.58.28",
4
+ "version": "0.58.30",
5
5
  "description": "Local development tunnel.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,3 +1,4 @@
1
+ import {createRequire} from "node:module";
1
2
  var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getProtoOf = Object.getPrototypeOf;
@@ -15,6 +16,7 @@ var __toESM = (mod, isNodeMode, target) => {
15
16
  return to;
16
17
  };
17
18
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
19
+ var __require = createRequire(import.meta.url);
18
20
 
19
21
  // /home/runner/work/stacks/stacks/node_modules/slugify/slugify.js
20
22
  var require_slugify = __commonJS((exports, module) => {
@@ -70,7 +72,7 @@ var require_slugify = __commonJS((exports, module) => {
70
72
  // /home/runner/work/stacks/stacks/node_modules/pluralize/pluralize.js
71
73
  var require_pluralize = __commonJS((exports, module) => {
72
74
  (function(root, pluralize) {
73
- if (typeof require === "function" && typeof exports === "object" && typeof module === "object") {
75
+ if (typeof __require === "function" && typeof exports === "object" && typeof module === "object") {
74
76
  module.exports = pluralize();
75
77
  } else if (typeof define === "function" && define.amd) {
76
78
  define(function() {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.58.28",
4
+ "version": "0.58.30",
5
5
  "description": "The Stacks framework types.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -55,32 +55,32 @@
55
55
  "@stacksjs/validation": "workspace:*",
56
56
  "@types/aws4": "^1.11.6",
57
57
  "@types/bcryptjs": "^2.4.6",
58
- "@types/crypto-js": "^4.2.1",
58
+ "@types/bun": "^1.0.4",
59
+ "@types/crypto-js": "^4.2.2",
59
60
  "@types/eslint": "^8.56.2",
60
61
  "@types/fs-extra": "^11.0.4",
61
62
  "@types/markdown-it-link-attributes": "^3.0.4",
62
63
  "@types/minimatch": "^5.1.2",
63
- "@types/node": "^20.11.0",
64
+ "@types/node": "^20.11.9",
64
65
  "@types/nprogress": "^0.2.3",
65
66
  "@vinejs/vine": "^1.7.0",
66
- "bun-types": "canary",
67
67
  "cac": "^6.7.14",
68
68
  "markdown-it": "^14.0.0",
69
- "meilisearch": "^0.36.0",
69
+ "meilisearch": "^0.37.0",
70
70
  "neverthrow": "^6.1.0",
71
71
  "ora": "^8.0.1",
72
- "unocss": "^0.58.3",
73
- "unplugin-auto-import": "^0.17.3",
72
+ "unocss": "^0.58.4",
73
+ "unplugin-auto-import": "^0.17.5",
74
74
  "unplugin-vue-components": "^0.26.0",
75
- "vite": "^5.0.11",
76
- "vite-plugin-inspect": "^0.8.1",
77
- "vite-plugin-pwa": "^0.17.4",
75
+ "vite": "^5.0.12",
76
+ "vite-plugin-inspect": "^0.8.3",
77
+ "vite-plugin-pwa": "^0.17.5",
78
78
  "vite-ssg": "^0.23.6",
79
- "vitepress": "1.0.0-rc.36",
80
- "vue": "^3.4.13"
79
+ "vitepress": "1.0.0-rc.40",
80
+ "vue": "^3.4.15"
81
81
  },
82
82
  "devDependencies": {
83
- "aws-cdk-lib": "^2.121.1",
83
+ "aws-cdk-lib": "^2.124.0",
84
84
  "typescript": "^5.3.3"
85
85
  }
86
86
  }
@@ -1,8 +1,8 @@
1
- import type { BunFile } from 'bun'
1
+ import type { BunFile } from 'node:bun'
2
2
 
3
3
  type ArrayBufferView = TypedArray | DataView
4
4
 
5
- export type { Subprocess, SyncSubprocess } from 'bun'
5
+ export type { Subprocess, SyncSubprocess } from 'node:bun'
6
6
  export type Readable =
7
7
  | 'pipe'
8
8
  | 'inherit'
@@ -197,7 +197,7 @@ export type CreateOptions = {
197
197
  [key in CreateStringOption]: string
198
198
  } & CliOptions
199
199
 
200
- export type DevOption = 'components' | 'docs' | 'frontend' | 'api' | 'desktop' | 'all' | 'email' | 'interactive' | 'verbose'
200
+ export type DevOption = 'components' | 'docs' | 'frontend' | 'api' | 'desktop' | 'all' | 'email' | 'system-tray' | 'interactive' | 'verbose'
201
201
  export type DevOptions = {
202
202
  [key in DevOption]: boolean;
203
203
  } & CliOptions
@@ -1,3 +1,4 @@
1
+ import type { ApiOptions } from './api'
1
2
  import type { FirewallConfig } from './security'
2
3
 
3
4
  export type CountryCode =
@@ -73,9 +74,11 @@ export interface CloudOptions {
73
74
  }
74
75
  }
75
76
 
77
+ api: ApiOptions
78
+
76
79
  ai: boolean
80
+ cli: boolean
77
81
  docs: boolean
78
- api: boolean
79
82
  fileSystem: boolean
80
83
  }
81
84
 
@@ -31,7 +31,7 @@ export interface AAAARecord {
31
31
 
32
32
  export type DnsRecord = ARecord | CNameRecord | MXRecord | TxtRecord | AAAARecord
33
33
 
34
- export type CountryCode = 'AC' | 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AN' | 'AO' | 'AQ' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BV' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TP' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW' | string
34
+ type CountryCode = 'AC' | 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AN' | 'AO' | 'AQ' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BV' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TP' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW' | string
35
35
 
36
36
  export interface ExtraParam {
37
37
  /**
File without changes
@@ -1,7 +1,6 @@
1
1
  import type {
2
2
  AiConfig,
3
3
  AnalyticsConfig,
4
- ApiConfig,
5
4
  AppConfig,
6
5
  BinaryConfig,
7
6
  CacheConfig,
@@ -43,15 +42,6 @@ export interface StacksOptions {
43
42
  */
44
43
  analytics: AnalyticsConfig
45
44
 
46
- /**
47
- * **API Options**
48
- *
49
- * This configuration defines all of your API options. Because Stacks is fully-typed, you
50
- * may hover any of the options below and the definitions will be provided. In case you
51
- * have any questions, feel free to reach out via Discord or GitHub Discussions.
52
- */
53
- api: ApiConfig
54
-
55
45
  /**
56
46
  * **Application Options**
57
47
  *
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/ui",
3
3
  "type": "module",
4
- "version": "0.58.28",
4
+ "version": "0.58.30",
5
5
  "description": "The Stacks UI engine.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -62,9 +62,9 @@
62
62
  "@stacksjs/config": "workspace:*",
63
63
  "@stacksjs/router": "workspace:*",
64
64
  "pinia": "^2.1.7",
65
- "unocss": "^0.58.3",
65
+ "unocss": "^0.58.4",
66
66
  "vite-plugin-vue-layouts": "^0.11.0",
67
- "vue": "^3.4.13",
67
+ "vue": "^3.4.15",
68
68
  "vue-tsc": "^1.8.27"
69
69
  },
70
70
  "dependencies": {
@@ -72,17 +72,17 @@
72
72
  "@iconify-json/heroicons": "^1.1.19",
73
73
  "@iconify-json/heroicons-outline": "^1.1.10",
74
74
  "@iconify-json/heroicons-solid": "^1.1.11",
75
- "@iconify/json": "^2.2.168",
75
+ "@iconify/json": "^2.2.175",
76
76
  "@julr/unocss-preset-forms": "^0.1.0",
77
77
  "@stacksjs/build": "workspace:*",
78
78
  "@stacksjs/config": "workspace:*",
79
79
  "@stacksjs/router": "workspace:*",
80
- "@unhead/vue": "^1.8.9",
80
+ "@unhead/vue": "^1.8.10",
81
81
  "pinia": "^2.1.7",
82
- "unhead": "^1.8.9",
83
- "unocss": "^0.58.3",
82
+ "unhead": "^1.8.10",
83
+ "unocss": "^0.58.4",
84
84
  "vite-plugin-vue-layouts": "^0.11.0",
85
- "vue": "^3.4.13",
85
+ "vue": "^3.4.15",
86
86
  "vue-tsc": "^1.8.27"
87
87
  },
88
88
  "devDependencies": {
@@ -884,7 +884,7 @@ function prettyBytes(number, options) {
884
884
  return prefix + numberString + separator + unit;
885
885
  }
886
886
  // package.json
887
- var version = "0.58.28";
887
+ var version = "0.58.30";
888
888
  export {
889
889
  wordChar,
890
890
  wordBoundary,