stacks 0.58.49 → 0.58.51
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/index.js +2 -0
- package/core/actions/dist/src/release.js +2 -0
- package/core/actions/dist/src/upgrade.js +1 -1
- package/core/actions/package.json +1 -1
- package/core/actions/src/action.ts +2 -0
- package/core/actions/src/generate/custom-cli-file.ts +24 -0
- package/core/ai/dist/index.js +6 -6
- package/core/ai/package.json +3 -3
- 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/auth/package.json +1 -1
- package/core/buddy/dist/{chunk-b32089b9556f373c.js → chunk-91084836e95161e8.js} +1 -1
- package/core/buddy/dist/cli.js +13 -1
- package/core/buddy/dist/index.js +1 -1
- package/core/buddy/package.json +1 -1
- package/core/buddy/src/cli.ts +17 -0
- package/core/buddy/src/commands/deploy.ts +1 -1
- package/core/buddy/src/custom-cli.ts +36 -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 +1 -1
- package/core/cli/dist/index.js +2 -2
- package/core/cli/package.json +1 -1
- package/core/cli/src/cli.ts +1 -1
- package/core/cloud/deploy.ts +2 -2
- package/core/cloud/dist/index.js +144 -61
- 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/cdn.ts +5 -5
- package/core/cloud/src/cloud/compute.ts +150 -28
- package/core/cloud/src/cloud/index.ts +13 -9
- package/core/cloud/src/cloud/network.ts +4 -24
- package/core/cloud/src/cloud/package/package.json +1 -1
- 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 +13 -12
- package/core/config/package.json +2 -2
- package/core/config/src/config.ts +1 -1
- package/core/config/src/defaults.ts +3 -3
- package/core/config/src/overrides.ts +22 -22
- package/core/database/package.json +1 -1
- package/core/datetime/package.json +1 -1
- package/core/desktop/package.json +1 -1
- package/core/development/package.json +1 -1
- package/core/dns/package.json +7 -7
- package/core/docs/package.json +3 -3
- package/core/email/package.json +3 -3
- package/core/enums/package.json +1 -1
- package/core/env/package.json +1 -1
- package/core/error-handling/package.json +1 -1
- package/core/eslint-config/package.json +4 -4
- 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 +3 -3
- 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/package.json +1 -1
- 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/dist/index.js +3 -1
- package/core/queue/package.json +1 -1
- package/core/queue/src/index.ts +4 -2
- 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 +1 -2
- package/core/router/package.json +1 -1
- package/core/router/src/server.ts +2 -2
- package/core/scheduler/dist/index.js +3 -2
- package/core/scheduler/package.json +1 -1
- package/core/scheduler/src/index.ts +1 -1
- package/core/search-engine/package.json +1 -1
- 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/package.json +1 -1
- package/core/strings/package.json +1 -1
- package/core/tables/package.json +1 -1
- package/core/testing/package.json +3 -3
- package/core/tinker/package.json +1 -1
- package/core/tsconfig.json +1 -0
- package/core/tunnel/package.json +1 -1
- package/core/types/package.json +4 -4
- package/core/types/src/api.ts +2 -0
- package/core/types/src/cron-jobs.ts +2 -1
- package/core/types/src/stacks.ts +6 -6
- package/core/ui/package.json +4 -4
- package/core/utils/dist/index.js +1 -1
- package/core/utils/package.json +1 -1
- package/core/validation/package.json +1 -1
- package/core/vite/dist/index.js +1 -1
- package/core/vite/package.json +1 -1
- package/core/whois/package.json +1 -1
- 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/cloud/src/cloud/stacksjs-router-0.58.48.tgz +0 -0
|
@@ -526,10 +526,12 @@ export default <Model> {
|
|
|
526
526
|
class Action3 {
|
|
527
527
|
name;
|
|
528
528
|
description;
|
|
529
|
+
longRunning;
|
|
529
530
|
handle;
|
|
530
531
|
constructor({ name, description, handle }) {
|
|
531
532
|
this.name = name;
|
|
532
533
|
this.description = description;
|
|
534
|
+
this.longRunning = false;
|
|
533
535
|
this.handle = handle;
|
|
534
536
|
}
|
|
535
537
|
}
|
|
@@ -528,10 +528,12 @@ export default <Model> {
|
|
|
528
528
|
class Action3 {
|
|
529
529
|
name;
|
|
530
530
|
description;
|
|
531
|
+
longRunning;
|
|
531
532
|
handle;
|
|
532
533
|
constructor({ name, description, handle }) {
|
|
533
534
|
this.name = name;
|
|
534
535
|
this.description = description;
|
|
536
|
+
this.longRunning = false;
|
|
535
537
|
this.handle = handle;
|
|
536
538
|
}
|
|
537
539
|
}
|
|
@@ -6,7 +6,7 @@ import {log} from "@stacksjs/logging";
|
|
|
6
6
|
import {projectPath} from "@stacksjs/path";
|
|
7
7
|
import * as storage from "@stacksjs/storage";
|
|
8
8
|
// package.json
|
|
9
|
-
var version = "0.58.
|
|
9
|
+
var version = "0.58.51";
|
|
10
10
|
|
|
11
11
|
// src/upgrade.ts
|
|
12
12
|
function checkForUncommittedChanges(options2) {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export class Action {
|
|
2
2
|
name: string
|
|
3
3
|
description: string
|
|
4
|
+
longRunning: boolean
|
|
4
5
|
handle: () => Promise<string>
|
|
5
6
|
|
|
6
7
|
constructor({ name, description, handle }: { name: string, description: string, handle: () => Promise<string> }) {
|
|
7
8
|
this.name = name
|
|
8
9
|
this.description = description
|
|
10
|
+
this.longRunning = false // TODO: Implement long running actions
|
|
9
11
|
this.handle = handle
|
|
10
12
|
}
|
|
11
13
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import process from 'node:process'
|
|
2
|
+
import { ExitCode } from '@stacksjs/types'
|
|
3
|
+
import { writeTextFile } from '@stacksjs/storage'
|
|
4
|
+
import { projectPath } from '@stacksjs/path'
|
|
5
|
+
import { cli } from '@stacksjs/config'
|
|
6
|
+
|
|
7
|
+
log.info('Creating Vue Component Library Entry Point...')
|
|
8
|
+
|
|
9
|
+
if (!cli.command) {
|
|
10
|
+
log.error('No command defined in the CLI configuration')
|
|
11
|
+
process.exit(ExitCode.FatalError)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
await writeTextFile({
|
|
15
|
+
path: projectPath(cli.command),
|
|
16
|
+
data: `#!/usr/bin/env bun
|
|
17
|
+
import('./storage/framework/core/buddy/src/custom-cli')
|
|
18
|
+
`,
|
|
19
|
+
}).catch((err) => {
|
|
20
|
+
log.error('There was an error generating your custom CLI file.', err)
|
|
21
|
+
process.exit(ExitCode.FatalError)
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
log.success('Generated custom CLI file')
|
package/core/ai/dist/index.js
CHANGED
|
@@ -8276,7 +8276,7 @@ var commonParams = {
|
|
|
8276
8276
|
var package_default = {
|
|
8277
8277
|
name: "@aws-sdk/client-bedrock",
|
|
8278
8278
|
description: "AWS SDK for JavaScript Bedrock Client for Node.js, Browser and React Native",
|
|
8279
|
-
version: "3.
|
|
8279
|
+
version: "3.504.0",
|
|
8280
8280
|
scripts: {
|
|
8281
8281
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
8282
8282
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock",
|
|
@@ -8295,9 +8295,9 @@ var package_default = {
|
|
|
8295
8295
|
dependencies: {
|
|
8296
8296
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
8297
8297
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
8298
|
-
"@aws-sdk/client-sts": "3.
|
|
8298
|
+
"@aws-sdk/client-sts": "3.504.0",
|
|
8299
8299
|
"@aws-sdk/core": "3.496.0",
|
|
8300
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
8300
|
+
"@aws-sdk/credential-provider-node": "3.504.0",
|
|
8301
8301
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
8302
8302
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
8303
8303
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|
|
@@ -9332,7 +9332,7 @@ var commonParams2 = {
|
|
|
9332
9332
|
var package_default2 = {
|
|
9333
9333
|
name: "@aws-sdk/client-bedrock-runtime",
|
|
9334
9334
|
description: "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
|
|
9335
|
-
version: "3.
|
|
9335
|
+
version: "3.504.0",
|
|
9336
9336
|
scripts: {
|
|
9337
9337
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
9338
9338
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-runtime",
|
|
@@ -9351,9 +9351,9 @@ var package_default2 = {
|
|
|
9351
9351
|
dependencies: {
|
|
9352
9352
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
9353
9353
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
9354
|
-
"@aws-sdk/client-sts": "3.
|
|
9354
|
+
"@aws-sdk/client-sts": "3.504.0",
|
|
9355
9355
|
"@aws-sdk/core": "3.496.0",
|
|
9356
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
9356
|
+
"@aws-sdk/credential-provider-node": "3.504.0",
|
|
9357
9357
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
9358
9358
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
9359
9359
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|
package/core/ai/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/ai",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.51",
|
|
5
5
|
"description": "Stacks Artificial Intelligence.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"prepublishOnly": "bun --bun run build"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@aws-sdk/client-bedrock-runtime": "^3.
|
|
52
|
+
"@aws-sdk/client-bedrock-runtime": "^3.504.0"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@aws-sdk/client-bedrock-runtime": "^3.
|
|
55
|
+
"@aws-sdk/client-bedrock-runtime": "^3.504.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@stacksjs/development": "workspace:*"
|
package/core/alias/package.json
CHANGED
package/core/api/package.json
CHANGED
package/core/arrays/package.json
CHANGED
package/core/auth/package.json
CHANGED
|
@@ -591,7 +591,7 @@ function deploy(buddy) {
|
|
|
591
591
|
if (await hasUserDomainBeenAddedToCloud(domain)) {
|
|
592
592
|
log6.success("Your domain is properly configured.");
|
|
593
593
|
log6.info("Your cloud is deploying...");
|
|
594
|
-
|
|
594
|
+
log6.info(`${italic2("This may take a while...")}`);
|
|
595
595
|
await new Promise((resolve2) => setTimeout(resolve2, 2000));
|
|
596
596
|
options.domain = domain;
|
|
597
597
|
const result2 = await runAction5(Action5.Deploy, options);
|
package/core/buddy/dist/cli.js
CHANGED
|
@@ -18,7 +18,7 @@ lint,
|
|
|
18
18
|
release,
|
|
19
19
|
setup,
|
|
20
20
|
upgrade
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-91084836e95161e8.js";
|
|
22
22
|
import"./chunk-0455e53fab4244b1.js";
|
|
23
23
|
|
|
24
24
|
// src/cli.ts
|
|
@@ -26,6 +26,8 @@ import process from "process";
|
|
|
26
26
|
import {handleError} from "@stacksjs/error-handling";
|
|
27
27
|
import {cli as cli2} from "@stacksjs/cli";
|
|
28
28
|
import {ensureProjectIsInitialized} from "@stacksjs/utils";
|
|
29
|
+
import {path as p} from "@stacksjs/path";
|
|
30
|
+
import {fs} from "@stacksjs/storage";
|
|
29
31
|
async function main() {
|
|
30
32
|
const buddy = cli2("buddy");
|
|
31
33
|
setup(buddy);
|
|
@@ -48,6 +50,16 @@ async function main() {
|
|
|
48
50
|
release(buddy);
|
|
49
51
|
setup(buddy);
|
|
50
52
|
upgrade(buddy);
|
|
53
|
+
const commandsDir = p.appPath("Commands");
|
|
54
|
+
const commandFiles = fs.readdirSync(commandsDir).filter((file) => file.endsWith(".ts"));
|
|
55
|
+
for (const file of commandFiles) {
|
|
56
|
+
const commandPath = `${commandsDir}/${file}`;
|
|
57
|
+
const dynamicImport = await import(commandPath);
|
|
58
|
+
if (typeof dynamicImport.default === "function")
|
|
59
|
+
dynamicImport.default(buddy);
|
|
60
|
+
else
|
|
61
|
+
console.error(`Expected a default export function in ${file}, but got:`, dynamicImport.default);
|
|
62
|
+
}
|
|
51
63
|
buddy.parse();
|
|
52
64
|
}
|
|
53
65
|
process.on("uncaughtException", handleError);
|
package/core/buddy/dist/index.js
CHANGED
package/core/buddy/package.json
CHANGED
package/core/buddy/src/cli.ts
CHANGED
|
@@ -2,6 +2,8 @@ import process from 'node:process'
|
|
|
2
2
|
import { handleError } from '@stacksjs/error-handling'
|
|
3
3
|
import { cli } from '@stacksjs/cli'
|
|
4
4
|
import { ensureProjectIsInitialized } from '@stacksjs/utils'
|
|
5
|
+
import { path as p } from '@stacksjs/path'
|
|
6
|
+
import { fs } from '@stacksjs/storage'
|
|
5
7
|
import * as cmd from './commands'
|
|
6
8
|
|
|
7
9
|
// setup global error handlers
|
|
@@ -44,6 +46,21 @@ async function main() {
|
|
|
44
46
|
// cmd.prepublish(buddy)
|
|
45
47
|
cmd.upgrade(buddy)
|
|
46
48
|
|
|
49
|
+
// dynamically import and register commands from ./app/Commands/*
|
|
50
|
+
const commandsDir = p.appPath('Commands')
|
|
51
|
+
const commandFiles = fs.readdirSync(commandsDir).filter(file => file.endsWith('.ts'))
|
|
52
|
+
|
|
53
|
+
for (const file of commandFiles) {
|
|
54
|
+
const commandPath = `${commandsDir}/${file}`
|
|
55
|
+
const dynamicImport = await import(commandPath)
|
|
56
|
+
|
|
57
|
+
// Correctly use the default export function
|
|
58
|
+
if (typeof dynamicImport.default === 'function')
|
|
59
|
+
dynamicImport.default(buddy)
|
|
60
|
+
else
|
|
61
|
+
console.error(`Expected a default export function in ${file}, but got:`, dynamicImport.default)
|
|
62
|
+
}
|
|
63
|
+
|
|
47
64
|
buddy.parse()
|
|
48
65
|
}
|
|
49
66
|
|
|
@@ -51,7 +51,7 @@ export function deploy(buddy: CLI) {
|
|
|
51
51
|
log.success('Your domain is properly configured.')
|
|
52
52
|
log.info('Your cloud is deploying...')
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
log.info(`${italic('This may take a while...')}`)
|
|
55
55
|
await new Promise(resolve => setTimeout(resolve, 2000))
|
|
56
56
|
options.domain = domain
|
|
57
57
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import process from 'node:process'
|
|
2
|
+
import { handleError } from '@stacksjs/error-handling'
|
|
3
|
+
import { config } from '@stacksjs/config'
|
|
4
|
+
import { cli } from '@stacksjs/cli'
|
|
5
|
+
import { path as p } from '@stacksjs/path'
|
|
6
|
+
import { fs } from '@stacksjs/storage'
|
|
7
|
+
|
|
8
|
+
// setup global error handlers
|
|
9
|
+
process.on('uncaughtException', handleError)
|
|
10
|
+
process.on('unhandledRejection', handleError)
|
|
11
|
+
|
|
12
|
+
async function main() {
|
|
13
|
+
const buddy = cli(config.cli.name)
|
|
14
|
+
|
|
15
|
+
if (!fs.existsSync(p.projectPath(config.cli.command)))
|
|
16
|
+
fs.writeFileSync(p.projectPath(config.cli.command), `import('./storage/framework/core/buddy/src/custom-cli')`)
|
|
17
|
+
|
|
18
|
+
// dynamically import and register commands from ./app/Commands/*
|
|
19
|
+
const commandsDir = p.appPath('Commands')
|
|
20
|
+
const commandFiles = fs.readdirSync(commandsDir).filter(file => file.endsWith('.ts'))
|
|
21
|
+
|
|
22
|
+
for (const file of commandFiles) {
|
|
23
|
+
const commandPath = `${commandsDir}/${file}`
|
|
24
|
+
const dynamicImport = await import(commandPath)
|
|
25
|
+
|
|
26
|
+
// Correctly use the default export function
|
|
27
|
+
if (typeof dynamicImport.default === 'function')
|
|
28
|
+
dynamicImport.default(buddy)
|
|
29
|
+
else
|
|
30
|
+
console.error(`Expected a default export function in ${file}, but got:`, dynamicImport.default)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
buddy.parse()
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
await main()
|
package/core/build/package.json
CHANGED
package/core/cache/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/cache",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.51",
|
|
5
5
|
"description": "Caching the Stacks way.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@stacksjs/config": "workspace:*"
|
|
58
58
|
},
|
|
59
59
|
"optionalDependencies": {
|
|
60
|
-
"@aws-sdk/client-dynamodb": "^3.
|
|
60
|
+
"@aws-sdk/client-dynamodb": "^3.506.0",
|
|
61
61
|
"ioredis": "^5.3.2"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
package/core/chat/package.json
CHANGED
package/core/cli/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ async function installStack(name, options) {
|
|
|
14
14
|
// src/cli.ts
|
|
15
15
|
import cac from "cac";
|
|
16
16
|
// package.json
|
|
17
|
-
var version = "0.58.
|
|
17
|
+
var version = "0.58.51";
|
|
18
18
|
|
|
19
19
|
// src/cli.ts
|
|
20
20
|
function cli(name, options) {
|
|
@@ -22,7 +22,7 @@ function cli(name, options) {
|
|
|
22
22
|
options = name;
|
|
23
23
|
name = options.name;
|
|
24
24
|
}
|
|
25
|
-
const cli2 = cac(name);
|
|
25
|
+
const cli2 = cac(name || "buddy");
|
|
26
26
|
cli2.help();
|
|
27
27
|
cli2.version(options?.version || version);
|
|
28
28
|
return cli2;
|
package/core/cli/package.json
CHANGED
package/core/cli/src/cli.ts
CHANGED
package/core/cloud/deploy.ts
CHANGED
|
@@ -17,7 +17,7 @@ const appKey = config.app.key
|
|
|
17
17
|
const domain = config.app.url
|
|
18
18
|
const appName = config.app.name?.toLowerCase() ?? 'stacks'
|
|
19
19
|
const slug = slugify(appName)
|
|
20
|
-
const name = `${slug}-cloud
|
|
20
|
+
const name = `${slug}-cloud`
|
|
21
21
|
const account = env.AWS_ACCOUNT_ID
|
|
22
22
|
// const region = env.AWS_DEFAULT_REGION
|
|
23
23
|
const region = 'us-east-1' // currently, us-east-1 is the only fully-supported region
|
|
@@ -69,7 +69,7 @@ export const options = {
|
|
|
69
69
|
|
|
70
70
|
new Cloud(app, name, {
|
|
71
71
|
...options,
|
|
72
|
-
description: `Stacks Cloud
|
|
72
|
+
description: `The Stacks Cloud`,
|
|
73
73
|
})
|
|
74
74
|
|
|
75
75
|
app.synth()
|