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.
- package/core/actions/dist/src/build.js +18 -26
- package/core/actions/dist/src/bump.js +9 -3
- package/core/actions/dist/src/changelog.js +11 -3
- package/core/actions/dist/src/dev/index.js +18 -26
- package/core/actions/dist/src/generate/index.js +18 -26
- package/core/actions/dist/src/helpers/index.js +18 -26
- package/core/actions/dist/src/helpers/utils.js +18 -26
- package/core/actions/dist/src/index.js +35 -37
- package/core/actions/dist/src/lint/fix.js +3 -2
- package/core/actions/dist/src/release.js +39 -38
- package/core/actions/dist/src/upgrade/index.js +18 -26
- package/core/actions/dist/src/upgrade.js +1 -1
- package/core/actions/package.json +1 -1
- package/core/actions/src/action.ts +11 -3
- package/core/actions/src/bump.ts +13 -6
- package/core/actions/src/changelog.ts +14 -4
- package/core/actions/src/helpers/utils.ts +24 -36
- package/core/actions/src/lint/fix.ts +3 -2
- package/core/actions/src/release.ts +4 -1
- package/core/ai/dist/index.js +31 -29
- package/core/ai/package.json +3 -3
- package/core/alias/package.json +1 -1
- package/core/analytics/package.json +1 -1
- package/core/api/dist/index.js +6 -3
- package/core/api/package.json +1 -1
- package/core/arrays/package.json +1 -1
- package/core/auth/package.json +1 -1
- package/core/buddy/dist/chunk-59a9de11428ba763.js +993 -0
- package/core/buddy/dist/{chunk-e9c0ec1a3b7be088.js → chunk-7b24d1e3e585766e.js} +594 -563
- package/core/buddy/dist/cli.js +3916 -19
- package/core/buddy/dist/index.js +2 -5
- package/core/buddy/package.json +1 -1
- package/core/buddy/src/cli.ts +91 -17
- package/core/buddy/src/commands/add.ts +3 -0
- package/core/buddy/src/commands/build.ts +42 -27
- package/core/buddy/src/commands/changelog.ts +13 -6
- package/core/buddy/src/commands/clean.ts +3 -1
- package/core/buddy/src/commands/cloud.ts +14 -2
- package/core/buddy/src/commands/commit.ts +2 -0
- package/core/buddy/src/commands/configure.ts +6 -3
- package/core/buddy/src/commands/create.ts +3 -1
- package/core/buddy/src/commands/deploy.ts +3 -1
- package/core/buddy/src/commands/dev.ts +50 -36
- package/core/buddy/src/commands/dns.ts +7 -1
- package/core/buddy/src/commands/domains.ts +7 -1
- package/core/buddy/src/commands/fresh.ts +4 -2
- package/core/buddy/src/commands/generate.ts +36 -26
- package/core/buddy/src/commands/http.ts +6 -4
- package/core/buddy/src/commands/index.ts +0 -2
- package/core/buddy/src/commands/install.ts +3 -1
- package/core/buddy/src/commands/key.ts +2 -0
- package/core/buddy/src/commands/lint.ts +4 -0
- package/core/buddy/src/commands/list.ts +6 -2
- package/core/buddy/src/commands/make.ts +52 -30
- package/core/buddy/src/commands/migrate.ts +6 -2
- package/core/buddy/src/commands/prepublish.ts +3 -0
- package/core/buddy/src/commands/release.ts +12 -2
- package/core/buddy/src/commands/seed.ts +3 -1
- package/core/buddy/src/commands/setup.ts +16 -8
- package/core/buddy/src/commands/tinker.ts +3 -1
- package/core/buddy/src/commands/types.ts +4 -2
- package/core/buddy/src/commands/upgrade.ts +37 -25
- package/core/buddy/src/commands/version.ts +7 -0
- package/core/build/package.json +1 -1
- package/core/bun-create/bud/package.json +1 -1
- package/core/bun-create/buddy/package.json +1 -1
- package/core/bun-create/stack/package.json +1 -1
- package/core/bun-create/stacks/package.json +1 -1
- package/core/bun-create/stx/package.json +1 -1
- package/core/bun-plugin-yaml/package.json +1 -1
- package/core/cache/package.json +2 -2
- package/core/chat/package.json +8 -8
- package/core/cli/dist/index.js +462 -87
- package/core/cli/package.json +1 -1
- package/core/cli/src/cli.ts +9 -31
- package/core/cli/src/console.ts +1 -1
- package/core/cli/src/exec.ts +28 -14
- package/core/cli/src/helpers.ts +3 -3
- package/core/cli/src/index.ts +1 -1
- package/core/cli/src/parse.ts +95 -17
- package/core/cli/src/run.ts +7 -7
- package/core/cli/src/utils.ts +62 -0
- package/core/cloud/dist/index.js +70 -41
- package/core/cloud/package.json +32 -32
- package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package-lock.json +6 -6
- package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +2 -2
- package/core/cloud/src/cloud/queue.ts +96 -55
- package/core/cloud/src/cloud/router-layer/nodejs/package.json +2 -2
- package/core/collections/package.json +1 -1
- package/core/config/dist/index.js +49 -27
- package/core/config/package.json +1 -1
- package/core/config/src/config.ts +1 -1
- package/core/config/src/defaults.ts +28 -14
- package/core/config/src/overrides.ts +2 -0
- package/core/database/package.json +1 -1
- package/core/datetime/package.json +1 -1
- package/core/desktop/package.json +9 -9
- package/core/development/package.json +1 -1
- package/core/dns/package.json +7 -7
- package/core/docs/package.json +1 -1
- package/core/email/package.json +14 -14
- package/core/enums/dist/index.js +2 -2
- package/core/enums/package.json +1 -1
- package/core/enums/src/index.ts +2 -2
- package/core/env/package.json +3 -2
- package/core/env/src/utils.ts +1 -0
- package/core/error-handling/package.json +1 -1
- package/core/eslint-config/package.json +10 -10
- package/core/events/package.json +1 -1
- package/core/faker/package.json +2 -2
- package/core/git/package.json +1 -1
- package/core/health/package.json +1 -1
- package/core/http/package.json +1 -1
- package/core/lint/package.json +1 -1
- package/core/logging/build.ts +1 -1
- package/core/logging/dist/index.js +10932 -1773
- package/core/logging/package.json +1 -1
- package/core/logging/src/index.ts +79 -13
- package/core/notifications/package.json +23 -23
- package/core/objects/package.json +1 -1
- package/core/orm/package.json +1 -1
- package/core/path/dist/index.js +10 -0
- package/core/path/package.json +1 -1
- package/core/path/src/index.ts +10 -0
- package/core/payments/dist/index.js +34 -10
- package/core/payments/package.json +2 -2
- package/core/push/package.json +5 -5
- package/core/query-builder/package.json +1 -1
- package/core/queue/dist/index.js +3 -1
- package/core/queue/package.json +1 -1
- package/core/queue/src/index.ts +3 -1
- package/core/raycast/package.json +1 -1
- package/core/realtime/package.json +1 -1
- package/core/repl/package.json +1 -1
- package/core/router/dist/index.js +517 -14
- package/core/router/package.json +1 -1
- package/core/router/src/router.ts +10 -3
- package/core/scheduler/dist/index.js +4 -0
- package/core/scheduler/package.json +1 -1
- package/core/scheduler/src/index.ts +1 -0
- package/core/scheduler/src/schedule.ts +5 -0
- package/core/search-engine/package.json +1 -1
- package/core/security/package.json +1 -1
- package/core/server/package.json +2 -2
- package/core/signals/package.json +1 -1
- package/core/slug/package.json +1 -1
- package/core/sms/package.json +11 -11
- package/core/storage/package.json +1 -1
- package/core/strings/package.json +1 -1
- package/core/tables/package.json +2 -2
- package/core/testing/package.json +1 -1
- package/core/tinker/package.json +1 -1
- package/core/tunnel/package.json +1 -1
- package/core/types/dist/index.js +1787 -6
- package/core/types/package.json +7 -7
- package/core/types/src/ai.ts +1 -0
- package/core/types/src/binary.ts +1 -0
- package/core/types/src/cli.ts +13 -3
- package/core/types/src/cron-jobs.ts +6 -1
- package/core/types/src/docs.ts +5 -1
- package/core/types/src/index.ts +1 -0
- package/core/types/src/logger.ts +54 -0
- package/core/types/src/router.ts +2 -1
- package/core/types/src/stacks.ts +10 -0
- package/core/types/src/team.ts +1 -1
- package/core/ui/package.json +6 -6
- package/core/utils/dist/index.js +39 -2
- package/core/utils/package.json +2 -2
- package/core/utils/src/hash.ts +10 -1
- package/core/utils/src/index.ts +1 -0
- package/core/utils/src/retry.ts +33 -0
- package/core/validation/package.json +1 -1
- package/core/vite/dist/index.js +1 -1
- package/core/vite/package.json +4 -4
- package/core/whois/package.json +1 -1
- package/core/x-ray/package.json +1 -1
- package/core/zsh-buddy/buddy.plugin.zsh +4 -0
- package/core/zsh-buddy/package.json +1 -1
- package/ide/dictionary.txt +1 -0
- package/ide/vscode/package.json +1 -1
- package/package.json +1 -1
- package/core/buddy/src/commands/example.ts +0 -66
- package/core/buddy/src/commands/inspire.ts +0 -24
- package/core/cli/src/utilities.ts +0 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aws-sdk-layer",
|
|
3
|
-
"version": "0.58.
|
|
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.
|
|
9
|
+
"version": "0.58.58",
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"aws-sdk": "^2.
|
|
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.
|
|
28
|
-
"resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.
|
|
29
|
-
"integrity": "sha512-
|
|
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.
|
|
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.
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
82
|
-
|
|
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
|
|
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.
|
|
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.
|
|
13
|
+
"@stacksjs/router": "^0.58.58"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -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
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
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
|
};
|
package/core/config/package.json
CHANGED
|
@@ -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
|
-
|
|
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/desktop",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
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.
|
|
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.
|
|
78
|
+
"vue": "^3.4.18"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@stacksjs/development": "workspace:*"
|