stacks 0.58.57 → 0.58.59

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 (184) hide show
  1. package/core/actions/dist/src/build.js +18 -26
  2. package/core/actions/dist/src/bump.js +9 -3
  3. package/core/actions/dist/src/changelog.js +11 -3
  4. package/core/actions/dist/src/dev/index.js +18 -26
  5. package/core/actions/dist/src/generate/index.js +18 -26
  6. package/core/actions/dist/src/helpers/index.js +18 -26
  7. package/core/actions/dist/src/helpers/utils.js +18 -26
  8. package/core/actions/dist/src/index.js +35 -37
  9. package/core/actions/dist/src/lint/fix.js +3 -2
  10. package/core/actions/dist/src/release.js +39 -38
  11. package/core/actions/dist/src/upgrade/index.js +18 -26
  12. package/core/actions/dist/src/upgrade.js +1 -1
  13. package/core/actions/package.json +1 -1
  14. package/core/actions/src/action.ts +11 -3
  15. package/core/actions/src/bump.ts +13 -6
  16. package/core/actions/src/changelog.ts +14 -4
  17. package/core/actions/src/helpers/utils.ts +24 -36
  18. package/core/actions/src/lint/fix.ts +3 -2
  19. package/core/actions/src/release.ts +4 -1
  20. package/core/ai/dist/index.js +31 -29
  21. package/core/ai/package.json +3 -3
  22. package/core/alias/package.json +1 -1
  23. package/core/analytics/package.json +1 -1
  24. package/core/api/dist/index.js +6 -3
  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/dist/chunk-59a9de11428ba763.js +993 -0
  29. package/core/buddy/dist/{chunk-e9c0ec1a3b7be088.js → chunk-7b24d1e3e585766e.js} +594 -563
  30. package/core/buddy/dist/cli.js +3916 -19
  31. package/core/buddy/dist/index.js +2 -5
  32. package/core/buddy/package.json +1 -1
  33. package/core/buddy/src/cli.ts +91 -17
  34. package/core/buddy/src/commands/add.ts +3 -0
  35. package/core/buddy/src/commands/build.ts +42 -27
  36. package/core/buddy/src/commands/changelog.ts +13 -6
  37. package/core/buddy/src/commands/clean.ts +3 -1
  38. package/core/buddy/src/commands/cloud.ts +14 -2
  39. package/core/buddy/src/commands/commit.ts +2 -0
  40. package/core/buddy/src/commands/configure.ts +6 -3
  41. package/core/buddy/src/commands/create.ts +3 -1
  42. package/core/buddy/src/commands/deploy.ts +3 -1
  43. package/core/buddy/src/commands/dev.ts +50 -36
  44. package/core/buddy/src/commands/dns.ts +7 -1
  45. package/core/buddy/src/commands/domains.ts +7 -1
  46. package/core/buddy/src/commands/fresh.ts +4 -2
  47. package/core/buddy/src/commands/generate.ts +36 -26
  48. package/core/buddy/src/commands/http.ts +6 -4
  49. package/core/buddy/src/commands/index.ts +0 -2
  50. package/core/buddy/src/commands/install.ts +3 -1
  51. package/core/buddy/src/commands/key.ts +2 -0
  52. package/core/buddy/src/commands/lint.ts +4 -0
  53. package/core/buddy/src/commands/list.ts +6 -2
  54. package/core/buddy/src/commands/make.ts +52 -30
  55. package/core/buddy/src/commands/migrate.ts +6 -2
  56. package/core/buddy/src/commands/prepublish.ts +3 -0
  57. package/core/buddy/src/commands/release.ts +12 -2
  58. package/core/buddy/src/commands/seed.ts +3 -1
  59. package/core/buddy/src/commands/setup.ts +16 -8
  60. package/core/buddy/src/commands/tinker.ts +3 -1
  61. package/core/buddy/src/commands/types.ts +4 -2
  62. package/core/buddy/src/commands/upgrade.ts +37 -25
  63. package/core/buddy/src/commands/version.ts +7 -0
  64. package/core/build/package.json +1 -1
  65. package/core/bun-create/bud/package.json +1 -1
  66. package/core/bun-create/buddy/package.json +1 -1
  67. package/core/bun-create/stack/package.json +1 -1
  68. package/core/bun-create/stacks/package.json +1 -1
  69. package/core/bun-create/stx/package.json +1 -1
  70. package/core/bun-plugin-yaml/package.json +1 -1
  71. package/core/cache/package.json +2 -2
  72. package/core/chat/package.json +8 -8
  73. package/core/cli/dist/index.js +462 -87
  74. package/core/cli/package.json +1 -1
  75. package/core/cli/src/cli.ts +9 -31
  76. package/core/cli/src/console.ts +1 -1
  77. package/core/cli/src/exec.ts +28 -14
  78. package/core/cli/src/helpers.ts +3 -3
  79. package/core/cli/src/index.ts +1 -1
  80. package/core/cli/src/parse.ts +95 -17
  81. package/core/cli/src/run.ts +7 -7
  82. package/core/cli/src/utils.ts +62 -0
  83. package/core/cloud/dist/index.js +70 -41
  84. package/core/cloud/package.json +32 -32
  85. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package-lock.json +6 -6
  86. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +2 -2
  87. package/core/cloud/src/cloud/queue.ts +96 -55
  88. package/core/cloud/src/cloud/router-layer/nodejs/package.json +2 -2
  89. package/core/collections/package.json +1 -1
  90. package/core/config/dist/index.js +49 -27
  91. package/core/config/package.json +1 -1
  92. package/core/config/src/config.ts +1 -1
  93. package/core/config/src/defaults.ts +28 -14
  94. package/core/config/src/overrides.ts +2 -0
  95. package/core/database/package.json +1 -1
  96. package/core/datetime/package.json +1 -1
  97. package/core/desktop/package.json +9 -9
  98. package/core/development/package.json +1 -1
  99. package/core/dns/package.json +7 -7
  100. package/core/docs/package.json +1 -1
  101. package/core/email/package.json +14 -14
  102. package/core/enums/dist/index.js +2 -2
  103. package/core/enums/package.json +1 -1
  104. package/core/enums/src/index.ts +2 -2
  105. package/core/env/package.json +3 -2
  106. package/core/env/src/utils.ts +1 -0
  107. package/core/error-handling/package.json +1 -1
  108. package/core/eslint-config/package.json +10 -10
  109. package/core/events/package.json +1 -1
  110. package/core/faker/package.json +2 -2
  111. package/core/git/package.json +1 -1
  112. package/core/health/package.json +1 -1
  113. package/core/http/package.json +1 -1
  114. package/core/lint/package.json +1 -1
  115. package/core/logging/build.ts +1 -1
  116. package/core/logging/dist/index.js +10932 -1773
  117. package/core/logging/package.json +1 -1
  118. package/core/logging/src/index.ts +79 -13
  119. package/core/notifications/package.json +23 -23
  120. package/core/objects/package.json +1 -1
  121. package/core/orm/package.json +1 -1
  122. package/core/path/dist/index.js +10 -0
  123. package/core/path/package.json +1 -1
  124. package/core/path/src/index.ts +10 -0
  125. package/core/payments/dist/index.js +34 -10
  126. package/core/payments/package.json +2 -2
  127. package/core/push/package.json +5 -5
  128. package/core/query-builder/package.json +1 -1
  129. package/core/queue/dist/index.js +3 -1
  130. package/core/queue/package.json +1 -1
  131. package/core/queue/src/index.ts +3 -1
  132. package/core/raycast/package.json +1 -1
  133. package/core/realtime/package.json +1 -1
  134. package/core/repl/package.json +1 -1
  135. package/core/router/dist/index.js +517 -14
  136. package/core/router/package.json +1 -1
  137. package/core/router/src/router.ts +10 -3
  138. package/core/scheduler/dist/index.js +4 -0
  139. package/core/scheduler/package.json +1 -1
  140. package/core/scheduler/src/index.ts +1 -0
  141. package/core/scheduler/src/schedule.ts +5 -0
  142. package/core/search-engine/package.json +1 -1
  143. package/core/security/package.json +1 -1
  144. package/core/server/package.json +2 -2
  145. package/core/signals/package.json +1 -1
  146. package/core/slug/package.json +1 -1
  147. package/core/sms/package.json +11 -11
  148. package/core/storage/package.json +1 -1
  149. package/core/strings/package.json +1 -1
  150. package/core/tables/package.json +2 -2
  151. package/core/testing/package.json +1 -1
  152. package/core/tinker/package.json +1 -1
  153. package/core/tunnel/package.json +1 -1
  154. package/core/types/dist/index.js +1787 -6
  155. package/core/types/package.json +7 -7
  156. package/core/types/src/ai.ts +1 -0
  157. package/core/types/src/binary.ts +1 -0
  158. package/core/types/src/cli.ts +13 -3
  159. package/core/types/src/cron-jobs.ts +6 -1
  160. package/core/types/src/docs.ts +5 -1
  161. package/core/types/src/index.ts +1 -0
  162. package/core/types/src/logger.ts +54 -0
  163. package/core/types/src/router.ts +2 -1
  164. package/core/types/src/stacks.ts +10 -0
  165. package/core/types/src/team.ts +1 -1
  166. package/core/ui/package.json +6 -6
  167. package/core/utils/dist/index.js +39 -2
  168. package/core/utils/package.json +2 -2
  169. package/core/utils/src/hash.ts +10 -1
  170. package/core/utils/src/index.ts +1 -0
  171. package/core/utils/src/retry.ts +33 -0
  172. package/core/validation/package.json +1 -1
  173. package/core/vite/dist/index.js +1 -1
  174. package/core/vite/package.json +4 -4
  175. package/core/whois/package.json +1 -1
  176. package/core/x-ray/package.json +1 -1
  177. package/core/zsh-buddy/buddy.plugin.zsh +4 -0
  178. package/core/zsh-buddy/package.json +1 -1
  179. package/ide/dictionary.txt +1 -0
  180. package/ide/vscode/package.json +1 -1
  181. package/package.json +1 -1
  182. package/core/buddy/src/commands/example.ts +0 -66
  183. package/core/buddy/src/commands/inspire.ts +0 -24
  184. package/core/cli/src/utilities.ts +0 -2
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "aws-sdk-layer",
3
- "version": "0.58.53",
3
+ "version": "0.58.58",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "aws-sdk-layer",
9
- "version": "0.58.53",
9
+ "version": "0.58.58",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
- "aws-sdk": "^2.1552.0"
12
+ "aws-sdk": "^2.1555.0"
13
13
  }
14
14
  },
15
15
  "node_modules/available-typed-arrays": {
@@ -24,9 +24,9 @@
24
24
  }
25
25
  },
26
26
  "node_modules/aws-sdk": {
27
- "version": "2.1552.0",
28
- "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1552.0.tgz",
29
- "integrity": "sha512-sRuzlCeSHXUsdLqsV/E+nPrgBn1EI3BoA38D5qfNMRcPTd9j4G8M4AyMymKyNxLoWOKLqz7xFBa801MHflGwEg==",
27
+ "version": "2.1555.0",
28
+ "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1555.0.tgz",
29
+ "integrity": "sha512-hjYs1MQkJxdHnoZm8hypqGy4PQKWVUs19McdXRXWNXr97V0il4xcUpIfvjHQ9x9EjP0p/jyIx9/BtyrR68jnUQ==",
30
30
  "dependencies": {
31
31
  "buffer": "4.9.2",
32
32
  "events": "1.1.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aws-sdk-layer",
3
- "version": "0.58.57",
3
+ "version": "0.58.59",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -10,6 +10,6 @@
10
10
  "test": "echo \"Error: no test specified\" && exit 1"
11
11
  },
12
12
  "dependencies": {
13
- "aws-sdk": "^2.1552.0"
13
+ "aws-sdk": "^2.1555.0"
14
14
  }
15
15
  }
@@ -24,63 +24,39 @@ export class QueueStack {
24
24
 
25
25
  async init() {
26
26
  const jobsDir = path.jobsPath()
27
+ const actionsDir = path.appPath('Actions')
27
28
 
28
- try {
29
- const files = await fs.readdir(jobsDir)
30
-
31
- for (const file of files) {
32
- if (file.endsWith('.ts')) {
33
- const filePath = path.jobsPath(file)
34
-
35
- // Await the loading of the job module
36
- const jobModule = await this.loadJobModule(filePath)
37
-
38
- // Now you can safely access jobModule.default.rate
39
- const rate = jobModule.default.rate || '* * * * *'
40
-
41
- // Rest of your logic here...
42
- // Convert the rate to a Schedule object
43
- const schedule = Schedule.cron(this.cronScheduleFromRate(rate))
44
-
45
- const id = `QueueRule${pascalCase(file.replace('.ts', ''))}`
46
- // Perform operations with the jobModule.default as needed
47
- const rule = new Rule(this.scope, id, {
48
- // schedule to run every second
49
- ruleName: `${this.props.appName}-${this.props.appEnv}-queue-rule-${slug(file.replace('.ts', ''))}`,
50
- schedule,
51
- })
52
-
53
- rule.addTarget(new EcsTask({
54
- cluster: this.props.cluster,
55
- taskDefinition: this.props.taskDefinition,
56
- containerOverrides: [
57
- {
58
- containerName: `${this.props.appName}-${this.props.appEnv}-api`,
59
- environment: [
60
- {
61
- name: 'QUEUE_WORKER',
62
- value: 'true',
63
- },
64
- {
65
- name: 'JOB',
66
- value: file,
67
- },
68
- ],
69
- },
70
- ],
71
-
72
- retryAttempts: 3,
73
-
74
- subnetSelection: {
75
- subnetType: ec2.SubnetType.PUBLIC, // SubnetType.PRIVATE_WITH_EGRESS
76
- },
77
- }))
78
- }
79
- }
29
+ const jobFiles = await fs.readdir(jobsDir)
30
+ const actionFiles = await fs.readdir(actionsDir)
31
+ const jobs = []
32
+
33
+ // then, need to loop through all app/Jobs/*.ts and create a rule for each, potentially overwriting the Schedule.ts jobs
34
+ for (const file of jobFiles) {
35
+ if (!file.endsWith('.ts'))
36
+ continue
37
+
38
+ const jobPath = path.jobsPath(file)
39
+
40
+ // Await the loading of the job module
41
+ const job = await this.loadModule(jobPath)
42
+ this.createQueueRule(job, file)
43
+ jobs.push(job)
80
44
  }
81
- catch (err) {
82
- console.error('Error reading the jobs directory:', err)
45
+
46
+ for (const file of actionFiles) {
47
+ if (!file.endsWith('.ts'))
48
+ continue
49
+
50
+ const actionPath = path.appPath(`Actions/${file}`)
51
+
52
+ // Await the loading of the job module
53
+ const action = await this.loadModule(actionPath)
54
+ this.createQueueRule(action, file)
55
+ jobs.push(action)
83
56
  }
57
+
58
+ // for (const job of jobs)
59
+ // await this.createQueueRule(job, file)
84
60
  }
85
61
 
86
62
  // Helper function to convert a rate string to a cron object for AWS Schedule
@@ -96,9 +72,74 @@ export class QueueStack {
96
72
  }
97
73
  }
98
74
 
99
- async loadJobModule(filePath: string) {
75
+ async loadModule(filePath: string) {
100
76
  const jobModule = await import(filePath)
101
77
 
102
78
  return jobModule
103
79
  }
80
+
81
+ // TODO: narrow any type -> jobs & actions are allowed
82
+ createQueueRule(module: { default: any }, file: string) {
83
+ // Now you can safely access module.default.rate
84
+ const rate = module.default?.rate
85
+
86
+ // if no rate or job is disabled, no need to schedule, skip
87
+ if (!rate || module.default?.enabled === false)
88
+ return
89
+
90
+ // Convert the rate to a Schedule object
91
+ const schedule = Schedule.cron(this.cronScheduleFromRate(rate))
92
+
93
+ const id = `QueueRule${pascalCase(file.replace('.ts', ''))}`
94
+
95
+ // Perform operations with the jobModule.default as needed
96
+ const rule = new Rule(this.scope, id, {
97
+ // schedule to run every second
98
+ ruleName: `${this.props.appName}-${this.props.appEnv}-queue-rule-${slug(file.replace('.ts', ''))}`,
99
+ schedule,
100
+ })
101
+
102
+ rule.addTarget(new EcsTask({
103
+ cluster: this.props.cluster,
104
+ taskDefinition: this.props.taskDefinition,
105
+ containerOverrides: [
106
+ {
107
+ containerName: `${this.props.appName}-${this.props.appEnv}-api`,
108
+ environment: [
109
+ {
110
+ name: 'QUEUE_WORKER',
111
+ value: 'true',
112
+ },
113
+ {
114
+ name: 'JOB',
115
+ value: file,
116
+ },
117
+ {
118
+ name: 'JOB_BACKOFF_FACTOR',
119
+ value: module.default?.backoffFactor,
120
+ },
121
+ {
122
+ name: 'JOB_RETRIES',
123
+ value: module.default?.tries,
124
+ },
125
+ {
126
+ name: 'JOB_INITIAL_DELAY',
127
+ value: module.default?.initialDelay,
128
+ },
129
+ {
130
+ name: 'JOB_JITTER',
131
+ value: module.default?.jitter,
132
+ },
133
+ ],
134
+ },
135
+ ],
136
+
137
+ retryAttempts: 1, // we utilize a custom retry mechanism in the job itself
138
+ // retryAttempts: module.default.tries || 3,
139
+
140
+ subnetSelection: {
141
+ subnetType: ec2.SubnetType.PUBLIC, // SubnetType.PRIVATE_WITH_EGRESS
142
+ },
143
+ }))
144
+ }
104
145
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stacks-router-layer",
3
- "version": "0.58.57",
3
+ "version": "0.58.59",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "MIT",
@@ -10,6 +10,6 @@
10
10
  "test": "echo \"Error: no test specified\" && exit 1"
11
11
  },
12
12
  "dependencies": {
13
- "@stacksjs/router": "^0.58.56"
13
+ "@stacksjs/router": "^0.58.58"
14
14
  }
15
15
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/collections",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.59",
5
5
  "description": "The Stacks collections.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -63,6 +63,11 @@ __export(exports_config, {
63
63
  return notification2;
64
64
  }
65
65
  },
66
+ logger: () => {
67
+ {
68
+ return logger2;
69
+ }
70
+ },
66
71
  localUrl: () => {
67
72
  {
68
73
  return localUrl;
@@ -268,11 +273,6 @@ __export(exports_config, {
268
273
  return app2;
269
274
  }
270
275
  },
271
- api: () => {
272
- {
273
- return api;
274
- }
275
- },
276
276
  analytics: () => {
277
277
  {
278
278
  return analytics;
@@ -289,6 +289,7 @@ __export(exports_config, {
289
289
  import {path as p} from "@stacksjs/path";
290
290
  var defaults_default = {
291
291
  ai: {
292
+ deploy: false,
292
293
  models: [
293
294
  "amazon.titan-embed-text-v1",
294
295
  "amazon.titan-text-express-v1",
@@ -305,13 +306,6 @@ var defaults_default = {
305
306
  analytics: {
306
307
  driver: undefined
307
308
  },
308
- api: {
309
- prefix: "api",
310
- description: "Stacks API",
311
- prewarm: true,
312
- memorySize: 512,
313
- timeout: 30
314
- },
315
309
  app: {
316
310
  name: "Stacks",
317
311
  description: "A Stacks application.",
@@ -342,7 +336,8 @@ var defaults_default = {
342
336
  name: "My Custom CLI",
343
337
  command: "my-custom-cli",
344
338
  description: "Stacks is a full-stack framework for TypeScript.",
345
- source: p.appPath("commands")
339
+ source: p.appPath("commands"),
340
+ deploy: false
346
341
  },
347
342
  cache: {
348
343
  driver: "redis",
@@ -352,7 +347,9 @@ var defaults_default = {
352
347
  redis: {
353
348
  connection: "default",
354
349
  host: "localhost",
355
- port: 6379
350
+ port: 6379,
351
+ username: "",
352
+ password: ""
356
353
  }
357
354
  }
358
355
  },
@@ -383,12 +380,21 @@ var defaults_default = {
383
380
  cookies: [],
384
381
  headers: [],
385
382
  queryStrings: []
383
+ },
384
+ realtimeLogs: {
385
+ enabled: true,
386
+ samplingRate: 2
386
387
  }
387
388
  },
388
- ai: true,
389
- docs: true,
390
- api: true,
391
- fileSystem: true
389
+ api: {
390
+ deploy: false,
391
+ prefix: "api",
392
+ description: "Stacks API",
393
+ prewarm: true,
394
+ memorySize: 512,
395
+ timeout: 30
396
+ },
397
+ fileSystem: false
392
398
  },
393
399
  database: {
394
400
  default: "sqlite",
@@ -413,6 +419,7 @@ var defaults_default = {
413
419
  title: "Stacks",
414
420
  description: "Rapid application, cloud & library framework.",
415
421
  lastUpdated: true,
422
+ deploy: false,
416
423
  themeConfig: {
417
424
  editLink: {
418
425
  pattern: "https://github.com/stacksjs/stacks/edit/main/docs/docs/:path",
@@ -429,9 +436,9 @@ var defaults_default = {
429
436
  name: "Stacks",
430
437
  address: "no-reply@stacksjs.org"
431
438
  },
439
+ mailboxes: [],
432
440
  server: {
433
- scan: true,
434
- mailboxes: []
441
+ scan: true
435
442
  }
436
443
  },
437
444
  git: {
@@ -562,6 +569,11 @@ var defaults_default = {
562
569
  ]
563
570
  }
564
571
  },
572
+ logger: {
573
+ level: 3,
574
+ logFilePath: "storage/logs/console.log",
575
+ errorsPath: "storage/logs/errors.log"
576
+ },
565
577
  notification: {
566
578
  default: "email"
567
579
  },
@@ -686,7 +698,8 @@ var ai_default = {
686
698
  "amazon.titan-text-express-v1",
687
699
  "amazon.titan-text-lite-v1",
688
700
  "meta.llama2-70b-chat-v1"
689
- ]
701
+ ],
702
+ deploy: true
690
703
  };
691
704
 
692
705
  // /home/runner/work/stacks/stacks/config/app.ts
@@ -756,7 +769,8 @@ var cache_default = {
756
769
  var cli_default = {
757
770
  name: "My Custom CLI",
758
771
  command: "custom-cli",
759
- description: "This is an example command to illustrate how to create your own commands. Check out `../app/commands` for more."
772
+ description: "This is an example command to illustrate how to create your own commands. Check out `../app/commands` for more.",
773
+ deploy: true
760
774
  };
761
775
 
762
776
  // /home/runner/work/stacks/stacks/config/cloud.ts
@@ -808,9 +822,6 @@ var cloud_default = {
808
822
  prewarm: 10,
809
823
  timeout: 30
810
824
  },
811
- ai: true,
812
- cli: true,
813
- docs: true,
814
825
  fileSystem: true
815
826
  };
816
827
 
@@ -1175,6 +1186,8 @@ var sidebar = {
1175
1186
  },
1176
1187
  {
1177
1188
  text: "Project",
1189
+ collapsible: true,
1190
+ collapsed: true,
1178
1191
  items: [
1179
1192
  { text: "Roadmap", link: "/project/roadmap" },
1180
1193
  { text: "Contributing", link: "/project/contributing" },
@@ -1189,6 +1202,7 @@ var docs_default = {
1189
1202
  title: "Stacks",
1190
1203
  description: "Rapid application, cloud & library development framework.",
1191
1204
  lastUpdated: true,
1205
+ deploy: true,
1192
1206
  themeConfig: {
1193
1207
  logo: "https://raw.githubusercontent.com/stacksjs/stacks/main/public/logo-transparent.svg?https://raw.githubusercontent.com/stacksjs/stacks/main/public/logo-transparent.svg?asdas",
1194
1208
  nav,
@@ -1357,6 +1371,13 @@ var library_default = {
1357
1371
  }
1358
1372
  };
1359
1373
 
1374
+ // /home/runner/work/stacks/stacks/config/logger.ts
1375
+ var logger_default = {
1376
+ level: 3,
1377
+ logFilePath: "storage/logs/console.log",
1378
+ errorsPath: "storage/logs/errors.log"
1379
+ };
1380
+
1360
1381
  // /home/runner/work/stacks/stacks/config/queue.ts
1361
1382
  var queue_default = {
1362
1383
  default: "sync",
@@ -1489,6 +1510,7 @@ var overrides_default = {
1489
1510
  git: git_default,
1490
1511
  hashing: hashing_default,
1491
1512
  library: library_default,
1513
+ logger: logger_default,
1492
1514
  notification: notification_default,
1493
1515
  queue: queue_default,
1494
1516
  payment: payment_default,
@@ -1691,7 +1713,6 @@ var config = {
1691
1713
  var {
1692
1714
  ai: ai2,
1693
1715
  analytics,
1694
- api,
1695
1716
  app: app2,
1696
1717
  cache: cache2,
1697
1718
  cloud: cloud2,
@@ -1703,6 +1724,7 @@ var {
1703
1724
  git: git2,
1704
1725
  hashing: hashing2,
1705
1726
  library: library2,
1727
+ logger: logger2,
1706
1728
  notification: notification2,
1707
1729
  payment: payment2,
1708
1730
  queue: queue2,
@@ -1724,6 +1746,7 @@ export {
1724
1746
  payment2 as payment,
1725
1747
  overrides_default as overrides,
1726
1748
  notification2 as notification,
1749
+ logger2 as logger,
1727
1750
  localUrl,
1728
1751
  library2 as library,
1729
1752
  hashing2 as hashing,
@@ -1765,7 +1788,6 @@ export {
1765
1788
  cli2 as cli,
1766
1789
  cache2 as cache,
1767
1790
  app2 as app,
1768
- api,
1769
1791
  analytics,
1770
1792
  ai2 as ai
1771
1793
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/config",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.59",
5
5
  "description": "The Stacks config helper methods.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -10,7 +10,6 @@ export const config: StacksOptions = {
10
10
  export const {
11
11
  ai,
12
12
  analytics,
13
- api,
14
13
  app,
15
14
  cache,
16
15
  cloud,
@@ -22,6 +21,7 @@ export const {
22
21
  git,
23
22
  hashing,
24
23
  library,
24
+ logger,
25
25
  notification,
26
26
  payment,
27
27
  queue,
@@ -5,6 +5,7 @@ import type { StacksOptions } from '@stacksjs/types'
5
5
 
6
6
  export default {
7
7
  ai: {
8
+ deploy: false,
8
9
  models: [
9
10
  'amazon.titan-embed-text-v1',
10
11
  'amazon.titan-text-express-v1',
@@ -23,15 +24,6 @@ export default {
23
24
  driver: undefined,
24
25
  },
25
26
 
26
- api: {
27
- prefix: 'api',
28
- description: 'Stacks API',
29
- prewarm: true,
30
- memorySize: 512,
31
- timeout: 30,
32
- // version: 'v1',
33
- },
34
-
35
27
  app: {
36
28
  name: 'Stacks',
37
29
  description: 'A Stacks application.',
@@ -64,6 +56,7 @@ export default {
64
56
  command: 'my-custom-cli',
65
57
  description: 'Stacks is a full-stack framework for TypeScript.',
66
58
  source: p.appPath('commands'),
59
+ deploy: false,
67
60
  },
68
61
 
69
62
  cache: {
@@ -76,6 +69,8 @@ export default {
76
69
  connection: 'default',
77
70
  host: 'localhost',
78
71
  port: 6379,
72
+ username: '',
73
+ password: '',
79
74
  },
80
75
  },
81
76
  },
@@ -112,12 +107,23 @@ export default {
112
107
  headers: [],
113
108
  queryStrings: [],
114
109
  },
110
+ realtimeLogs: {
111
+ enabled: true,
112
+ samplingRate: 2,
113
+ },
114
+ },
115
+
116
+ api: {
117
+ deploy: false,
118
+ prefix: 'api',
119
+ description: 'Stacks API',
120
+ prewarm: true,
121
+ memorySize: 512,
122
+ timeout: 30,
123
+ // version: 'v1',
115
124
  },
116
125
 
117
- ai: true,
118
- docs: true,
119
- api: true,
120
- fileSystem: true,
126
+ fileSystem: false,
121
127
  },
122
128
 
123
129
  database: {
@@ -147,6 +153,7 @@ export default {
147
153
  title: 'Stacks',
148
154
  description: 'Rapid application, cloud & library framework.',
149
155
  lastUpdated: true,
156
+ deploy: false,
150
157
 
151
158
  themeConfig: {
152
159
  editLink: {
@@ -174,9 +181,10 @@ export default {
174
181
  address: 'no-reply@stacksjs.org',
175
182
  },
176
183
 
184
+ mailboxes: [],
185
+
177
186
  server: {
178
187
  scan: true,
179
- mailboxes: [],
180
188
  },
181
189
  },
182
190
 
@@ -319,6 +327,12 @@ export default {
319
327
  },
320
328
  },
321
329
 
330
+ logger: {
331
+ level: 3,
332
+ logFilePath: 'storage/logs/console.log',
333
+ errorsPath: 'storage/logs/errors.log',
334
+ },
335
+
322
336
  notification: {
323
337
  default: 'email',
324
338
  },
@@ -11,6 +11,7 @@ import email from 'config/email'
11
11
  import git from 'config/git'
12
12
  import hashing from 'config/hashing'
13
13
  import library from 'config/library'
14
+ import logger from 'config/logger'
14
15
  import queue from 'config/queue'
15
16
  import payment from 'config/payment'
16
17
  import notification from 'config/notification'
@@ -35,6 +36,7 @@ export default {
35
36
  git,
36
37
  hashing,
37
38
  library,
39
+ logger,
38
40
  notification,
39
41
  queue,
40
42
  payment,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/database",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.59",
5
5
  "description": "The Stacks database integration.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/datetime",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.59",
5
5
  "description": "The Stacks datetime helpers.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/desktop",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.59",
5
5
  "description": "The Stacks Desktop engine.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -62,20 +62,20 @@
62
62
  "peerDependencies": {
63
63
  "@stacksjs/build": "workspace:*",
64
64
  "@stacksjs/server": "workspace:*",
65
- "@tauri-apps/api": "1.5.3",
66
- "@tauri-apps/cli": "1.5.9",
67
- "unified-network": "0.6.4",
65
+ "@tauri-apps/api": "^1.5.3",
66
+ "@tauri-apps/cli": "^1.5.9",
67
+ "unified-network": "^0.6.4",
68
68
  "unstorage": "^1.10.1",
69
- "vue": "3.4.15"
69
+ "vue": "^3.4.18"
70
70
  },
71
71
  "dependencies": {
72
72
  "@stacksjs/build": "workspace:*",
73
73
  "@stacksjs/server": "workspace:*",
74
- "@tauri-apps/api": "1.5.3",
75
- "@tauri-apps/cli": "1.5.9",
76
- "unified-network": "0.6.4",
74
+ "@tauri-apps/api": "^1.5.3",
75
+ "@tauri-apps/cli": "^1.5.9",
76
+ "unified-network": "^0.6.4",
77
77
  "unstorage": "^1.10.1",
78
- "vue": "3.4.15"
78
+ "vue": "^3.4.18"
79
79
  },
80
80
  "devDependencies": {
81
81
  "@stacksjs/development": "workspace:*"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/development",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.59",
5
5
  "description": "The Stacks development dependencies.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",