stacks 0.58.63 → 0.58.65
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/database/seed.js +0 -3
- package/core/actions/dist/src/deploy/index.js +1 -1
- package/core/actions/dist/src/upgrade.js +1 -1
- package/core/actions/package.json +1 -1
- package/core/actions/src/action.ts +3 -1
- package/core/actions/src/copy-types.ts +1 -1
- package/core/actions/src/database/seed.ts +3 -3
- package/core/actions/src/deploy/index.ts +1 -1
- package/core/actions/src/helpers/utils.ts +2 -2
- package/core/ai/package.json +1 -1
- package/core/alias/package.json +1 -1
- package/core/analytics/package.json +1 -1
- package/core/api/package.json +1 -1
- package/core/arrays/package.json +1 -1
- package/core/arrays/src/helpers.ts +3 -3
- package/core/auth/package.json +1 -1
- package/core/buddy/dist/cli.js +1 -1
- package/core/buddy/package.json +1 -1
- package/core/buddy/src/cli.ts +1 -1
- 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 +1 -1
- package/core/cache/tests/DynamoDB.test.ts +125 -125
- package/core/cache/tests/Memcached.test.ts +51 -51
- package/core/cache/tests/Redis.test.ts +84 -84
- package/core/chat/package.json +1 -1
- package/core/cli/dist/index.js +1 -1
- package/core/cli/package.json +1 -1
- package/core/cli/src/exec.ts +2 -2
- package/core/cloud/dist/index.js +8 -8
- package/core/cloud/package.json +1 -1
- package/core/cloud/src/cloud/ai.ts +3 -3
- package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +1 -1
- package/core/cloud/src/cloud/cli.ts +1 -1
- package/core/cloud/src/cloud/compute.ts +1 -1
- package/core/cloud/src/cloud/deployment.ts +3 -3
- 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 +4 -0
- package/core/config/package.json +1 -1
- package/core/database/package.json +1 -1
- package/core/database/src/kysely-bun-worker/driver.ts +1 -1
- package/core/datetime/package.json +1 -1
- package/core/desktop/package.json +3 -3
- package/core/development/package.json +1 -1
- package/core/dns/package.json +1 -1
- package/core/docs/package.json +1 -1
- package/core/email/package.json +2 -2
- package/core/enums/package.json +1 -1
- package/core/env/package.json +1 -1
- package/core/error-handling/package.json +1 -1
- package/core/error-handling/src/handler.ts +1 -1
- package/core/eslint-config/package.json +2 -2
- package/core/events/package.json +1 -1
- package/core/faker/package.json +1 -1
- 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/package.json +1 -1
- package/core/notifications/package.json +1 -1
- package/core/objects/package.json +1 -1
- package/core/orm/package.json +1 -1
- package/core/path/dist/index.js +30 -0
- package/core/path/package.json +1 -1
- package/core/path/src/index.ts +31 -0
- package/core/payments/package.json +1 -1
- package/core/push/package.json +1 -1
- package/core/query-builder/package.json +1 -1
- package/core/queue/package.json +1 -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 +40 -2
- package/core/router/package.json +1 -1
- package/core/router/src/router.ts +21 -1
- package/core/router/src/server.ts +0 -2
- package/core/scheduler/dist/index.js +1 -2
- package/core/scheduler/package.json +2 -1
- package/core/scheduler/src/index.ts +1 -1
- package/core/scheduler/src/job.ts +2 -2
- package/core/scheduler/src/schedule.ts +2 -2
- package/core/scheduler/tests/cron.test.ts +1243 -1243
- package/core/scheduler/tests/crontime.test.ts +780 -778
- package/core/search-engine/dist/index.js +1 -3
- package/core/search-engine/package.json +1 -1
- package/core/search-engine/src/index.ts +5 -5
- package/core/security/package.json +1 -1
- package/core/server/package.json +1 -1
- package/core/signals/package.json +1 -1
- package/core/slug/package.json +1 -1
- package/core/sms/package.json +1 -1
- package/core/storage/dist/index.js +0 -1
- package/core/storage/package.json +1 -1
- package/core/storage/src/files.ts +2 -5
- package/core/storage/src/hash.ts +0 -2
- package/core/strings/package.json +1 -1
- package/core/tables/package.json +1 -1
- package/core/testing/dist/index.js +14978 -1
- package/core/testing/package.json +1 -1
- package/core/testing/src/index.ts +12 -2
- package/core/tinker/package.json +1 -1
- package/core/tunnel/package.json +1 -1
- package/core/types/package.json +2 -2
- package/core/types/src/cli.ts +1 -1
- package/core/types/src/cron-jobs.ts +0 -5
- package/core/types/src/errors.ts +1 -1
- package/core/types/src/router.ts +7 -5
- package/core/ui/package.json +3 -3
- package/core/utils/dist/index.js +4 -8
- package/core/utils/package.json +1 -1
- package/core/utils/scripts/export-size.ts +3 -3
- package/core/utils/src/base.ts +4 -4
- package/core/utils/src/helpers.ts +3 -3
- package/core/utils/src/retry.ts +2 -2
- package/core/validation/package.json +1 -1
- package/core/vite/dist/index.js +1 -1
- package/core/vite/package.json +1 -1
- package/core/vite/src/functions.ts +0 -1
- package/core/vite/src/index.ts +1 -1
- package/core/vite/src/plugin/docs.ts +2 -0
- package/core/vite/src/plugin/stacks.ts +3 -2
- package/core/vite/src/web-components.ts +2 -2
- package/core/whois/package.json +1 -1
- package/core/whois/src/index.ts +2 -2
- package/core/x-ray/package.json +1 -1
- package/core/zsh-buddy/package.json +1 -1
- package/ide/vscode/package.json +1 -1
- package/package.json +1 -1
- package/core/actions/src/database/mydb.sqlite +0 -0
- package/core/actions/src/database/stacks.sqlite +0 -0
- package/core/server/src/api.ts +0 -5
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { expect, it } from '@stacksjs/testing'
|
|
2
|
-
import Memcached, { type Client } from 'memjs'
|
|
3
|
-
|
|
4
|
-
const client: Client = Memcached.Client.create('127.0.0.1:11211')
|
|
5
|
-
|
|
6
|
-
// TODO: needs to be imported to cache package
|
|
7
|
-
async function set(key: string, value: any, duration: number): Promise<void> {
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// TODO: needs to be imported to cache package
|
|
12
|
-
async function get(key: string): Promise<any> {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
async function del(key: string): Promise<void> {
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// TODO: needs to be imported to cache package
|
|
25
|
-
async function flush(): Promise<void> {
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
describe('memcachedTest', () => {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
})
|
|
1
|
+
// import { expect, it } from '@stacksjs/testing'
|
|
2
|
+
// import Memcached, { type Client } from 'memjs'
|
|
3
|
+
//
|
|
4
|
+
// const client: Client = Memcached.Client.create('127.0.0.1:11211')
|
|
5
|
+
//
|
|
6
|
+
// // TODO: needs to be imported to cache package
|
|
7
|
+
// async function set(key: string, value: any, duration: number): Promise<void> {
|
|
8
|
+
// await client.set(key, value, { expires: duration })
|
|
9
|
+
// }
|
|
10
|
+
//
|
|
11
|
+
// // TODO: needs to be imported to cache package
|
|
12
|
+
// async function get(key: string): Promise<any> {
|
|
13
|
+
// const value = await client.get(key)
|
|
14
|
+
//
|
|
15
|
+
// const result = value.value ? value.value.toString() : null
|
|
16
|
+
//
|
|
17
|
+
// return result
|
|
18
|
+
// }
|
|
19
|
+
//
|
|
20
|
+
// async function del(key: string): Promise<void> {
|
|
21
|
+
// await client.delete(key)
|
|
22
|
+
// }
|
|
23
|
+
//
|
|
24
|
+
// // TODO: needs to be imported to cache package
|
|
25
|
+
// async function flush(): Promise<void> {
|
|
26
|
+
// await client.flush()
|
|
27
|
+
// }
|
|
28
|
+
//
|
|
29
|
+
// describe('memcachedTest', () => {
|
|
30
|
+
// it('it should set memcached cache', async () => {
|
|
31
|
+
// await set('test', 'test', 10 * 60)
|
|
32
|
+
// expect(await get('test')).toBe('test')
|
|
33
|
+
// })
|
|
34
|
+
//
|
|
35
|
+
// it('it should get memcached cache', async () => {
|
|
36
|
+
// await set('test', 'test', 10 * 60)
|
|
37
|
+
// expect(await get('test')).toBe('test')
|
|
38
|
+
// })
|
|
39
|
+
//
|
|
40
|
+
// it('it should delete memcached cache', async () => {
|
|
41
|
+
// await set('test', 'test', 10 * 60)
|
|
42
|
+
// await del('test')
|
|
43
|
+
// expect(await get('test')).toBe(null)
|
|
44
|
+
// })
|
|
45
|
+
//
|
|
46
|
+
// it('it should flush memcached cache', async () => {
|
|
47
|
+
// await set('test', 'test', 10 * 60)
|
|
48
|
+
// await flush()
|
|
49
|
+
// expect(await get('test')).toBe(null)
|
|
50
|
+
// })
|
|
51
|
+
// })
|
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
import { expect, it } from '@stacksjs/testing'
|
|
2
|
-
|
|
3
|
-
import { createClient } from 'redis'
|
|
4
|
-
|
|
5
|
-
// TODO: needs to be imported from cache package
|
|
6
|
-
|
|
7
|
-
const client: any = createClient({
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
// TODO: needs to be moved to cache package
|
|
16
|
-
await client.connect()
|
|
17
|
-
|
|
18
|
-
// TODO: needs to be imported to cache package
|
|
19
|
-
async function set(key: any, value: any): Promise<void> {
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// TODO: needs to be imported to cache package
|
|
24
|
-
async function get(key: string): Promise<any> {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// TODO: needs to be imported to cache package
|
|
31
|
-
async function remove(key: string): Promise<void> {
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// TODO: needs to be imported to cache package
|
|
36
|
-
async function del(key: string): Promise<void> {
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// TODO: needs to be imported to cache package
|
|
41
|
-
async function flushAll(): Promise<void> {
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// TODO: needs to be imported to cache package
|
|
46
|
-
async function flushDB(): Promise<void> {
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
describe('redisTest', () => {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
})
|
|
1
|
+
// import { expect, it } from '@stacksjs/testing'
|
|
2
|
+
//
|
|
3
|
+
// import { createClient } from 'redis'
|
|
4
|
+
//
|
|
5
|
+
// // TODO: needs to be imported from cache package
|
|
6
|
+
//
|
|
7
|
+
// const client: any = createClient({
|
|
8
|
+
// socket: {
|
|
9
|
+
// host: '127.0.0.1',
|
|
10
|
+
// port: 6379,
|
|
11
|
+
// },
|
|
12
|
+
// password: '',
|
|
13
|
+
// })
|
|
14
|
+
//
|
|
15
|
+
// // TODO: needs to be moved to cache package
|
|
16
|
+
// await client.connect()
|
|
17
|
+
//
|
|
18
|
+
// // TODO: needs to be imported to cache package
|
|
19
|
+
// async function set(key: any, value: any): Promise<void> {
|
|
20
|
+
// await client.set(key, value)
|
|
21
|
+
// }
|
|
22
|
+
//
|
|
23
|
+
// // TODO: needs to be imported to cache package
|
|
24
|
+
// async function get(key: string): Promise<any> {
|
|
25
|
+
// const value = await client.get(key)
|
|
26
|
+
//
|
|
27
|
+
// return value
|
|
28
|
+
// }
|
|
29
|
+
//
|
|
30
|
+
// // TODO: needs to be imported to cache package
|
|
31
|
+
// async function remove(key: string): Promise<void> {
|
|
32
|
+
// await client.del(key)
|
|
33
|
+
// }
|
|
34
|
+
//
|
|
35
|
+
// // TODO: needs to be imported to cache package
|
|
36
|
+
// async function del(key: string): Promise<void> {
|
|
37
|
+
// await client.del(key)
|
|
38
|
+
// }
|
|
39
|
+
//
|
|
40
|
+
// // TODO: needs to be imported to cache package
|
|
41
|
+
// async function flushAll(): Promise<void> {
|
|
42
|
+
// await client.sendCommand(['FLUSHALL', 'ASYNC'])
|
|
43
|
+
// }
|
|
44
|
+
//
|
|
45
|
+
// // TODO: needs to be imported to cache package
|
|
46
|
+
// async function flushDB(): Promise<void> {
|
|
47
|
+
// await client.sendCommand(['FLUSHDB', 'ASYNC'])
|
|
48
|
+
// }
|
|
49
|
+
//
|
|
50
|
+
// describe('redisTest', () => {
|
|
51
|
+
// it('it should set redis cache', async () => {
|
|
52
|
+
// await set('test', 'test')
|
|
53
|
+
// expect(await get('test')).toBe('test')
|
|
54
|
+
// })
|
|
55
|
+
//
|
|
56
|
+
// it('it should get redis cache', async () => {
|
|
57
|
+
// await set('test', 'test')
|
|
58
|
+
// expect(await get('test')).toBe('test')
|
|
59
|
+
// })
|
|
60
|
+
//
|
|
61
|
+
// it('it should remove cache', async () => {
|
|
62
|
+
// await set('test', 'test')
|
|
63
|
+
// await remove('test')
|
|
64
|
+
// expect(await get('test')).toBe(null)
|
|
65
|
+
// })
|
|
66
|
+
//
|
|
67
|
+
// it('it should del cache', async () => {
|
|
68
|
+
// await set('test', 'test')
|
|
69
|
+
// await del('test')
|
|
70
|
+
// expect(await get('test')).toBe(null)
|
|
71
|
+
// })
|
|
72
|
+
//
|
|
73
|
+
// it('it should flush all cache', async () => {
|
|
74
|
+
// await set('test', 'test')
|
|
75
|
+
// await flushAll()
|
|
76
|
+
// expect(await get('test')).toBe(null)
|
|
77
|
+
// })
|
|
78
|
+
//
|
|
79
|
+
// it('it should flush all DB', async () => {
|
|
80
|
+
// await set('test', 'test')
|
|
81
|
+
// await flushDB()
|
|
82
|
+
// expect(await get('test')).toBe(null)
|
|
83
|
+
// })
|
|
84
|
+
// })
|
package/core/chat/package.json
CHANGED
package/core/cli/dist/index.js
CHANGED
|
@@ -502,7 +502,7 @@ import {log as log3} from "@stacksjs/logging";
|
|
|
502
502
|
import {ExitCode as ExitCode2} from "@stacksjs/types";
|
|
503
503
|
import {bgCyan as bgCyan2, bold as bold2, cyan as cyan2, dim as dim2, gray as gray2, green as green2, italic as italic2} from "kolorist";
|
|
504
504
|
// package.json
|
|
505
|
-
var version = "0.58.
|
|
505
|
+
var version = "0.58.65";
|
|
506
506
|
|
|
507
507
|
// src/helpers.ts
|
|
508
508
|
async function intro(command2, options) {
|
package/core/cli/package.json
CHANGED
package/core/cli/src/exec.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import process from 'node:process'
|
|
2
2
|
import { type Result, err, handleError, ok } from '@stacksjs/error-handling'
|
|
3
|
-
import type { CliOptions,
|
|
3
|
+
import type { CliOptions, Subprocess } from '@stacksjs/types'
|
|
4
4
|
import { ExitCode } from '@stacksjs/types'
|
|
5
5
|
import { log } from './'
|
|
6
6
|
|
|
@@ -24,7 +24,7 @@ import { log } from './'
|
|
|
24
24
|
* const result = await exec('ls', { cwd: '/home' })
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
|
-
export async function exec(command: string | string[], options?: CliOptions): Promise<Result<Subprocess,
|
|
27
|
+
export async function exec(command: string | string[], options?: CliOptions): Promise<Result<Subprocess, Error>> {
|
|
28
28
|
const cmd = Array.isArray(command)
|
|
29
29
|
? command
|
|
30
30
|
: command.match(/(?:[^\s"]+|"[^"]*")+/g)
|
package/core/cloud/dist/index.js
CHANGED
|
@@ -407,7 +407,7 @@ class AiStack {
|
|
|
407
407
|
summarizeAiUrl;
|
|
408
408
|
constructor(scope, props) {
|
|
409
409
|
const awsSdkLayer = new lambda.LayerVersion(scope, "AwsSdkLayer", {
|
|
410
|
-
code: lambda.Code.fromAsset("src/cloud/aws-sdk-layer"),
|
|
410
|
+
code: lambda.Code.fromAsset("../core/cloud/src/cloud/aws-sdk-layer"),
|
|
411
411
|
compatibleRuntimes: [lambda.Runtime.NODEJS_20_X],
|
|
412
412
|
description: "Layer with aws-sdk"
|
|
413
413
|
});
|
|
@@ -431,7 +431,7 @@ class AiStack {
|
|
|
431
431
|
description: "Lambda function to invoke the AI model",
|
|
432
432
|
runtime: lambda.Runtime.NODEJS_20_X,
|
|
433
433
|
handler: "index.handler",
|
|
434
|
-
code: lambda.Code.fromAsset("src/cloud/lambda/ask"),
|
|
434
|
+
code: lambda.Code.fromAsset("../core/cloud/src/cloud/lambda/ask"),
|
|
435
435
|
layers: [awsSdkLayer],
|
|
436
436
|
role: bedrockAccessRole,
|
|
437
437
|
timeout: Duration.seconds(30)
|
|
@@ -448,7 +448,7 @@ class AiStack {
|
|
|
448
448
|
description: "Lambda function to summarize any given text",
|
|
449
449
|
runtime: lambda.Runtime.NODEJS_20_X,
|
|
450
450
|
handler: "index.handler",
|
|
451
|
-
code: lambda.Code.fromAsset("src/cloud/lambda/summarize"),
|
|
451
|
+
code: lambda.Code.fromAsset("../core/cloud/src/cloud/lambda/summarize"),
|
|
452
452
|
layers: [awsSdkLayer],
|
|
453
453
|
role: bedrockAccessRole,
|
|
454
454
|
timeout: Duration.seconds(30)
|
|
@@ -823,7 +823,7 @@ class CliStack {
|
|
|
823
823
|
description: "Lambda function that triggers setup script for a Stacks project",
|
|
824
824
|
runtime: lambda2.Runtime.NODEJS_20_X,
|
|
825
825
|
handler: "index.handler",
|
|
826
|
-
code: lambda2.Code.fromAsset("src/cloud/lambda/cli-setup"),
|
|
826
|
+
code: lambda2.Code.fromAsset("../core/cloud/src/cloud/lambda/cli-setup"),
|
|
827
827
|
timeout: Duration3.seconds(30)
|
|
828
828
|
});
|
|
829
829
|
this.cliSetupUrl = new lambda2.FunctionUrl(scope, "CliSetupFunctionUrl", {
|
|
@@ -1173,9 +1173,9 @@ class DeploymentStack {
|
|
|
1173
1173
|
docsSource;
|
|
1174
1174
|
websiteSource;
|
|
1175
1175
|
constructor(scope, props) {
|
|
1176
|
-
this.privateSource = "
|
|
1177
|
-
this.docsSource = "
|
|
1178
|
-
this.websiteSource = config12.app.docMode === true ? this.docsSource : "
|
|
1176
|
+
this.privateSource = "../../private";
|
|
1177
|
+
this.docsSource = "../docs/dist/";
|
|
1178
|
+
this.websiteSource = config12.app.docMode === true ? this.docsSource : "../views/dist/";
|
|
1179
1179
|
new s3deploy.BucketDeployment(scope, "Website", {
|
|
1180
1180
|
sources: [s3deploy.Source.asset(this.websiteSource, {
|
|
1181
1181
|
assetHash: websiteSourceHash,
|
|
@@ -1713,7 +1713,7 @@ class ComputeStack {
|
|
|
1713
1713
|
port: 3000,
|
|
1714
1714
|
healthCheck: {
|
|
1715
1715
|
interval: Duration6.seconds(6),
|
|
1716
|
-
path: "/api/
|
|
1716
|
+
path: "/api/healthy",
|
|
1717
1717
|
protocol: elbv2.Protocol.HTTP,
|
|
1718
1718
|
timeout: Duration6.seconds(5),
|
|
1719
1719
|
healthyThresholdCount: 2,
|
package/core/cloud/package.json
CHANGED
|
@@ -14,7 +14,7 @@ export class AiStack {
|
|
|
14
14
|
constructor(scope: Construct, props: AiStackProps) {
|
|
15
15
|
// Define the Lambda Layer for aws-sdk
|
|
16
16
|
const awsSdkLayer = new lambda.LayerVersion(scope, 'AwsSdkLayer', {
|
|
17
|
-
code: lambda.Code.fromAsset('src/cloud/aws-sdk-layer'),
|
|
17
|
+
code: lambda.Code.fromAsset('../core/cloud/src/cloud/aws-sdk-layer'), // path is relative to frameworkCloudPath()
|
|
18
18
|
compatibleRuntimes: [lambda.Runtime.NODEJS_20_X],
|
|
19
19
|
description: 'Layer with aws-sdk',
|
|
20
20
|
})
|
|
@@ -42,7 +42,7 @@ export class AiStack {
|
|
|
42
42
|
description: 'Lambda function to invoke the AI model',
|
|
43
43
|
runtime: lambda.Runtime.NODEJS_20_X,
|
|
44
44
|
handler: 'index.handler',
|
|
45
|
-
code: lambda.Code.fromAsset('src/cloud/lambda/ask'), // path relative to
|
|
45
|
+
code: lambda.Code.fromAsset('../core/cloud/src/cloud/lambda/ask'), // path is relative to frameworkCloudPath()
|
|
46
46
|
layers: [awsSdkLayer],
|
|
47
47
|
role: bedrockAccessRole,
|
|
48
48
|
timeout: Duration.seconds(30),
|
|
@@ -61,7 +61,7 @@ export class AiStack {
|
|
|
61
61
|
description: 'Lambda function to summarize any given text',
|
|
62
62
|
runtime: lambda.Runtime.NODEJS_20_X,
|
|
63
63
|
handler: 'index.handler',
|
|
64
|
-
code: lambda.Code.fromAsset('src/cloud/lambda/summarize'),
|
|
64
|
+
code: lambda.Code.fromAsset('../core/cloud/src/cloud/lambda/summarize'), // path is relative to frameworkCloudPath()
|
|
65
65
|
layers: [awsSdkLayer],
|
|
66
66
|
role: bedrockAccessRole,
|
|
67
67
|
timeout: Duration.seconds(30),
|
|
@@ -15,7 +15,7 @@ export class CliStack {
|
|
|
15
15
|
description: 'Lambda function that triggers setup script for a Stacks project',
|
|
16
16
|
runtime: lambda.Runtime.NODEJS_20_X,
|
|
17
17
|
handler: 'index.handler',
|
|
18
|
-
code: lambda.Code.fromAsset('src/cloud/lambda/cli-setup'), // path relative to the cloud root package dir
|
|
18
|
+
code: lambda.Code.fromAsset('../core/cloud/src/cloud/lambda/cli-setup'), // path relative to the cloud root package dir
|
|
19
19
|
timeout: Duration.seconds(30),
|
|
20
20
|
})
|
|
21
21
|
|
|
@@ -19,9 +19,9 @@ export class DeploymentStack {
|
|
|
19
19
|
|
|
20
20
|
constructor(scope: Construct, props: DeploymentStackProps) {
|
|
21
21
|
// following paths are relative to where the command is run from
|
|
22
|
-
this.privateSource = '
|
|
23
|
-
this.docsSource = '
|
|
24
|
-
this.websiteSource = config.app.docMode === true ? this.docsSource : '
|
|
22
|
+
this.privateSource = '../../private'
|
|
23
|
+
this.docsSource = '../docs/dist/'
|
|
24
|
+
this.websiteSource = config.app.docMode === true ? this.docsSource : '../views/dist/'
|
|
25
25
|
|
|
26
26
|
new s3deploy.BucketDeployment(scope, 'Website', {
|
|
27
27
|
sources: [s3deploy.Source.asset(this.websiteSource, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stacks-router-layer",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.65",
|
|
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.64"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -874,6 +874,10 @@ var dns_default = {
|
|
|
874
874
|
// /home/runner/work/stacks/stacks/config/docs.ts
|
|
875
875
|
import {SocialLinkIcon} from "@stacksjs/types";
|
|
876
876
|
var nav = [
|
|
877
|
+
{
|
|
878
|
+
text: "Docs",
|
|
879
|
+
link: "/guide/intro"
|
|
880
|
+
},
|
|
877
881
|
{
|
|
878
882
|
text: "Changelog",
|
|
879
883
|
link: "https://github.com/stacksjs/stacks/blob/main/CHANGELOG.md"
|
package/core/config/package.json
CHANGED
|
@@ -136,7 +136,7 @@ class BunWorkerConnection implements DatabaseConnection {
|
|
|
136
136
|
if (!this.mitt)
|
|
137
137
|
reject('kysely instance has been destroyed')
|
|
138
138
|
|
|
139
|
-
this.mitt
|
|
139
|
+
this.mitt!.once('run', ({ data, err }) => {
|
|
140
140
|
(!err && data) ? resolve(data) : reject(err)
|
|
141
141
|
})
|
|
142
142
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/desktop",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.65",
|
|
5
5
|
"description": "The Stacks Desktop engine.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@tauri-apps/cli": "^1.5.9",
|
|
67
67
|
"unified-network": "^0.6.4",
|
|
68
68
|
"unstorage": "^1.10.1",
|
|
69
|
-
"vue": "^3.4.
|
|
69
|
+
"vue": "^3.4.19"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@stacksjs/build": "workspace:*",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@tauri-apps/cli": "^1.5.9",
|
|
76
76
|
"unified-network": "^0.6.4",
|
|
77
77
|
"unstorage": "^1.10.1",
|
|
78
|
-
"vue": "^3.4.
|
|
78
|
+
"vue": "^3.4.19"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@stacksjs/development": "workspace:*"
|
package/core/dns/package.json
CHANGED
package/core/docs/package.json
CHANGED
package/core/email/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/email",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.65",
|
|
5
5
|
"description": "The Stacks Email integration. Painlessly create & manage your inboxes, templates, and send emails.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@stacksjs/error-handling": "workspace:*",
|
|
72
72
|
"@stacksjs/types": "workspace:*",
|
|
73
73
|
"@types/mailparser": "^3.4.4",
|
|
74
|
-
"aws-sdk": "^2.
|
|
74
|
+
"aws-sdk": "^2.1556.0",
|
|
75
75
|
"mailparser": "^3.6.7",
|
|
76
76
|
"mime": "^4.0.1",
|
|
77
77
|
"moment": "^2.30.1",
|
package/core/enums/package.json
CHANGED